Developer forum

Forum » Ecommerce - Standard features » Product units and discounts

Product units and discounts

Davy Capiau
Reply

Hi,

Current situation

I have a product discount  4X + 1Y for free. When you add 4 times the base unit of X to the cart, you get 1 time the base unit of Y for free.

For almost all products there are more product units defined.  Single unit < Outer Box < Pallet.

Problem 1:

When I add 4 times a pallet (=bigger unit) to the cart, I only get 1 time the base unit of Y for free. This should be multiple times Y for free (4:1 ratio calculated from the amount of base units in X's pallet.

 

Problem 2:

The same happens when you don't add 4 times the base unit of X, but 1 time the pallet unit. This contains a lot of X. The result is no trigger of the discount when using the pallet:

Single units: Expect promo => result: active

Pallet Unit: Expect promo => not active

Extra

- When exporting the order there is no unit ID for the free item: <OrderLineUnitId><![CDATA[]]></OrderLineUnitId>


Replies

 
Davy Capiau
Reply
This post has been marked as an answer

Summary of the answer:

- By default this doesn't work in SWIFT

- The system always thinks in base units

- If you want this to work, you need to pass the units amount (E.g 60 from a pallet) to the cart. You can achieve this by using loops.

Votes for this answer: 1

 

You must be logged in to post in the forum