Developer forum

Forum » Feature requests » Discount Orderlines that are influenced by the voucher code

Discount Orderlines that are influenced by the voucher code

Nuno Aguiar
Reply

Hi,

 

Would be great if in the cart we could easilly identify which discount orderlines have a discount that was triggered by the voucher code associated with the order.

 

A simple flag would be enough. The problem is that right now is very complicated to get this information. We need to:

  • Only do this if the order has a voucher
  • Get all discount ID's of all discount orderlines
  • Check if there's a voucher associated with it
  • Check if the order voucher matches (reusable or available in the voucher list on the discount)

 

The purpose is to display in the order confirmation:

  • You voucher code XPTO gave you a total of $17.00 of discount and products A, B and C
    Although the total discount could have been $20.00 and a few other products

 

Best Regards,

Nuno Aguiar


Replies