- Posts: 8
- Thank you received: 2
Email notification URL for guest access
3 years 4 months ago #352598
by drop
Email notification URL for guest access was created by drop
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.
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.
3 years 3 months ago #352604
by nicolas
Replied by nicolas on topic Email notification URL for guest access
Hi,
Thank you for your feedback.
That's something no one had reported so far.
Add the code:
before the line:
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.
Thank you for your feedback.
That's something no one had reported so far.
Add the code:
Code:
if(empty($element->customer->user_cms_id)) {
$url.='&order_token='.$element->order_token;
}
Code:
$element->order_url = hikashop_contentLink('order&task=show&cid[]='.$element->order_id.$url, $element, false, false, false, true);
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.161 seconds