...
Code Block |
---|
|
In Prefix or Sufix column you may use following expression to increases price by 15%.
[[{{price_final_include_tax}} * 1.15]]
Note that attribute code you may find in attribute detail under Catalog > Attributes > Manage Attributes. |
Conditions
Empty Attribute Condition
You can set a condition to export non-empty values only.
Code Block |
---|
title | Empty Attribute Condition example |
---|
|
// if value of the 'meta_title' attribute is not empty the 'meta_title' value is used, otherwise it is used the value of the 'name' attribute
[[('{{meta_title}}' != '')? '{{meta_title}}': '{{name}}';]]
// note double curling brackets surrounding attribute codes |
Attribute Value Condition
You can define a value condition to modify exported value based on the input value.
Code Block |
---|
title | Attribute Value Condition example |
---|
|
// if product price is higher than 100 then use product price as the final price, otherwise increase the price for 20 (adding 20 as shipping costs)
[[({{price_final_include_tax}} > 100) ? {{price_final_include_tax}} : {{price_final_include_tax}} + 20]]
// note double curling brackets surrounding attribute codes |
Addition of a new attribute
...