Download a file once it's been paid

  • Posts: 11
  • Thank you received: 0
11 years 6 months ago #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!

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 6 months ago #101942

Hi,

www.hikashop.com/en/support/documentatio....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 & 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: 11
  • Thank you received: 0
11 years 6 months ago #102086

Hi Jerome,

Thanks for your explanation. I've tried enabling registration however I get the message 'Registration not allowed' regardless of the Login & 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 or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 6 months ago #102208

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

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

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.
Last edit: 11 years 6 months ago by Jerome.

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

  • Posts: 11
  • Thank you received: 0
11 years 6 months ago #102247

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 or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 6 months ago #102276

Hi,

I created a "feature request".

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.
The following user(s) said Thank You: lancernz

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

Time to create page: 0.063 seconds
Powered by Kunena Forum