Book a voucher in Checkout to get a Discount (order.tpl)

Hey guys,

i want to offer my customers a 5€ discount by clicking a Checkbox to order
the Newsletter.

This Checkbox will be in the order.tpl in the Checkout.

To solve this, I think it is the best to book a voucher in the background.
This funktion already exist in the basket. The user can enter a voucher code to get
a discount. If I do a [{debug}] I see the $voucher with the voucher code, discount etc.

How I can implement the same function in the order.tpl to book a voucher and minimize the total Price of
the order over 5€?

Thanks 4 help

voy

Voy,

why don’t you simply assign the user group “newsletter clients” to your discounts?

Regards