Attach Serial Download missing fields for Guest
11 years 6 months ago #196181
by philgsy
Attach Serial Download missing fields for Guest was created by philgsy
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196194
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Attach Serial Download missing fields for Guest
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,
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.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196201
by philgsy
Replied by philgsy on topic Attach Serial Download missing fields for Guest
Thanks Jerome.. Heres some of the screenshots. More in a moment...
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196202
by philgsy
Replied by philgsy on topic Attach Serial Download missing fields for Guest
More screenshots.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196203
by philgsy
Replied by philgsy on topic Attach Serial Download missing fields for Guest
Product config settings too (just incase)
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196217
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Attach Serial Download missing fields for Guest
Hi,
Thanks, I finally got it.
Please edit the plugin "plugins/hikaserial/attachserial/attachserial.php" and replace the code
With
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,
Thanks, I finally got it.
Please edit the plugin "plugins/hikaserial/attachserial/attachserial.php" and replace the code
Code:
$orderClass = hikaserial::get('shop.class.order');
$order = $orderClass->loadFullOrder($file->order_id);
Code:
$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.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.148 seconds