Skip to main content

Download area - link not active on re-purchase

More
12 years 8 months ago - 12 years 8 months ago #139748 by aegir
-- url of the page with the problem -- : worldoftextures.com
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.27

Hi.

The page is selling digital downloads for a small fee. When buying the download, the customer gets the link in an e-mail and the link appears in the download area. The customer has 24 hours to do the download and can do it several times in that period.
The problem is when the customers buys the same download again later. Then he will get a valid link in the e-mail but the link in the download area is not open. It's like the download area does not acknowledge the new purchase and even though it shows the link and the 'Last purchased at' date, the link is not open, and the message 'Download period has elapsed' is there.

So in short:
With a new purchase of the same download later when the first download period is elapsed, the customer can download from the e-mail but not from the download area, as the download link is not open there.



Other than small hickups here and there, which in the end are all due to my own shortcomings, I think your software is a great product.

Best
Aegir
Last edit: 12 years 8 months ago by aegir. Reason: spelling

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

More
12 years 8 months ago #139753 by aegir
Just wanted to add to the above:

I think the download area is a very valuable feature. You don't have to wait for the email and get instant access to your downloads, plus you have a list of all your downloads in one place.

Best
Aegir

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

More
12 years 8 months ago #139801 by Mohamed Thelji
Hi,
Can you show me how did you configured your product through some screenshots so that I can do some tests on my end ?

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

More
12 years 8 months ago - 12 years 8 months ago #139901 by aegir
Hi Mohamed

Here are some screenshots. If you need any more let me know.














Last edit: 12 years 8 months ago by aegir.

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

More
12 years 8 months ago #139902 by aegir
A couple of more screenshots:



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

More
12 years 8 months ago #140438 by Jerome
Hi,

We will check with a configuration like yours (25 hours of download time limit) but I will highly recommend you to right configure the parameter "upload secure folder". With the current value I don't think that the download will succeed.

Regards,

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

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

More
12 years 8 months ago #140458 by aegir
Hi Jerome

Thank you for checking this out.

Regarding the "upload secure folder" parameter:
This links to another server and is fully functioning. I saw no reason to publish the link here so I took it out.

Kind regards
Aegir

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

More
12 years 8 months ago - 12 years 8 months ago #141343 by Mohamed Thelji
Hi Aegir,
Sorry for the late reply, I just succeed to reproduce your issue and made a fix, can you edit the file : "YourWebSite\components\com_hikashop\views\user\tmpl\downloads.php".

And change the line :
Code:
if(!empty($this->download_time_limit) && ($this->download_time_limit + $downloadFile->order_created) < time()) {
By :
Code:
if(!empty($this->download_time_limit) && ($this->download_time_limit + $downloadFile->max_order_created) < time()) {
Last edit: 12 years 8 months ago by Mohamed Thelji.

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

More
12 years 8 months ago #141376 by aegir
Hi Mohamed

Thank you for working on this issue.

I followed the instructions, but for me it's not quite working yet, even though there is a small progress:
As I recall, there was no active link before on the "Show the downloads" page for the item in question.
Now there is an active link on the "Show the downloads" page, but once clikked, there is the message: >> Download period has elapsed and on this page ( worldoftextures.com/index.php/user-contr...e_id-696/order_id-61 ) there is nio active link.
The customer download link in the e-mail works, as before, but the link in the notification e-mail to the administrator returns the administrator login page for the site. Can't remember if that was the case before.

If it helps, I can give you back-end access to the site.

Kind regards
Aegir

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

More
12 years 8 months ago - 12 years 8 months ago #141454 by Mohamed Thelji
Thanks for your feedback, can you unzip the following file :

This attachment is hidden for guests.
Please log in or register to see it.


Replace the file : "YourWebSite\components\com_hikashop\views\user\tmpl\downloads.php".

And test it again :).
Last edit: 12 years 8 months ago by Mohamed Thelji.
The following user(s) said Thank You: aegir

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

More
12 years 8 months ago #141519 by aegir
Thank you Mohamed

You are a gem.
Installed the file and now this works perfectly.

Kind regards
Aegir

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

More
12 years 6 months ago #150866 by 604steph
I am having the exact same problem, so... perhaps you should be releasing a fix of this?

Should I do the same thing, download that file and replace it on my installation?

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

More
12 years 6 months ago #150957 by Mohamed Thelji
Hello,
Can you download the last Hikashop version through our website, install it and test it again ?
Thanks.

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

Time to create page: 0.282 seconds
Powered by Kunena Forum