Zen Cart Logo
Forums / General Questions / Download link in succes page???

Download link in succes page???

Locked

Views: 2,457

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
27 Feb 2010, 4:24 PM
#1
goalsurfer avatar

goalsurfer

Banned

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Download link in succes page???

I followed the steps described in "Downloadable Products Tutorial" at

zencart-ecommerce-website-design.com/index.php?main_page=page&id=13&chapter=0

but there is no download link in the success page after payment.
How to add this so that the ebook can immediately be downloaded after redirecting to succes page of zencart shop by paypal?
Thanks.

[(new installed version 1.3.8 of Zencart)
addons: Paypal, google-analytics
using free template darkness
first store]

27 Feb 2010, 11:04 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Download link in succes page???

use PayPal Express Checkout instead of Website Payments Standard.

28 Feb 2010, 5:33 PM
#3
goalsurfer avatar

goalsurfer

Banned

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: Download link in succes page???

I'm using 'PayPal Express Checkout' indeed now as only payment method at the moment, but there is still no download link in the success page. Further there is always the note "NOTE: Downloads are not available until payment has been confirmed".

I did several steps again following different tutorials.

There is one thing: the tutorial ask to submit url for the download in the attribute controller whereas it only accepts filename "name.zip"

28 Feb 2010, 7:09 PM
#4
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Download link in succes page???

goalsurfer:

I'm using 'PayPal Express Checkout' indeed now as only payment method at the moment, but there is still no download link in the success page. Further there is always the note "NOTE: Downloads are not available until payment has been confirmed".

I did several steps again following different tutorials.

There is one thing: the tutorial ask to submit url for the download in the attribute controller whereas it only accepts filename "name.zip"

  1. Are you indeed uploading a .zip file and do you get a green light in the attributes area that indicates the file exists?

  2. Check your paypal express checkout configuration on the following: (correct setting is highlighted in red)

Payment Action
How do you want to obtain payment?
Default: Final Sale

Auth Only
Final Sale

and

Live or Sandbox
Live: Used to process Live transactions
Sandbox: For developers and testing

live
sandbox

28 Feb 2010, 7:26 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Download link in succes page???

You also need to be sure your PayPal Express module is set to use "Processing[2]" as the Order Status.

Download links do not show if the order you're referring to isn't in a suitable status. This is also outlined in the FAQs on downloadable products.

2 Mar 2010, 3:57 PM
#6
goalsurfer avatar

goalsurfer

Banned

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: Download link in succes page???

It is working at last although I first had to put the Order Status to Delivered[3] (something wrong with this???)

But now I have next problem: the download link doesn't give the right path but something like http://pub/.tempfolder/filename.zip

Where do I change that please?

3 Mar 2010, 3:59 PM
#7
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Download link in succes page???

There should be a button the customer needs to click to get the download. The link to where the download is will not show - because you don't want people to see where your downloads are. As long as you have uploaded the zip file into your zen cart directory into the DOWNLOADS folder, and you see a green light indicating the file is there... they should just be able to click the download button and the download will begin.

To double check and make sure you have the download set up correctly, in your admin, go to Catalog>Downloads Manager and make sure you see the file with the green dot next to it.

3 Mar 2010, 9:28 PM
#8
goalsurfer avatar

goalsurfer

Banned

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: Download link in succes page???

I see a small green cirkle indeed and I do have download buttons after paypal checkout now, but when I click on them I get an error page from firefox that the server can't be found. Not even when I right click on the button I get a download.

Nevertheless when you hover over the buttons you see the complete download link in the status bar.

After a look in both the configure.php's I remarked the directory 'pub' isn't mentioned ones in the admin's configure.php, only in the catalog's configure.php. Do you think I should add the path in the one configuration file?

Further I remarked the success link is NO secure link, although I filled in a secure auto return link in paypal. I have enabled SSL afterwards manually in configure.php (2x) because I must have skipped this at the installation as I never worked with it before. I hope I didn't do wrong with this.

4 Mar 2010, 6:46 PM
#9
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Download link in succes page???

You should not have to alter your configure files for the download as far as where the download is stored. However... you can check both your configure files and make sure that the correct path to the files are shown... eg: here is a part of the catalog/includes/configure file.. (this is a server with Cpanel)

//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/YOURaccountnamehere/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

Also check the permissions for the /download folder and make sure it is set to 755

As for the SSL - as long as you have an SSL certificate installed, you just need to change the lines in your configure.php files to true

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

5 Mar 2010, 2:04 PM
#10
goalsurfer avatar

goalsurfer

Banned

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: Download link in succes page???

I checked it out and in public_html/includes/configure.php it is as you say.

What happens is next: When you click the button the original link
'http://www.domain.com//index.php?main_page=download&order=xx&id=xx'
is replaced by
'http://pub/.temp_dir/file _to_download.zip'

This gives a firefox error something like that the server couldn't be found.

When I add my domain manually in my browser so that it becomes
'http://www.domain.com//pub/.temp_dir/file _to_download.zip'
I get my download.

So it is the 'http://www.domain.com//index.php?main_page=download&order=xx&id=xx' url that is wrongly replaced.

6 Mar 2010, 11:22 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Download link in succes page???

Since you're saying the domain name is getting dropped, it looks like you've got bad content in your HTTP_SERVER and/or HTTPS_SERVER settings in your configure.php files.

8 Mar 2010, 9:49 PM
#12
goalsurfer avatar

goalsurfer

Banned

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: Download link in succes page???

It's working at last after I changed (in configure.php in the catalog)

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

into

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

I hope this is OK as it works. Also thanks a lot for your patience.

13 Mar 2010, 11:09 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Download link in succes page???

That suggests that you've got an invalid setting for DIR_WS_CATALOG or maybe you also relocate your /pub/ folder.