Skip to content

1.11.1

Latest

Choose a tag to compare

@originalconcepts originalconcepts released this 14 Oct 21:20

1.11.1

Fix: appliedPromotions[].lines[] is now sent per promotion on multi-promotion orders.

Previously lines[] was attached only when a single promotion applied, because the Promotion Engine did not tag discounted lines with their owning promotion. Giorgio then spread each promotion across every line of the order, and non-promo lines were charged at an inflated price per kg at picking (הקצב בעיר #3386, ₪23 overcharged).

Promotion Engine >= 0.9.30 stamps _promeng_promo_discounts item meta ([ promotion_id => amount ]) at checkout. The integration now reads it and builds lines[] per promotion. Orders placed with an older engine keep the single-promotion fallback.

Files: giorgio.php, includes/class-giorgio-integration.php