- Posts: 190
- Thank you received: 9
Quest checkout error while it is not guest checkout
6 years 1 month ago #323749
by joris85
Quest checkout error while it is not guest checkout was created by joris85
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : GUEST_CHECKOUT_NOT_POSSIBLE_WITH_USER_GROUP_AFTER_PURCHASE="You cannot proceed to a guest checkout as some of the products in your cart require a registration to our website. Please register an account or remove these products from your cart in order to proceed."
Hi guys,
I have chosen Registration in the checkout options.
www.dropbox.com/s/6zz6lnvouev7m66/Scherm...%2015.25.16.png?dl=0
Though still i get the error that i can't go on.
If i delete the error and just fill in the checkout i have an account and it works fine.
Url to add a product with usergroup:
bosenklimaat.nl/index.php?option=com_hik...y=1&cid=2&Itemid=716
So it looks like there is a bug in this check and gives the error when not needed.
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : GUEST_CHECKOUT_NOT_POSSIBLE_WITH_USER_GROUP_AFTER_PURCHASE="You cannot proceed to a guest checkout as some of the products in your cart require a registration to our website. Please register an account or remove these products from your cart in order to proceed."
Hi guys,
I have chosen Registration in the checkout options.
www.dropbox.com/s/6zz6lnvouev7m66/Scherm...%2015.25.16.png?dl=0
Though still i get the error that i can't go on.
If i delete the error and just fill in the checkout i have an account and it works fine.
Url to add a product with usergroup:
bosenklimaat.nl/index.php?option=com_hik...y=1&cid=2&Itemid=716
So it looks like there is a bug in this check and gives the error when not needed.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323760
by joris85
Replied by joris85 on topic Quest checkout error while it is not guest checkout
I did a display none on the message so people will not be confused.
.view-checkout #system-message-container {
display: none;
}
.view-checkout #system-message-container {
display: none;
}
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323755
by nicolas
Replied by nicolas on topic Quest checkout error while it is not guest checkout
Hi,
Indeed. I think that the issue can be fixed with this:
Add the code:
after the code:
in the file plugins/hikashop/group/group.php
That will skip the check on the user being a guest after the user went through the login view.
Indeed. I think that the issue can be fixed with this:
Add the code:
Code:
$hkUser = hikashop_loadUser();
if(empty($hkUser))
return;
Code:
$user = JFactory::getUser();
if(empty($user->guest))
return true;
That will skip the check on the user being a guest after the user went through the login view.
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds