Developer forum

Forum » Development » Importing multiple prices for a product

Importing multiple prices for a product


Reply
Hi guys,

I'd like to import multiple prices for products via the Import/Export module.
But i can't figure out how i have to format my XML to archieve this.

I have a product where i want to control the price of the product in the different valutas you can use in the shop.

If a have a product where the different prices are
100 DKK
20 EUR
130 SKR

and i want to import these values, how can i do it?

The XSD for my product doesn't specify what i should enter, just that it's a string.

I assume that I need to fill something into these fields, but what:

 

<xs:element name="ProductPriceMatrixUnit" type="xs:string" minOccurs="0"/>

 

<xs:element name="ProductPriceMatrixVariant" type="xs:string" minOccurs="0"/>

 

<xs:element name="ProductPriceMatrixPeriod" type="xs:string" minOccurs="0"/>

 

<xs:element name="ProductPriceMatrixMultiplePrices" type="xs:string" minOccurs="0"/>

 


<xs:element name="ProductPriceMatrixQuantitySpecification" type="xs:string" minOccurs="0"/>Has someone done this before?


Kind regards
 Martin

Replies

 
Reply
I tried setting up a product like i want it be, and then export that to se which format i got out. But sadly, my different prices at not in the XML.

Please don't tell me this is not supported.

//Martin
 
Reply
Hi Martin

The import of prices other than the default price is not supported in the ProductDestinationActivity. However, the Import/Export module is highly extendable and it would probably only take one small custom class to accomplish your needs.

The right way to do this is to extend the Activity class to be able to import the things you need.

 - Lasse

 

You must be logged in to post in the forum