Quest checkout error while it is not guest checkout

  • Posts: 190
  • Thank you received: 9
4 years 2 months ago #323749

-- 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.

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 9
4 years 2 months ago #323760

I did a display none on the message so people will not be confused.
.view-checkout #system-message-container {
display: none;
}

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #323755

Hi,

Indeed. I think that the issue can be fixed with this:
Add the code:

$hkUser = hikashop_loadUser();
		if(empty($hkUser))
			return;
after the code:
$user = JFactory::getUser();
		if(empty($user->guest))
			return true;
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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum