View the order confirmation in a browser

  • Posts: 5
  • Thank you received: 0
9 years 11 months ago #181683

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

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 11 months ago #181698

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:

<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>
to:
<!--{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}-->
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:
'USER_ACCOUNT' => (bool)@$customer->user_cms_id,
after the line:
'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),
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

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

  • Posts: 5
  • Thank you received: 0
9 years 11 months ago #181719

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.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 11 months ago #181744

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.

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

Time to create page: 0.044 seconds
Powered by Kunena Forum