Alright so i got my solution updated to 2.6.1.0 because i saw a lot of people with issues with vouchers in the older versions, however this didnt solve my problem for some reason.
It doesent validate i've checked the parameters in the backend and everything should be alright, i even created a few new to test. They are enabled and they are within date limits. So i'm not really sure why its not doing anything and not sure why it doesent validate :/
Arh alright, but the method UCommerce.Xslt.Library.AddVoucher(string) still doesent do anything to my order, when i check my basket object i dont see the discount? :/
Voucher issue in 2.6.1.0
Alright so i got my solution updated to 2.6.1.0 because i saw a lot of people with issues with vouchers in the older versions, however this didnt solve my problem for some reason.
I used the VoucherCode just to check that it actually finds it and it does, but when i validate the voucher with this
It doesent validate i've checked the parameters in the backend and everything should be alright, i even created a few new to test. They are enabled and they are within date limits. So i'm not really sure why its not doing anything and not sure why it doesent validate :/
It's the code. The date range check is a bit off:
I flipped the comparison to "less than" instead of "greater than".
Arh alright, but the method UCommerce.Xslt.Library.AddVoucher(string) still doesent do anything to my order, when i check my basket object i dont see the discount? :/
Did you run the basket pipeline afterwards?
Actually i just assumed the xslt library handled that for me so much for not paying for reflector after trial expired:) it works now awesomesauce!
Thanks a bunch Søren, on a side node could you email me a free linces for a shop with instructions? ([email protected])
You can get a free license through the website at http://www.ucommerce.dk/en/products
Just hit the download button under FREE.
is working on a reply...