- Posts: 5
- Thank you received: 0
View the order confirmation in a browser
- michaelrothmann
-
Topic Author
- Offline
Less
More
11 years 10 months ago #181683
by michaelrothmann
View the order confirmation in a browser was created by michaelrothmann
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6 stable
-- PHP version -- : 5.4.34
-- Browser(s) name and version -- : Internet Explorer 11.0.96000.17420
-- Error-message(debug-mod must be tuned on) -- : None
Hi @ HikaShop
Looks like shopping as a guest will leave you with a "dead" link in the order confirmation?
In the order confirmation there is a link to show the order in a browser:
(HIKASHOP_MAIL_HEADER) = If you don't see this email properly, click here to see your order details
As this requires the costumer to log-in I presume the data is selected by a combination of registered costumer ID and order ID. Not just a unique order ID?
Thus it's not possible to view your order if you shop without registering on the site (Guest checkout).?
Link example:
http://MYDOMAIN/index.php?option=com_hikashop&ctrl=order&task=show&cid[]=13&Itemid=161
Message: Please login first
-- Joomla version -- : 3.3.6 stable
-- PHP version -- : 5.4.34
-- Browser(s) name and version -- : Internet Explorer 11.0.96000.17420
-- Error-message(debug-mod must be tuned on) -- : None
Hi @ HikaShop
Looks like shopping as a guest will leave you with a "dead" link in the order confirmation?
In the order confirmation there is a link to show the order in a browser:
(HIKASHOP_MAIL_HEADER) = If you don't see this email properly, click here to see your order details
As this requires the costumer to log-in I presume the data is selected by a combination of registered costumer ID and order ID. Not just a unique order ID?
Thus it's not possible to view your order if you shop without registering on the site (Guest checkout).?
Link example:
http://MYDOMAIN/index.php?option=com_hikashop&ctrl=order&task=show&cid[]=13&Itemid=161
Message: Please login first
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181698
by nicolas
Replied by nicolas on topic View the order confirmation in a browser
Hi,
Yes, it's not possible to see the order if the user did a guest checkout, for security reasons. The link should be removed from there.
Change the code:
to:
in the files media/com_hikashop/mail/order_creation_notification.html.php , media/com_hikashop/mail/order_notification.html.php and media/com_hikashop/mail/order_status_notification.html.php
and add the line:
after the line:
in the files media/com_hikashop/mail/order_creation_notification.preload.php , media/com_hikashop/mail/order_notification.preload.php and media/com_hikashop/mail/order_status_notification.preload.php and that will remove the link for guests
Yes, it's not possible to see the order if the user did a guest checkout, for security reasons. The link should be removed from there.
Change the code:
Code:
<div class="hikashop_online" style="font-family:Arial, Helvetica,sans-serif;font-size:11px;line-height:18px;color:#6a5c6b;text-decoration:none;margin:10px;text-align:center;">
<a style="cursor:pointer;color:#2d9cbb;text-decoration:none;border:none;" href="{VAR:URL}">
<span class="hikashop_online" style="color:#6a5c6b;text-decoration:none;font-size:11px;margin-top:10px;margin-bottom:10px;text-align:center;">
{TXT:MAIL_HEADER}
</span>
</a>
</div>
Code:
<!--{IF:USER_ACCOUNT}-->
<div class="hikashop_online" style="font-family:Arial, Helvetica,sans-serif;font-size:11px;line-height:18px;color:#6a5c6b;text-decoration:none;margin:10px;text-align:center;">
<a style="cursor:pointer;color:#2d9cbb;text-decoration:none;border:none;" href="{VAR:URL}">
<span class="hikashop_online" style="color:#6a5c6b;text-decoration:none;font-size:11px;margin-top:10px;margin-bottom:10px;text-align:center;">
{TXT:MAIL_HEADER}
</span>
</a>
</div>
<!--{ENDIF:USER_ACCOUNT}-->
and add the line:
Code:
'USER_ACCOUNT' => (bool)@$customer->user_cms_id,
Code:
'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),
Please Log in or Create an account to join the conversation.
- michaelrothmann
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
11 years 10 months ago #181719
by michaelrothmann
Replied by michaelrothmann on topic View the order confirmation in a browser
Thank you for the guidance.
I'll give it a try, although I am a costumer of HikaShop - not a programmer
it sounds more to me like a bug-fix that should be implemented in an update?
Is there an option to show the order confirmation in the browser at the end of the purchase?
This could be an alternative for non-registered costumers, giving them the ability to print it in it's proper form/layout.
I'll give it a try, although I am a costumer of HikaShop - not a programmer

it sounds more to me like a bug-fix that should be implemented in an update?
Is there an option to show the order confirmation in the browser at the end of the purchase?
This could be an alternative for non-registered costumers, giving them the ability to print it in it's proper form/layout.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181744
by nicolas
Replied by nicolas on topic View the order confirmation in a browser
It's indeed a bug fix and will be implemented in the next version of HikaShop. I was just giving you the solution ahead of that as usually people don't want to wait for updates in order to get the fix 
On top of that, other users might be interested in fixing this before the release so it's a good opportunity, when possible and not too complex, to directly post the fix on the thread with the question.
There is no option to show the order confirmation in the browser at the end of the purchase, specially for guest customers without a user account, unless you hire a programmer to modify the thank you page in order to display the order data directly on the thank you page.
On top of that, other users might be interested in fixing this before the release so it's a good opportunity, when possible and not too complex, to directly post the fix on the thread with the question.
There is no option to show the order confirmation in the browser at the end of the purchase, specially for guest customers without a user account, unless you hire a programmer to modify the thank you page in order to display the order data directly on the thank you page.
Please Log in or Create an account to join the conversation.
Time to create page: 0.146 seconds