[Skip to main content](#vessel-content)

#   Attach Serial Download missing fields for Guest

##

- **[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")**
- [![philgsy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8182-philgsy "View philgsy's Profile") Topic Author
- [ Offline](/forum/user/8182-philgsy)

Less More

- Posts: 22
- Thank you received: 3
-
-
- [](http://www.fusion.gg)
-

11 years 7 months ago [\#196181](#196181) by [philgsy](/forum/user/8182-philgsy "View philgsy's Profile")  *[Attach Serial Download missing fields for Guest](/forum/16-serial-bug-report/875946-attach-serial-download-missing-fields-for-guest#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&#95;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.")* was created by *[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")*

-- url of the page with the problem -- : [ ticketaccess.uk/](http://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.

- [ ![attachment.jpg](/forum/attachment/23345) ](/forum/attachment/23345 "attachment.jpg") [ ](/forum/attachment/23345?download=1 "attachment.jpg")
- [ ![download.jpg](/forum/attachment/23346) ](/forum/attachment/23346 "download.jpg") [ ](/forum/attachment/23346?download=1 "download.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0Lzg3NTk0Ni1hdHRhY2gtc2VyaWFsLWRvd25sb2FkLW1pc3NpbmctZmllbGRzLWZvci1ndWVzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#196194](#196194) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Attach Serial Download missing fields for Guest](/forum/16-serial-bug-report/875946-attach-serial-download-missing-fields-for-guest#196194 "-- 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&#95;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.")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0Lzg3NTk0Ni1hdHRhY2gtc2VyaWFsLWRvd25sb2FkLW1pc3NpbmctZmllbGRzLWZvci1ndWVzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")**
- [![philgsy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8182-philgsy "View philgsy's Profile") Topic Author
- [ Offline](/forum/user/8182-philgsy)

Less More

- Posts: 22
- Thank you received: 3
-
-
- [](http://www.fusion.gg)
-

11 years 7 months ago [\#196201](#196201) by [philgsy](/forum/user/8182-philgsy "View philgsy's Profile")  Replied by *[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")* on topic *[Attach Serial Download missing fields for Guest](/forum/16-serial-bug-report/875946-attach-serial-download-missing-fields-for-guest#196201 "-- 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&#95;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.")*

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

- [ ![1.png](/forum/attachment/23350) ](/forum/attachment/23350 "1.png") [ ](/forum/attachment/23350?download=1 "1.png")
- [ ![2.png](/forum/attachment/23351) ](/forum/attachment/23351 "2.png") [ ](/forum/attachment/23351?download=1 "2.png")
- [ ![3.png](/forum/attachment/23352) ](/forum/attachment/23352 "3.png") [ ](/forum/attachment/23352?download=1 "3.png")
- [ ![4.png](/forum/attachment/23353) ](/forum/attachment/23353 "4.png") [ ](/forum/attachment/23353?download=1 "4.png")
- [ ![5.png](/forum/attachment/23354) ](/forum/attachment/23354 "5.png") [ ](/forum/attachment/23354?download=1 "5.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0Lzg3NTk0Ni1hdHRhY2gtc2VyaWFsLWRvd25sb2FkLW1pc3NpbmctZmllbGRzLWZvci1ndWVzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")**
- [![philgsy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8182-philgsy "View philgsy's Profile") Topic Author
- [ Offline](/forum/user/8182-philgsy)

Less More

- Posts: 22
- Thank you received: 3
-
-
- [](http://www.fusion.gg)
-

11 years 7 months ago [\#196202](#196202) by [philgsy](/forum/user/8182-philgsy "View philgsy's Profile")  Replied by *[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")* on topic *[Attach Serial Download missing fields for Guest](/forum/16-serial-bug-report/875946-attach-serial-download-missing-fields-for-guest#196202 "-- 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&#95;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.")*

More screenshots.

- [ ![order1.png](/forum/attachment/23355) ](/forum/attachment/23355 "order1.png") [ ](/forum/attachment/23355?download=1 "order1.png")
- [ ![order2.png](/forum/attachment/23356) ](/forum/attachment/23356 "order2.png") [ ](/forum/attachment/23356?download=1 "order2.png")
- [ ![custom&#95;fields.png](/forum/attachment/23357) ](/forum/attachment/23357 "custom&#95;fields.png") [ ](/forum/attachment/23357?download=1 "custom&#95;fields.png")
- [ ![generator&#95;config.png](/forum/attachment/23358) ](/forum/attachment/23358 "...tor&#95;config.png") [ ](/forum/attachment/23358?download=1 "...tor&#95;config.png")
- [ ![pack&#95;config.png](/forum/attachment/23359) ](/forum/attachment/23359 "pack&#95;config.png") [ ](/forum/attachment/23359?download=1 "pack&#95;config.png")
- [ ![serial&#95;config.png](/forum/attachment/23360) ](/forum/attachment/23360 "serial&#95;config.png") [ ](/forum/attachment/23360?download=1 "serial&#95;config.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0Lzg3NTk0Ni1hdHRhY2gtc2VyaWFsLWRvd25sb2FkLW1pc3NpbmctZmllbGRzLWZvci1ndWVzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")**
- [![philgsy's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8182-philgsy "View philgsy's Profile") Topic Author
- [ Offline](/forum/user/8182-philgsy)

Less More

- Posts: 22
- Thank you received: 3
-
-
- [](http://www.fusion.gg)
-

11 years 7 months ago [\#196203](#196203) by [philgsy](/forum/user/8182-philgsy "View philgsy's Profile")  Replied by *[philgsy](/forum/user/8182-philgsy "View philgsy's Profile")* on topic *[Attach Serial Download missing fields for Guest](/forum/16-serial-bug-report/875946-attach-serial-download-missing-fields-for-guest#196203 "-- 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&#95;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.")*

Product config settings too (just incase)

- [ ![product&#95;1.png](/forum/attachment/23361) ](/forum/attachment/23361 "product&#95;1.png") [ ](/forum/attachment/23361?download=1 "product&#95;1.png")
- [ ![product&#95;2.png](/forum/attachment/23362) ](/forum/attachment/23362 "product&#95;2.png") [ ](/forum/attachment/23362?download=1 "product&#95;2.png")
- [ ![prouct&#95;3.png](/forum/attachment/23363) ](/forum/attachment/23363 "prouct&#95;3.png") [ ](/forum/attachment/23363?download=1 "prouct&#95;3.png")
- [ ![product&#95;4.png](/forum/attachment/23364) ](/forum/attachment/23364 "product&#95;4.png") [ ](/forum/attachment/23364?download=1 "product&#95;4.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0Lzg3NTk0Ni1hdHRhY2gtc2VyaWFsLWRvd25sb2FkLW1pc3NpbmctZmllbGRzLWZvci1ndWVzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#196217](#196217) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Attach Serial Download missing fields for Guest](/forum/16-serial-bug-report/875946-attach-serial-download-missing-fields-for-guest#196217 "-- 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&#95;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.")*

Hi,

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-&gt;loadFullOrder($file-&gt;order_id);

With Code:

$orderClass = hikaserial::get('shop.class.order'); $order = $orderClass-&gt;loadFullOrder($file-&gt;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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0Lzg3NTk0Ni1hdHRhY2gtc2VyaWFsLWRvd25sb2FkLW1pc3NpbmctZmllbGRzLWZvci1ndWVzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
