Email notification URL for guest access

  • Posts: 8
  • Thank you received: 2
1 year 5 months ago #352598

Hello.
I am trying to configure guest checkout on new project.
I can get URL for guest access when emailing customers with Order_status_notification. Url is something like that:
index.php?option=com_hikashop&ctrl=order&task=show&cid[]=666&order_token=CUHbDhtg&Itemid=999
But when I try with Order_notification (mail button in orders backend) I get same URL but without "order_token_CUHbDhtg" part. And as a result URL does not work properly.
I can see that in both mail templates URL is handled by $data->order_url, and giving different results.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
1 year 5 months ago #352604

Hi,

Thank you for your feedback.
That's something no one had reported so far.
Add the code:

if(empty($element->customer->user_cms_id)) {
			$url.='&order_token='.$element->order_token;
		}
before the line:
$element->order_url = hikashop_contentLink('order&task=show&cid[]='.$element->order_id.$url, $element, false, false, false, true);
in the file administrator/components/com_hikashop/classes/order.php and it should fix the problem.
We'll include the patch on our end for the next version of HikaShop.

The following user(s) said Thank You: drop

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

Time to create page: 0.044 seconds
Powered by Kunena Forum