Cart reminder bring customer to empty page

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
5 years 1 week ago #313032

-- HikaShop version -- : 4.2.2.
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.3

Hi,

When a customer is are no longer logged in on the website and they click on the link to go back to there shopping-cart they come up in a blank page.

I would expect that you will first be asked to login, and after you have logged in, you will be redirected to your shopping cart.

This message contains confidential information


When a user is logged in before they click on the link it's working perfect.

Hope you can tell what I'm doing wrong.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 5 years 1 week ago by Lumiga.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
5 years 1 week ago #313049

Hello,

I have a quick look on your website, and wasn't able to find any link to your account user, do you have define an Item Menu like this one :



If you haven't configure this type of Item Menu, this can explain the issue, if you have and this didn't work either, provide your screenshot of this Item Menu please.

Regards

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
5 years 1 week ago #313102

Hi Philip,

Yes there is a menu-item "user control panel" in a hidden menu.
This is linked to the button at the right top corner of the page.



Also with the other example there was such menu-item.



Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 1 week ago #313107

Hi,

I've somewhat reproduced the issue (besides the fact that I don't get a blank page).
However, the issue is not with the reminder plugin but with the way HikaShop handles the cart display page when the user is not logged in.
I've added a patch:

// if the cart_id comes from the URL try to load the cart while skipping the user checks
			$cart_id = hikashop_getCID('cart_id');
			if(!empty($cart_id)) {
				$cart = $cartClass->get($cart_id, null, array('skip_user_check' => true));
				// if the cart exists but the user checks failed and the user is not connected, redirect him to the Joomla login form
				$user_id = hikashop_loadUser(false);
				if(!empty($cart) && empty($user_id)) {
					// Redirect to login page
					$app = JFactory::getApplication();
					$app->enqueueMessage(JText::_('PLEASE_LOGIN_FIRST'));

					global $Itemid;
					$suffix = (!empty($Itemid) ? '&Itemid=' . $Itemid : '');

					$url = 'index.php?option=com_users&view=login';
					$app->redirect(JRoute::_($url . $suffix . '&return='.urlencode(base64_encode(hikashop_currentUrl('', false))), false));
				}
			}
just before the code:
hikashop_get('helper.checkout');
			$checkoutHelper = hikashopCheckoutHelper::get();
			$this->setRedirect($checkoutHelper->getRedirectUrl(), JText::_('CART_EMPTY'));
			return true;
in the file components/com_hikashop/controllers/cart.php and it then properly redirects to the login form in such case.
Please try the patch on your end.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
5 years 6 days ago #313194

Thanks!

It's working Perfect.

Wil you add this fix also to the new Hikashop version?

P.S. Something else I have not received any emails from your system for a month or two. I always have to go to the Hikashop website myself to see if there is an answer in the Forum. There are also no e-mails in my spam box.

Kind regards,
Lumiga


Kind regards,
Lumiga
Last edit: 5 years 6 days ago by Lumiga.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 5 days ago #313202

Hi,

Yes. We'll add that patch on our end.

Regarding the emails, our system does send them.
So it means that your server is rejecting the emails without even moving them to your spam box.
Try using another email address, like a gmail address and you'll see you'll get the emails so that means that the issue is on the email receiver server.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
5 years 4 days ago #313269

Hi Nicolas,

The e-mailadres info@lu....s.nl is a profession Google (Gmail) account.
So changing to Gmail won't fix this issue I think.
Do you have other ideas?

See screenshot, after June I don't receive any e-mails from This email address is being protected from spambots. You need JavaScript enabled to view it. anymore.
And your e-mail-address is also not blocked in Gmail.



Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 4 days ago #313277

Hi,

Then I don't know. We didn't do anything on our end and I can see that you're subscribed to notifications for your recent threads too (even this one), and your user account is properly active here.
All I can think of is that you have something on your end. Maybe you've configured some filters in your mailbox which delete the emails ?
support.google.com/mail/answer/6579?hl=en

The following user(s) said Thank You: Lumiga

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

  • Posts: 44
  • Thank you received: 0
  • Hikashop Multisite
4 years 6 months ago #318108

I have the same problem, you have pasted the patch but the blank page continues to appear, my user panel is not in the main menu, it is in another menu.
www.cristina-alba.com

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 6 months ago #318109

Hi,

could you provide a test user account and the link he gets in the cart reminder email so that we can reproduce the issue ?

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

  • Posts: 44
  • Thank you received: 0
  • Hikashop Multisite
4 years 6 months ago #318592

www.cristina-alba.com
user: test
pass: test

Link in the reminder email

www.cristina-alba.com/tienda/cart/show/cid-59

Last edit: 4 years 6 months ago by Gonzalez Villoria.

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

  • Posts: 12953
  • Thank you received: 1778
4 years 6 months ago #318621

Hello,

I think your issue is coming from the fact that your cart doesn't exist anymore, and that your template prevent your website from showing error messages. You'll find more information about this issue through our documentation :
www.hikashop.com/support/documentation/6...issues.html#messages

Kind regards,
Mohamed.

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

Time to create page: 0.122 seconds
Powered by Kunena Forum