Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: Product Upload

  1. #1
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default Product Upload

    Could someone provide me with a very simple xml structure to add a product with options? Once I see one I can handle it all.

    I have a Product that is a Widget and has size 5lb, 10lb,15lb. and lets say I want to have this product and its options in 5 categories. (by brand, by taste, by strength, whole bean, ground)

    Here is roughly what I think it should look like. Also, how do I know what all is actually required? For example, I see that the product has all the SEO fields as do the variants, but the variants wont need them since it will be part product right? Lastly, for the categories what would go in xpath?

    I picture once this is run and uploaded my product page will have.

    Widget
    <select box with>5lb
    <select box with>10lb
    <select box with>15lb

    Code:
    <product>
    .
    .
    .
    <Mappings AutoCleanup="boolean">
    <Entity EntityType="Category" Name="By Brand" XPath="string" ID="integer" GUID="uniqueidentifier" DisplayOrder="integer"/>
    <Entity EntityType="Category" Name="By taste" XPath="string" ID="integer" GUID="uniqueidentifier" DisplayOrder="integer"/>
    .
    .
    .
    </Mappings>
    <variants>
        <variant Action="Add">
            <name >5 lb.</name>
        </variant>
        <variant Action="Add">
           <name >10 lb.</name>
        </variant>
        <variant Action="Add">
          <name >15 lb.</name>
        </variant>
    </variants>
    
    </product>
    Hopefully im not way off base here. Thanks for any insight!

    p.s. I did see the W.S.I manual and used their product sample to help get me to this.

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Did you check out the wsi.xml master reference in the ImportFileSamples folder where you installed the software? It's got some good examples and shows the full format.

    Attached here just in case.
    Attached Files Attached Files

  3. #3
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    Actually I did look at that, and unless im missing something I didnt see any small product import samples with options.

  4. #4
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    Let me show you this and see what you think. Would the below create a product called Widget and place it in the category /By Brand/Ground/International and show three options of 5lb, 10lb and 15lb with the associated price?

    Code:
    <AspDotNetStorefrontImport Version="7.1" AutoLazyAdd="true" AutoCleanup="true" Verbose="true" TransactionsEnabled="true">
        <Transaction>
            <Product Action="Add" EnsureDefaultVariant="True">
                <Name>Widget</Name>
                <Description>
                    Widget test desc
                </Description>
                <SKU>
                    1234
                </SKU>
                <!--<SE>
                <SEName/>
                <SETitle/>
                <SEKeywords/>
                <SEDescription/>
            </SE>-->
                <TaxClass Name="Goods"/>
                <Display>
                    <XmlPackage>product.variantsinrightbar.xml.config</XmlPackage>
                    <ColWidth>4</ColWidth>
                    <PageSize>20</PageSize>
                </Display>
                <Images UseAppConfigs="true">
                    <Large Extension="jpg" UseAppConfigs="true"></Large>
                    <ImageFilenameOverride>SomeImageName</ImageFilenameOverride>
                </Images>
                <ShowInProductBrowser>True</ShowInProductBrowser>
                <ShowBuyButton>True</ShowBuyButton>
                <Published>True</Published>
                <GoogleCheckoutAllowed>True</GoogleCheckoutAllowed>
                <Mappings AutoCleanup="boolean" PreserveExistingRecords="boolean">
                    <Entity EntityType="Category" XPath="/By Brand/Ground/International" DisplayOrder="1" />
                    <Entity EntityType="Manufacturer" Name="Genetic Mfg" DisplayOrder="1" />
                </Mappings>
                <Variants AutoCleanup="boolean">
                    <Variant Action="Add">
                        <IsDefault/>
                        <Name>5 lb.</Name>
                        <Price>19.99</Price>
                    </Variant>
                    <Variant Action="Add">
                        <IsDefault/>
                        <Name>10 lb.</Name>
                        <Price>29.99</Price>
                    </Variant>
                    <Variant Action="Add">
                        <IsDefault/>
                        <Name>15 lb.</Name>
                        <Price>39.99</Price>
                    </Variant>
                </Variants>
            </Product>
        </Transaction>
    
    </AspDotNetStorefrontImport>

  5. #5
    sveerapally is offline Junior Member
    Join Date
    Jul 2009
    Posts
    20

    Default

    Hi ssgumby,
    I am newbie and working on product upload . If you have succesfully uploaded products,can you please provide me one sample so that I can use it as reference