-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voucher markers logic #27
Comments
Please use the forum at jambage.com to ask questions, so that other users can see them and my answers. |
It's not a question, is more a bug report/suggestion about the voucher logic because at the moment is not enough user friendly. |
tt_products supports the entry of one voucher code only. Always the latest voucher code is taken. |
Then maybe tx_ttproducts_voucher class is bugged because if user insert more than one voucher then, the first time, the vouchers do stacks. Example steps:
|
I tried many ways, debugging the
tx_ttproducts_voucher_view
code and trying the templates that I found, but I'm failing to understand the voucher markers logic.IMHO the FE HTML code for the voucher logic should have at least these 3 elements:
[1] voucher input field
[2] text that shows applied discount
[3] error message
When the basket is displayed the first time only [1] is displayed.
Then the user enter an invalid code: the basket refresh and it displays field [1] with the code entered and [3] with the error message. Since the user didn't yet enter a valid code, [2] is not displayed.
Then the user enter a valid code: the basket refresh and it displays field [1] with the code entered and [2] with the applied discount. It doesn't display [3] because there's no error.
Now, let's suppose that the user tries another code.
The user enter another code that is invalid: the basket refresh and it displays field [1] with the code entered and [2] with the discount of the first valid code and [3] with the error message.
The user enter another valid code: the basket refresh and it displays field [1] with the code entered and [2] with the applied discount that it's the total discount of the 2 codes. It doesn't display [3] because there's no error.
I can't achieve this with the actual code/markers of
tx_ttproducts_voucher_view
.The text was updated successfully, but these errors were encountered: