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

#   Download a file once it's been paid

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

13 years 6 months ago [\#101916](#101916) by [lancernz](/forum/user/13316-lancernz "View lancernz's Profile")  *[Download a file once it's been paid](/forum/4-how-to/81282-download-a-file-once-its-been-paid#101916 "After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.  The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.  In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.  The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.  Can you think of an easy way where the purchaser can download the file?  Thanks!")* was created by *[lancernz](/forum/user/13316-lancernz "View lancernz's Profile")*

After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.

The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.

In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.

The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.

Can you think of an easy way where the purchaser can download the file?

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjgyLWRvd25sb2FkLWEtZmlsZS1vbmNlLWl0cy1iZWVuLXBhaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 4078
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#101942](#101942) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Download a file once it's been paid](/forum/4-how-to/81282-download-a-file-once-its-been-paid#101942 "After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.  The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.  In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.  The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.  Can you think of an easy way where the purchaser can download the file?  Thanks!")*

Hi,

[ www.hikashop.com/en/support/documentatio....html#checkout\_login](http://www.hikashop.com/en/support/documentation/integrated-documentation/54-hikashop-config.html#checkout_login)

> Finally, please note that when you sell digital goods, the download of these goods is restricted to the users who bought the digital goods. In order to do that check HikaShop needs you to have user accounts for your users, which means that you will have to use either "registration" or "simplified registration".

The download system is not compatible with the "no registration", it needs a Joomla account.

You can customize your emails in the HikaShop backend and you can edit the HikaSerial views.
So you can add some text before the table of serials and display them on another form. You can add links too if you want.

I do not right understand what is the "gate entry ticket PDF", could you explain more your needs about it ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjgyLWRvd25sb2FkLWEtZmlsZS1vbmNlLWl0cy1iZWVuLXBhaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 11
- Thank you received: 0
-
-

13 years 6 months ago [\#102086](#102086) by [lancernz](/forum/user/13316-lancernz "View lancernz's Profile")  Replied by *[lancernz](/forum/user/13316-lancernz "View lancernz's Profile")* on topic *[Download a file once it's been paid](/forum/4-how-to/81282-download-a-file-once-its-been-paid#102086 "After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.  The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.  In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.  The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.  Can you think of an easy way where the purchaser can download the file?  Thanks!")*

Hi Jerome,

Thanks for your explanation. I've tried enabling registration however I get the message 'Registration not allowed' regardless of the Login &amp; Registration settings.
To clarify, I use ExtendedReg for user management, as it handles other user functions.

In this instance I am not so concerned the user must log in to the site to retrieve the file - the email link would suffice. Is there a simple way to enable this?
How could the email be customized to provide a direct email link - only when that product was ordered? That could be a workaround solution.

Regards,
Lance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjgyLWRvd25sb2FkLWEtZmlsZS1vbmNlLWl0cy1iZWVuLXBhaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 4078
-
- [](http://obsi.dev)
-

13 years 6 months ago -  13 years 6 months ago [\#102208](#102208) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Download a file once it's been paid](/forum/4-how-to/81282-download-a-file-once-its-been-paid#102208 "After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.  The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.  In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.  The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.  Can you think of an easy way where the purchaser can download the file?  Thanks!")*

Hi,

I am note sure that it could be a good workaround.
Secured files are stored in a secured folder with a "htaccess" file. It is not possible to access to files directly, only a PHP script could send these files.

In the emails, you can modify the content is order to not display the secure url and display the "file path" itself.
At this moment, the file path must be url (which begins with "http"). So instead of having secured url, you will have direct url to your files (but at this moment, there will be no security on the files). Code:

echo '&lt;a href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$data-&gt;order_id.$file_pos.$url_itemid).'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;';

By Code:

echo '&lt;a href="'.$file-&gt;file_path.'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;';

Regards,

---

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

Last edit: 13 years 6 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjgyLWRvd25sb2FkLWEtZmlsZS1vbmNlLWl0cy1iZWVuLXBhaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 11
- Thank you received: 0
-
-

13 years 6 months ago [\#102247](#102247) by [lancernz](/forum/user/13316-lancernz "View lancernz's Profile")  Replied by *[lancernz](/forum/user/13316-lancernz "View lancernz's Profile")* on topic *[Download a file once it's been paid](/forum/4-how-to/81282-download-a-file-once-its-been-paid#102247 "After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.  The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.  In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.  The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.  Can you think of an easy way where the purchaser can download the file?  Thanks!")*

Hi Jerome,

Thank you for that - I believe that is a legitimate workaround that ideally could be made to be an option within Hikashop.

It does work, although it required having to upload the file to the root of the website and change its name according to the change Hikashop had made.
Other than that - brilliant. Thank you so much for suggesting the code change.

FYI, to make the change edit the email file (System - Emails - Order status notification). It's approximately on line 165. Simply swap the code out above and viola - direct download link.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjgyLWRvd25sb2FkLWEtZmlsZS1vbmNlLWl0cy1iZWVuLXBhaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 4078
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#102276](#102276) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Download a file once it's been paid](/forum/4-how-to/81282-download-a-file-once-its-been-paid#102276 "After reading many pages and even purchasing Hikaserial - we're back to the same stumbling block.  The weblink in the 'Your order No XX is now Confirmed....' when clicked takes the user to the website and requires them to log on. As they never registered before purchase the whole transaction fails.  In a separate panel below that link is the product serial number - but there is no link or simple explanation on what to do with it.  The email is generic in nature as we are selling merchandise and I've been asked to include a gate entry ticket PDF download to what people can purchase.  Can you think of an easy way where the purchaser can download the file?  Thanks!")*

Hi,

I created a "feature request".

Regards,

---

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

The following user(s) said Thank You: [lancernz](/forum/user/13316-lancernz "View lancernz's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjgyLWRvd25sb2FkLWEtZmlsZS1vbmNlLWl0cy1iZWVuLXBhaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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?

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

Time to create page: 0.115 seconds

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