Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VariableDescriptionExampleType
nameThe "Internal Name" of the surcharge/discount.cansdeposit_1string
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.25float
tax
The tax rate of the deposit/discount.
19.00float
type

Surcharge type. There are three types.


DescriptionKeywordCalculation

surcharge/discount quantity equals article quantity

multi

article quantity 10 = 10x surcharge/discount

Only one per article

singlearticle quantity 10 = 1x surcharge/discount, 15 = 1x surcharge/discount ...

Only one per basket

basketOne surcharge/discount per basket. Surcharge/discount will only be factored 1x per shopping cart. Regardless of number of articles and resp. quantity.


multi | single | basketstring
optionalshows if a surcharge/discount is optionaltrue | falseboolean


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
languagejs
titletemplate
[...]
{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
languagejs
titleheader
[...]
Price incl Surcharge{#S#}
{/strip}{#L#}

...