Price Adjustment
Permalink Browser Info Environment
Hi need to use a select list with various different prices for sizes, i have seen i need to code the xml like:
<option>
<name>Small<name>
<price_adjustment>-5.00</price_adjustment>
</option>
<option>
<name>Large<name>
<price_adjustment>-7.50</price_adjustment>
</option>
But is there a way to specify the price rather than adjust the price?
i.e. i want it to show size a is £10 size b is £15 not size b is +£5
Cheers
<option>
<name>Small<name>
<price_adjustment>-5.00</price_adjustment>
</option>
<option>
<name>Large<name>
<price_adjustment>-7.50</price_adjustment>
</option>
But is there a way to specify the price rather than adjust the price?
i.e. i want it to show size a is £10 size b is £15 not size b is +£5
Cheers
Type: | Discussion |
---|---|
Status: | New |
Ok, but in your example I see an attribute called price_delta what is that?
also i've tried using this code to import as specified in the help docs but i get error logs saying it can't create attribute?
<price><![CDATA[5.50]]></price>
<sizes>
<option>
<name>Medium</name>
<price_adjustment>0.00</price_adjustment>
</option>
<option>
<name>Large</name>
<price_adjustment>+1.00</price_adjustment>
</option>
</sizes>
Any advice?
Thanks
Ben
also i've tried using this code to import as specified in the help docs but i get error logs saying it can't create attribute?
<price><![CDATA[5.50]]></price>
<sizes>
<option>
<name>Medium</name>
<price_adjustment>0.00</price_adjustment>
</option>
<option>
<name>Large</name>
<price_adjustment>+1.00</price_adjustment>
</option>
</sizes>
Any advice?
Thanks
Ben
Would this be the correct code?
<price><![CDATA[5.50]]></price>
<sizes>
<option>
<name>Medium</name>
<type>product_price_adjustment_select</type>
<required />
<multiple />
<keyword_search />
<advanced_search />
<price_adjustment>0.00</price_adjustment>
</option>
<option>
<name>Large</name>
<price_adjustment>+1.00</price_adjustment>
</option>
</sizes>
should i use price_adjustment OR price_delta?
<price><![CDATA[5.50]]></price>
<sizes>
<option>
<name>Medium</name>
<type>product_price_adjustment_select</type>
<required />
<multiple />
<keyword_search />
<advanced_search />
<price_adjustment>0.00</price_adjustment>
</option>
<option>
<name>Large</name>
<price_adjustment>+1.00</price_adjustment>
</option>
</sizes>
should i use price_adjustment OR price_delta?
Ok, so i've tried to do this with different version of the code, but i alwsays get error logs like:
eCommerce Import: unable to set product attribute:
Product: Danish Design Maison Deep Filled Duvet - Antique Grey
Attribute: sizes
my latest try used this:
Please advise asap. Thanks
eCommerce Import: unable to set product attribute:
Product: Danish Design Maison Deep Filled Duvet - Antique Grey
Attribute: sizes
my latest try used this:
<product> <sku><![CDATA[dps-xmas-00012]]></sku> <name><![CDATA[Bandana - Christmas Stocking]]></name> <price><![CDATA[5.50]]></price> <sizes> <name><![CDATA[Size/Options]]></name> <type>product_price_adjustment_select</type> <required /> <keyword_search /> <advanced_search /> <option> <name>Medium</name> <price_adjustment>0.00</price_adjustment> </option> <option>
Viewing 15 lines of 27 lines. View entire code block.
Please advise asap. Thanks
Product options need to be defined within an <options> tag. Your last example is missing that. Here's a condensed version of the example XML that accompanies Import demonstrating the proper format:
Please note that most of the features supported by Import are demonstrated in the accompanying XML samples. They're often the best place to start with understanding how the XML should be structured.
<?xml version="1.0" encoding="UTF-8"?> <products> <product> <name>Magic Bullet</name> <price>9.99</price> <options> <sizes> <name>Size</name> <type>product_price_adjustment_select</type> <option> <name>Tail Fins</name> <price_delta>20</price_delta> </option> <option> <name>Hollow Point</name>
Viewing 15 lines of 21 lines. View entire code block.
Please note that most of the features supported by Import are demonstrated in the accompanying XML samples. They're often the best place to start with understanding how the XML should be structured.
thanks but you still didnt answer my question, whats the difference between price_adjustment OR price_delta?
The reference you see to "price_adjustment" is a typo. The product_price_adjustment_select option type supports "price_delta". The example XML code is correct. Thanks for pointing that out.
It sounds as if what you really want is a modification of the way eCommerce displays the final price. The product price data would be the same, it's just a matter of how it's displayed.