Developer forum

Forum » Ecommerce - Standard features » Voucher codes
Adrian Ursu
Reply

Hi Guys,

I have an issue that give me a lot of headaches. I hope someone have sorted it out by now.

We have 2 types of "vouchers" in Dynamicweb:

1. Voucher lists - the codes that can be used just once

2. Order Field vouchers - the ones that can be used multiple times and they have to be assigned to an Order Field when defining the discount.

I just tries for about an hour to make this work with my recently defined Discount (I have tried both Discount Matrix and Sales Discounts) without any luck.

I see the system tries to interrogate a file in Admin folder: /Admin/Module/eCom_Catalog/dw7/Vouchers/VouchersActions.ashx?cmd=CheckVoucher&code=6819b119

The acces returns "false" no matter what code I am using (voucher list or order code)

I am using 8.6.1.28 (recommended version is 8.6.1.25).

I know a while ago we had to update from 8.5 to 8.6 because of a similar problem. Now I have this issue again.The markup of the templates and javascript have not changed since the last time this functionality worked.

Any (rapid) help would be appreciated.

Thanks,
Adrian


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

Did you ever get this one sorted out?

BR Nicolai

 
Adrian Ursu
Reply

Not exactly.

We have found out that we need 2 separate input fields in checkout. One for Voucher Codes and one for Discount codes (order field discount).

The current version we are using for MBT (8.6.1.28) doesn't return the state correcty even for valid voucher codes.

We tried both Discount Matrix and Sales Discounts.

We ended up creating a custom validator on our own because we needed to check a single input field for both type of codes.We are querying all related tables in order to find the valid codes and since we have to use boh Dispcunt Matrix and sales discounts, it's not an elegant nor perfomant solution. It solved temporarily but it's not a long term solution.

Maybe you should consider consolidating voucher codes and discount codes into a single check from the same input field.

Thanks,

Adrian

 
Nicolai Høeg Pedersen
Reply

ok, but the order field discount can also check against the voucher field... So I think you can already.

Capture.PNG

 

You must be logged in to post in the forum