- Posts: 53
- Thank you received: 2
Page gets submitted if user selects to use points
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Firefox 33
Hello,
Our checkout page gets submitted instantly if the user selects to use points as payment. If prior selects some shipping methods or payments methods, then acts normally, but if the first click goes on the points then the page gets submitted immediately. Please help, we allready upgraded our site and we have missed this bug on our test site.
Regards,
Dezso
Please Log in or Create an account to join the conversation.
Can you please provide a screenshot of your checkout workflow configuration ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We're not able to reproduce the problem on our end.
Could you provide a backend access so that we could check the rest of your settings and a user account with points so that we could do some tests on your checkout ?
If so, you can provide that via our contact form with a link to this thread.
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
I have sent the access details on the provided link.
Regards,
Dezso
Please Log in or Create an account to join the conversation.
Did you received the message with the access details?
Regards,
Dezso
Please Log in or Create an account to join the conversation.
Due to user complaints we had to swich off the reward points system on our site. We had several reports that as soon as they clicked to use points as payment, the page gets submitted without using the points.
Currently we have a development site, so if you are still interested in helping us, please ask for access details.
Regards,
Dezso Markon
vitaking.ro
Please Log in or Create an account to join the conversation.
Regarding the reproduction of this bug, I think you have in your plugin configuration the option Do not use point by default on No. In this case works as expected. Switch to Yes and give it a try. Of course, you need the Auto select default shipping and payment methods on yes. In this case, on the checkout page if your first click goes on the Yes option to use your existing points, the page gets submitted.
Regards,
Dezso
Please Log in or Create an account to join the conversation.
Yes we received your credentials (but each time you reply to your thread is lost his place in our ticket system).
Thanks for the tip about the "do not use points by default - yes" ; I'll perform some tests with that and when I'll be able to reproduce your issue, I could provide a patch.
I saw that you made some replies that's why I prefer to notify you now ; but I will work on the patch later (it is in my queue).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Sorry for the late answer.
In the file "plugins/hikashop/userpoints/userpoints.php" you will find the function "onAfterCheckoutStep".
Please replace in that function
Then replace 2 times (just below)
So the plugin will have the correct information of the default state for the checkout selection.
Then when you will change the state of the radio, it won't submit the checkout but it will stay on the same step.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
In the mentioned file I don't have the
line. Also I don't have $default_no_virtual variable in the file. You are looking at the right version of this file?
This is how it looks the onAfterCheckoutStep function in 2.3.5 :
So what I have to change in this?
Regards,
Dezso
Please Log in or Create an account to join the conversation.
Oh yes, I've clean a little bit the code after the release...
So for the first replacement block ; the idea stays the same (add a new line)
But the easier will be to use the full new function:
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Thank you for your help, works!
One more think, in order to get this payment method work perfectly. You have a bug in the mail notification preload files, around line 255, the line
should be
in order to have the points in the notification mails displayed.
Thanks again, regards,
Dezso
Please Log in or Create an account to join the conversation.
No, the "if" check is good, but the value in the variable "order_product_price" should be converted.
You have to add this code just before the "if"
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.