...
Variable | Description | Example | Type |
---|
name | The "Internal Name" of the surcharge/discount. | cansdeposit_1 | string |
display_name | name of the surcharge/discount for the customer | Reusable cans deposit | string |
description | The description of the surcharge/discount. Warning |
---|
The description may contain newline characters. You should convert the value according to your target format. (e.g. CSV does not like line wraps) |
| reusable cans deposit is mandatory in Germany.
| string |
price | The gross price of the deposit in the currency opposed for the export. | 0.25 | float |
tax | The tax rate of the deposit/discount. | 19.00 | float |
type | Surcharge type. There are three types.
Description | Keyword | Calculation |
---|
surcharge/discount quantity equals article quantity | multi | article quantity 10 = 10x surcharge/discount | Only one per article
| single | article quantity 10 = 1x surcharge/discount, 15 = 1x surcharge/discount ... | Only one per basket
| basket | One surcharge/discount per basket. Surcharge/discount will only be factored 1x per shopping cart. Regardless of number of articles and resp. quantity. |
| multi | single | basket | string |
optional | shows if a surcharge/discount is optional | true | false | boolean |
Examples of integration in productfeed template
Spend deposit information as text
First we add a column to the header template of the productfeed
...
Code Block |
---|
|
[...]
{foreach $addChargeData AS $data}
{if $data.type == 'basket'}
This article contains a surcharge per basket.
{break}
{/if}
{/foreach}
[...] |
Add price of surcharge/discount to article price
Code Block |
---|
|
[...]
Price incl Surcharge{#S#}
{/strip}{#L#} |
...