No download link or button after update to 1.5.7b
I've run a Zen Cart site since 2010, with little or no problems. I sell 95% digital products, with a very few physical items.
Unfortunately, my web server just updated PHP, and my ZC installation died so I had to update to the latest release.
Everything is done, tested, and working, except when someone purchases a digital product, there is no way for them to download it. The order is approved, they get an email, and the order shows up in their history, but there's no download link and no button. I've tried:
- Verified the Downloads are configured correctly
- Verified the files exist (all have green lights beside them in the Download Manager)
- Confirmed both Configuration.php files are correct
I also found a "missing download button" issue in the list of known bugs, and attempted to patch the code with what was in GitHub, but I'm not a developer and have no idea if I did it right (the site is still working otherwise, though, so I assume I didn't break anything).
Has anyone else had this issue? Do you have any recommendations on what else to try?
Re: No download link or button after update to 1.5.7b
Not knowing what version you came from, things might be different. Have you looked at https://docs.zen-cart.com/user/produ...ivery_methods/
Re: No download link or button after update to 1.5.7b
Is the order status compatible with download? (i.e. between the lower and upper values specified in Admin > Configuration > Attribute Settings)
Re: No download link or button after update to 1.5.7b
Quote:
Originally Posted by
swguy
Is the order status compatible with download? (i.e. between the lower and upper values specified in Admin > Configuration > Attribute Settings)
I think this may be part of the solution. I left the default values in place, but when I tried to confirm that my payment module sets them, I found that Stripe is not showing up under Modules > Payment. Stripe is installed, and I have tested it with live transactions (charged my card for $1 using a coupon code), but the payment module isn't showing up in the admin console so I can't confirm if it's setting the order status correctly.
THAT SAID, when I look at the order history, they all show "Delivered." I tried changing it to "Processing" (which should also enable downloads), but still no button or link. In Admin > Configuration > Attribute Settings, the Lower value is 2 and the Upper value is 4.
Re: No download link or button after update to 1.5.7b
EDIT:
I fixed the issue that was causing Stripe not to show up in the admin section (there were some old Authorizenet and Linkpoint files that were throwing errors and causing the page to stop rendering). But Stripe is setting the order status to "Delivered" (3), so it falls in the proper values for downloading. Any other ideas?
Re: No download link or button after update to 1.5.7b
Quote:
Originally Posted by
dbltoe
Thanks! Yes, I looked at that. And I think I came from version 1.5.3 (a very, very old version). I think I have my delivery methods set correctly, though.
Re: No download link or button after update to 1.5.7b
Go to Admin > Catalog > Downloads Manager.
Are the icons for each of the files you are trying to download green?
Re: No download link or button after update to 1.5.7b
Quote:
Originally Posted by
swguy
Go to Admin > Catalog > Downloads Manager.
Are the icons for each of the files you are trying to download green?
Yes. All of files are there and green.
Re: No download link or button after update to 1.5.7b
If you have
includes/templates/YOURTEMPLATE/templates/tpl_modules_downloads.php
remove it so that you are using the base version of this file.
There was a change in 1.5.6 that your template won't be aware of if it hasn't been updated.
https://docs.zen-cart.com/user/upgra...onsiderations/
Re: No download link or button after update to 1.5.7b
Quote:
Originally Posted by
swguy
If you have
includes/templates/YOURTEMPLATE/templates/tpl_modules_downloads.php
remove it so that you are using the base version of this file.
There was a change in 1.5.6 that your template won't be aware of if it hasn't been updated.
https://docs.zen-cart.com/user/upgra...onsiderations/
No luck... I don't have that file in that path.
I thought that seemed like a really good direction, so I even tried changing my template since my template is older. There's still no option to download, even if I change to the "Responsive Classic Template" included with the distribution.
1 Attachment(s)
Re: No download link or button after update to 1.5.7b
Attachment 19459
These are my attribute settings... the system allows people to purchase downloadable products, but doesn't provide any way at all to download them. Am I missing something?
Re: No download link or button after update to 1.5.7b
Quote:
Originally Posted by
aerosly
the system allows people to purchase downloadable products, but doesn't provide any way at all to download them
When files are attached to the downloads as described in the docs AND the files actually exist on your webserver in the /downloads directory as described in the docs, then customers will see a button to download the files for the items they've purchased when their payment has moved to Processing or higher status (eg: is not "pending" such as send-payment-by-mail or payment modules that are authorize-only-until-storeowner-captures/settles-payment), as described in the docs.
Perhaps your "upgrade" built a new site in a new directory but didn't actually copy the downloads directory over and therefore it has no links to offer to your customers?
Re: No download link or button after update to 1.5.7b
@aerosly You're going to have to work with a developer to see what's wrong with your installation. The download functionality *does* work properly in 1.5.7; I use it in my store and have done several upgrades to 1.5.7 for stores that offer downloads and they work fine.
Re: No download link or button after update to 1.5.7b
Quote:
Originally Posted by
swguy
@aerosly You're going to have to work with a developer to see what's wrong with your installation. The download functionality *does* work properly in 1.5.7; I use it in my store and have done several upgrades to 1.5.7 for stores that offer downloads and they work fine.
I think you're right. Any recommendations on a good developer who could look at this?
Re: No download link or button after update to 1.5.7b
Is the installation in the root or subdirectory?
When I was testing zc156 installed in a subdirectory, a similar thing happened with download buttons and I am not sure what ended up being the root cause other than something got futzed with between versions as a feature upgrade that was undisclosed in the docs.
Re: No download link or button after update to 1.5.7b
It works fine in a subdirectory. My store is thatsoftwareguy.com/store.
@aerosly, By chance did you set DIR_FS_DOWNLOAD differently in your includes/configure.php vs admin/includes/configure.php?
> Any recommendations on a good developer who could look at this?
Look down ...
||
||
V
Re: No download link or button after update to 1.5.7b
The problem is fixed! A developer reached out to me here and was able to quickly fix the issue.
He removed /includes/templates/MY_TEMPLATE/template/tpl_modules_downloads.php and uploaded the one from the 1.5.7b fileset and it works now. I guess something didn't upload or copy correctly during the upgrade.
Thank you all so much for the help!