Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: importing custom fields (xml data)

$
0
0
The full xml structure doesn't dseem to be there, you have no model data..

here is an example I exported from my test system. It's always best to start with a exported example, that's what3 it's expecting to import in.
<root version="1.0">
    <products>
        <fr-FR>
            <P>
                <NB_Store_ProductsInfo>
                    <ProductID>4094</ProductID>
                    <PortalID>0</PortalID>
                    <TaxCategoryID>-1</TaxCategoryID>
                    <Featured>false</Featured>
                    <Archived>false</Archived>
                    <CreatedByUser>1</CreatedByUser>
                    <CreatedDate>2014-02-06T16:49:03.903</CreatedDate>
                    <IsDeleted>false</IsDeleted>
                    <ProductRef />
                    <Lang>fr-FR</Lang>
                    <Summary />
                    <Description />
                    <Manufacturer>aaaaaaaaaa</Manufacturer>
                    <ProductName>aaaaaaaaaaaaaaaaa</ProductName>
                    <XMLData>&lt;genxml&gt;&lt;textbox&gt;&lt;designation /&gt;&lt;range /&gt;&lt;lm /&gt;&lt;ln /&gt;&lt;breaking /&gt;&lt;thimble /&gt;&lt;weight /&gt;&lt;/textbox&gt;&lt;checkbox /&gt;&lt;dropdownlist&gt;&lt;material&gt;Galva&lt;/material&gt;&lt;/dropdownlist&gt;&lt;checkboxlist /&gt;&lt;radiobuttonlist /&gt;&lt;edt /&gt;&lt;/genxml&gt;</XMLData>
                    <ModifiedDate>2014-02-06T16:49:23.56</ModifiedDate>
                    <SEOName>aaaaaaaaaaaaa</SEOName>
                    <TagWords />
                    <IsHidden>false</IsHidden>
                </NB_Store_ProductsInfo><M>
                    <NB_Store_ModelInfo>
                        <ModelID>4041</ModelID>
                        <ProductID>4094</ProductID>
                        <ListOrder>1</ListOrder>
                        <UnitCost>0.0000</UnitCost>
                        <Barcode />
                        <ModelRef />
                        <Lang>fr-FR</Lang>
                        <ModelName>aaaaaaaaaaaaaaaaa</ModelName>
                        <QtyRemaining>-1</QtyRemaining>
                        <QtyTrans>0</QtyTrans>
                        <QtyTransDate>2014-02-06T16:49:03.987</QtyTransDate>
                        <ProductName>aaaaaaaaaaaaaaaaa</ProductName>
                        <PortalID>0</PortalID>
                        <Weight>0.00</Weight>
                        <Height>0.00</Height>
                        <Length>0.00</Length>
                        <Width>0.00</Width>
                        <Deleted>false</Deleted>
                        <QtyStockSet>0</QtyStockSet>
                        <DealerCost>0.0000</DealerCost>
                        <PurchaseCost>0.0000</PurchaseCost>
                        <XMLData />
                        <Extra />
                        <DealerOnly>false</DealerOnly>
                        <Allow>0</Allow>
                    </NB_Store_ModelInfo>
                </M><I/>
                <D/>
                <C>
                    <NB_Store_ProductCategoryInfo>
                        <ProductID>4094</ProductID>
                        <CategoryID>624</CategoryID>
                    </NB_Store_ProductCategoryInfo>
                    <NB_Store_ProductCategoryInfo>
                        <ProductID>4094</ProductID>
                        <CategoryID>625</CategoryID>
                    </NB_Store_ProductCategoryInfo>
                </C><R/>
                <options/>
            </P>
        </fr-FR>
    </products>
    <categories>
        <fr-FR>
            <NB_Store_CategoriesInfo>
                <CategoryID>625</CategoryID>
                <PortalID>0</PortalID>
                <Archived>false</Archived>
                <Hide>false</Hide>
                <CreatedByUser>1</CreatedByUser>
                <CreatedDate>2014-02-06T16:45:14.5</CreatedDate>
                <ParentCategoryID>0</ParentCategoryID>
                <ListOrder>1</ListOrder>
                <Lang>fr-FR</Lang>
                <CategoryName> and &amp;  and &lt; new</CategoryName>
                <ParentName />
                <CategoryDesc />
                <Message />
                <ProductCount>1</ProductCount>
                <ProductTemplate />
                <ListItemTemplate />
                <ListAltItemTemplate />
                <ImageURL />
                <SEOPageTitle />
                <SEOName />
                <MetaDescription />
                <MetaKeywords />
                <CategoryRef> and &amp;  and &lt; new</CategoryRef>
            </NB_Store_CategoriesInfo>
            <NB_Store_CategoriesInfo>
                <CategoryID>624</CategoryID>
                <PortalID>0</PortalID>
                <Archived>false</Archived>
                <Hide>false</Hide>
                <CreatedByUser>1</CreatedByUser>
                <CreatedDate>2014-02-06T16:44:58.97</CreatedDate>
                <ParentCategoryID>0</ParentCategoryID>
                <ListOrder>1</ListOrder>
                <Lang>fr-FR</Lang>
                <CategoryName>Cats &lt;  &amp; dogs &amp; again</CategoryName>
                <ParentName />
                <CategoryDesc>2times</CategoryDesc>
                <Message />
                <ProductCount>1</ProductCount>
                <ProductTemplate />
                <ListItemTemplate />
                <ListAltItemTemplate />
                <ImageURL />
                <SEOPageTitle />
                <SEOName />
                <MetaDescription />
                <MetaKeywords />
                <CategoryRef>Cats &amp; dogs &amp; OMG &lt; </CategoryRef>
            </NB_Store_CategoriesInfo>
        </fr-FR>
    </categories>
</root>
Messing around with the XML import files can be a killer, you could try CSV import, they tend to be easier to manipulate, but you need to get you mapping right!

Dave.

Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>