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 2 of 2

Thread: WSI Import Product

  1. #1
    vedran is offline Member
    Join Date
    Jun 2012
    Posts
    98

    Default WSI Import Product

    Hello,

    I am trying to import sample product based on the XML sample file that I received, but It just will not work.

    Does anyone have CRUD xml sample for a product.


    Thanks

  2. #2
    acanadian is offline Junior Member
    Join Date
    Oct 2012
    Posts
    3

    Default Add Product XML

    Hopefully it doesn't get too mangled in the forum.

    This XML should add a default product called Testing Product to the first store in your database.

    Code:
    <AspDotNetStorefrontImport Version="7.1">
    <Product Action="Add" EnsureDefaultVariant="1">
    		<Name>Testing Product</Name>
    		<Summary></Summary>
    		<Description>Testing Description</Description>
    		<SpecTitle></SpecTitle>
    		<MiscText></MiscText>
    		<Notes></Notes>
    		<IsFeaturedTeaser></IsFeaturedTeaser>
    		<FroogleDescription></FroogleDescription>
    		<SKU>xxxxx</SKU>
    		<ManufacturerPartNumber>xxx</ManufacturerPartNumber>
    		<SwatchImageMap></SwatchImageMap>
    		<SE>
    			<SEName>Testing Product Name</SEName>
    			<SETitle></SETitle>
    			<SEKeywords></SEKeywords>
    			<SEDescription></SEDescription>
    			<SENoScript></SENoScript>
    			<SEAltText></SEAltText>
    		</SE>
    		<SizeOptionPrompt></SizeOptionPrompt>
    		<ColorOptionPrompt></ColorOptionPrompt>
    		<ProductType ID="1"/>		
    		<SpecCall></SpecCall>
    		<SpecsInline></SpecsInline>
    		<Display>
    			<XmlPackage>product.simpleproduct.xml.config</XmlPackage>
    			<ColWidth>4</ColWidth>
    			<PageSize>20</PageSize>
    			<SkinID></SkinID>
    			<TemplateName></TemplateName>
    		</Display>
    		<InventoryType>
    			<TrackInventoryBySizeAndColor></TrackInventoryBySizeAndColor>
    			<WarehouseLocation></WarehouseLocation>
    		</InventoryType>
    		<IsFeatured></IsFeatured>
    		<IsAKit>0</IsAKit>
    		<IsSystem></IsSystem>
    		<ShowBuyButton>1</ShowBuyButton>
    		<Published></Published>
    		<Wholesale></Wholesale>
    		<RequiresRegistration></RequiresRegistration>
    		<HidePriceUntilCart></HidePriceUntilCart>
    		<IsCallToOrder></IsCallToOrder>
    		<ExcludeFromPriceFeeds></ExcludeFromPriceFeeds>
    		<GoogleCheckoutAllowed></GoogleCheckoutAllowed>
    		<RequiresTextOption></RequiresTextOption>
    		<TextOptionMaxLength></TextOptionMaxLength>
    		<TextOptionPrompt></TextOptionPrompt>
    		<AvailableStartDate></AvailableStartDate>
    		<AvailableStopDate></AvailableStopDate>
    		<StoreMappings AutoCleanup="1" PreserveExistingRecords="1">
    			<Store StoreId="1"/>
    		</StoreMappings>
    		<!-- NOTE, if you are mapping to an entity by it's NAME, it must already exist. If you are trying to create mappings on the fly, it must use XPath sequence for the Name, e.g. /cat1/cat1-1/ etc -->
    		<Mappings AutoCleanup="boolean" PreserveExistingRecords="boolean">
    			<Entity EntityType="Manufacturer" ID="1"/>
    			<Entity EntityType="Section" ID="6"/>
    			<!--<Entity EntityType="Manufacturer|Distributor|Category|Section|Genre|Vector" Name="" XPath="" ID="integer" GUID="uniqueidentifier" DisplayOrder=""/> -->
    		</Mappings>
    		<ExtensionData></ExtensionData>
    		<ExtensionData2></ExtensionData2>
    		<ExtensionData3></ExtensionData3>
    		<ExtensionData4></ExtensionData4>
    		<ExtensionData5></ExtensionData5>
    		
    		<Variants AutoCleanup="boolean">
    			<Variant Action="Add">
    				<IsDefault>1</IsDefault>
    				<Name>Testing Product</Name>
    				<Description></Description>
    				<SE>
    					<SEName>Testing Product</SEName>
    					<SEKeywords></SEKeywords>
    					<SEDescription></SEDescription>
    					<SENoScript></SENoScript>
    					<SEAltText></SEAltText>
    				</SE>
    				<FroogleDescription></FroogleDescription>
    				<ProductID></ProductID>
    				<SKUSuffix></SKUSuffix>
    				<ManufacturerPartNumber></ManufacturerPartNumber>
    				<Price>150</Price>
    				<ExtendedPrices AutoCleanup="boolean" PullFromVariantID="integer" PullFromVariantGUID="uniqueidentifier">
    					<CustomerLevel ID="integer" GUID="uniqueidentifier" Price="decimal" />
    					<CustomerLevel ID="integer" GUID="uniqueidentifier" Price="decimal" />
    					<CustomerLevel ID="integer" GUID="uniqueidentifier" Price="decimal" />
    					<CustomerLevel ID="integer" GUID="uniqueidentifier" Price="decimal" />
    				</ExtendedPrices>
    				<SalePrice></SalePrice>
    				<Weight></Weight>
    				<MSRP></MSRP>
    				<Cost></Cost>
    				<Points></Points>		       
    				<Inventory>1</Inventory>				
    				<DisplayOrder></DisplayOrder>
    				<Notes></Notes>
    				<IsTaxable></IsTaxable>
    				<IsShipSeparately></IsShipSeparately>
    				<IsDownload></IsDownload>
    				<DownloadLocation></DownloadLocation>
    				<FreeShipping></FreeShipping>
    				<Published></Published>
    				<Wholesale></Wholesale>
    				<IsRecurring></IsRecurring>
    				<RecurringInterval></RecurringInterval>
    				<RecurringIntervalType></RecurringIntervalType>
    				<SubscriptionInterval></SubscriptionInterval>
    				<SubscriptionIntervalType></SubscriptionIntervalType>
    				<RestrictedQuantities></RestrictedQuantities>
    				<MinimumQuantity></MinimumQuantity>				
    				<CustomerEntersPrice></CustomerEntersPrice>
    				<CustomerEntersPricePrompt></CustomerEntersPricePrompt>
    				<ExtensionData></ExtensionData>
    				<ExtensionData2></ExtensionData2>
    				<ExtensionData3></ExtensionData3>
    				<ExtensionData4></ExtensionData4>
    				<ExtensionData5></ExtensionData5>
    				
    			</Variant>
    		</Variants>
    	</Product>
    </AspDotNetStorefrontImport>