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

Type: Discussion
Status: New
BHWW
View Replies: View Best Answer
tbcrowe replied on at Permalink Reply
tbcrowe
The Import add-on models the way the eCommerce add-on works in the way it's XML is handled. The eCommerce add-on keeps track of the prices of product variations (i.e. customer choice), by keeping track of differences in price. Thus Import does the same thing.

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.
BHWW replied on at Permalink Reply
BHWW
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
BHWW replied on at Permalink Reply
BHWW
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?
BHWW replied on at Permalink Reply
BHWW
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:

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


Please advise asap. Thanks
tbcrowe replied on at Permalink Reply
tbcrowe
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:
<?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>


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.
BHWW replied on at Permalink Reply
BHWW
thanks but you still didnt answer my question, whats the difference between price_adjustment OR price_delta?
tbcrowe replied on at Permalink Best Answer Reply
tbcrowe
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.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.