Attach Serial Download missing fields for Guest

  • Posts: 22
  • Thank you received: 3
9 years 3 weeks ago #196181

-- url of the page with the problem -- : ticketaccess.uk/
-- HikaShop version -- : 2.4.0 (Business)
-- HikaSerial version -- : 1.9.1
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5.20
-- Browser(s) name and version -- : Chrome

When a guest user purchases a product through the site the download link does not properly generate the Attach Serial and some elements appear to be missing from the download.
The attachment in the email is correct, however the link generates a slightly different page with some fields missing.

On the download link the following Dynamic Text items are missing from the output

1) Product_ID (In this example 13) which is prefixed as part of the QR codes and also as a prefix plain text event code printed under the QR code
2) Customer FirstName
3) Customer LastName
4) Product Price

Happy to provide access to the site for debugging if required.

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 3 weeks ago #196194

Hi,

Would it be possible to have more details about your attach serial configuration and maybe your test order ?
So I will be able to reproduce your configuration in my local website and see what is missing.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 22
  • Thank you received: 3
9 years 3 weeks ago #196201

Thanks Jerome.. Heres some of the screenshots. More in a moment...

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

  • Posts: 22
  • Thank you received: 3
9 years 3 weeks ago #196202

More screenshots.

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

  • Posts: 22
  • Thank you received: 3
9 years 3 weeks ago #196203

Product config settings too (just incase)

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 3 weeks ago #196217

Hi,

Thanks, I finally got it.
Please edit the plugin "plugins/hikaserial/attachserial/attachserial.php" and replace the code

		$orderClass = hikaserial::get('shop.class.order');
		$order = $orderClass->loadFullOrder($file->order_id);
With
		$orderClass = hikaserial::get('shop.class.order');
		$order = $orderClass->loadFullOrder($file->order_id, true, false);

The function "loadFullOrder" of HikaShop generally check that the current logged user have the right to open the order (in the front-end context).
Because you're using a guest account, the user is not logged so HikaShop can't see that the current user is the same than for the order.
That's why we have to deactivate the check of the user with the third parameter ; and because the guest download was not available before, I didn't remove the user check before.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.070 seconds
Powered by Kunena Forum