Error message when removing coupon
11 years 3 months ago - 11 years 3 months ago #205162
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Error message when removing coupon was created by lousyfool
-- url of the page with the problem -- : local
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED
Hi,
Not a big issue, but I found some oddity when removing a coupon in checkout and thought I'll let you know.
Conditions:
• Registration or simplified registration with password is selected.
• Login/registration and coupon on the same checkout page.
• Guest tries to remove (auto-loaded) coupon before having logged in or registered.
• Any template incl Protostar.
Result until 2.4.0:
• System alert:
• Auto-loaded coupon remains in place = is not being removed.
Result in 2.5.0:
• System alert:
• Auto-loaded coupon remains in place = is not being removed.
I sort of understand that an auto-loaded coupon does not get removed. But then there shouldn't be the success message "Coupon removed". And certainly not twice.
is present in both en-GB.ini (admin and frontend), but shows up since 2.5.0 as untranslated language constant - why?
I would understand if it shows up (translated!) upon finishing the checkout before entering a password - but that's practically impossible due to the "finish" button not being there. But why does it show up in connection with the coupon?
Sure, I see it's new in /components/com_hikashop/controllers/checkout.php, but maybe it still needs some work. As it's now, it's all too confusing for customers...
There's no head-scratching smiley. So, imagine me scratching my head. And one more
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED
Hi,
Not a big issue, but I found some oddity when removing a coupon in checkout and thought I'll let you know.
Conditions:
• Registration or simplified registration with password is selected.
• Login/registration and coupon on the same checkout page.
• Guest tries to remove (auto-loaded) coupon before having logged in or registered.
• Any template incl Protostar.
Result until 2.4.0:
• System alert:
Code:
Coupon removed
Coupon removed
Result in 2.5.0:
• System alert:
Code:
JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED
Coupon removed
Coupon removed
I sort of understand that an auto-loaded coupon does not get removed. But then there shouldn't be the success message "Coupon removed". And certainly not twice.
Code:
JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED="Empty password not allowed."
I would understand if it shows up (translated!) upon finishing the checkout before entering a password - but that's practically impossible due to the "finish" button not being there. But why does it show up in connection with the coupon?
Sure, I see it's new in /components/com_hikashop/controllers/checkout.php, but maybe it still needs some work. As it's now, it's all too confusing for customers...
There's no head-scratching smiley. So, imagine me scratching my head. And one more
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 11 years 3 months ago by lousyfool.
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205192
by nicolas
Replied by nicolas on topic Error message when removing coupon
Hi,
The coupon is actually really removed by the system. That's why you get the message. Of course, since it is an auto loaded coupon, the coupon is then automatically loaded after that. So you see it as remaining in place.
Regarding the fact that the this password message displays, you're right it has nothing to do there. We'll remove it. You can remove the line of code displaying the message in that file. It's not necessary at all.
The coupon is actually really removed by the system. That's why you get the message. Of course, since it is an auto loaded coupon, the coupon is then automatically loaded after that. So you see it as remaining in place.
Regarding the fact that the this password message displays, you're right it has nothing to do there. We'll remove it. You can remove the line of code displaying the message in that file. It's not necessary at all.
The following user(s) said Thank You: lousyfool
Please Log in or Create an account to join the conversation.
Time to create page: 0.209 seconds