Developer forum

Forum » Ecommerce - Standard features » Voucher discount

Voucher discount

Bruno
Reply

Hi Guys,

How can I get the voucher discount? There is no tag that gives me the discount and the Voucher object don't have any field with this value.

BR, Bruno


Replies

 
Nicolai Høeg Pedersen
Reply

Could you please elaborate? Get it where?

 
Bruno
Reply

Hello Nicolai,

I need to show to the user what's the discount associated with the voucher code that he used.

BR, Bruno

 

 
Nicolai Høeg Pedersen
Reply

Right, but where? On the product, cart, order confirmation? Screendump and some template code maybe?

 
Bruno
Reply

Hi Nicolai,

I want to show that in cart. I've attached an image where I want to show the discount.

I've checked if there is any tag that give me the discount value but didn't found anything.

BR, Bruno

Cart.png
 
Nicolai Høeg Pedersen
Reply

Hi Bruno

Well, the cart has tags for all the discounts that you get on the order, simply print them out... Or does it not work?

BR Nicolai

 
Bruno
Reply

Hi Nicolai,

I'm using Discount Matrix to create discounts for the users. I've set up multiple discounts based on different Voucher lists.

I can't find any tag on orderline that gives me if that discount is associated with the voucher that I've entered. Also I can't use the tag Ecom:Order.OrderLines.TotalDiscount since we can have multiple discounts on the same order. I need to show something like "Voucher xxxx: -$10.00". 

Thanks in advance.

BR, Bruno

 

 

 
Bruno
Reply

Btw: I'm using version 8.8.1.6

 
Nicolai Høeg Pedersen
Reply

Hi Bruno

I need to see an illustration of what you expect, because I'm stupid and dont get it.

If you need product 1 to get 10% if voucher code a is aplied, create an orderline discount with that setup. Then you get a discount for each orderline - that can be displayed with the product. Then you can create another orderline discount for another product using another voucher list, and when both vouchers are applied, you get 2 discount lines, one for each product.

If you make it as order discounts, you will get a line for each applicable discount on the order.

BR Nicolai

 

You must be logged in to post in the forum