Developer forum

Forum » Swift » Template: VoucherForm.cshtml

Template: VoucherForm.cshtml

Kenneth Radoor
Reply

in Swift 1.26.7

There has been a change in the templata \Designs\Swift\eCom7\CartV2\Step\Helpers\VoucherForm.cshtml, that courses it always to return an errormessage if the Voucher code applied is a discount.

As you can see the discount is applied to the orderline, even though there is an errormessage under the voucher field.

in Swift 1.26.4 there was a test for this. "vouchersAppliedAsDiscounts".

After inserting this test in 1.26.7 it seems to work as expected.

 


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

I can't reproduce that the discount is applied with a wrong voucher.
The behavior as you can see in the video is intended and was that fix that was committed in 1.26.7 "Always have the possibility to remove a voucher code".
https://app.screencast.com/xcJJEFWiIQQzD

When I add a wrong voucher code then no discount is applied - you can remove the code and try again with the correct voucher code which applies the discount.

Kind regards,
Merethe Vrå Andersen

 

You must be logged in to post in the forum