Forums / Setting Up Categories, Products, Attributes / After Download Purchase, I see Nothing

After Download Purchase, I see Nothing

Views: 1,116

Results 1 to 10 of 10
16 Aug 2012, 8:40 PM
#1
nerdgirlie avatar

nerdgirlie

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

After Download Purchase, I see Nothing

I have set up a product for a PDF download on my Zen Cart. I set it up exactly as suggested by these 2 articles:

How Do I Add Downloads To Products? http://www.zen-cart.com/content.php?113
Download Delivery Methods Explained http://www.zen-cart.com/content.php?264-download-delivery-methods-explained

I have tried setting Redirect to True and to False. I have changed all the file permissions on my directories. Each time I try to purchase this, I get a "Thank you for your order!", and nothing else happens. No link, no redirect, just the thank you page.

Attachment 10987

It seems like I may be missing one simple thing, but can't figure it out. Any help would be GRAND! :)

-Aurora

16 Aug 2012, 8:50 PM
#2
nerdgirlie avatar

nerdgirlie

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: After Download Purchase, I see Nothing

PS - I am testing this in Firefox.

16 Aug 2012, 9:04 PM
#3
nerdgirlie avatar

nerdgirlie

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: After Download Purchase, I see Nothing

My back end hosting is on Linux. Same result in both IE and Firefox.

16 Aug 2012, 9:24 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: After Download Purchase, I see Nothing

The problems you're talking about have nothing to do with a "redirect", because you're not even getting to the point where any redirect would even occur.

Either your custom template has removed all the code that displays the download details on the checkout-success page, or your orders are set to Pending (or some other status that doesn't allow downloads to be authorized).

Or you haven't actually SELECTED the download attribute items before adding the product to your cart.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Aug 2012, 12:16 AM
#5
nerdgirlie avatar

nerdgirlie

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: After Download Purchase, I see Nothing

OK, this makes sense. I have tons of custom junk in here. Does anyone know which files are part of that download module? I still have them all, just renamed. I'll do some hunting myself.

And, I did check the order status - they are NOT pending, so I suspect the code I need is missing from all my hacking around in there.

Thank you!

17 Aug 2012, 12:28 AM
#6
nerdgirlie avatar

nerdgirlie

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: After Download Purchase, I see Nothing

I found a module that modifies the download scripts, and I read their install file. These are the files that are modified there:

admin/attributes_controller.php
admin/downloads_manager.php
admin/includes/dist-configure.php
admin/includes/functions/general.php
includes/dist-configure.php
includes/modules/pages/download/header_php.php
includes/templates/template_default/templates/tpl_modules_downloads.php

The only one I have made changes to is admin/includes/functions/general.php, and I manually added lines to it instead of replacing it. So far, everything else is intact.

Also, I have one radio button for download as a PDF in the product, and it is selected by default. :(

17 Aug 2012, 2:24 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: After Download Purchase, I see Nothing

When you look at that completed order on your admin side, it should show not only the product name, but also the selected attributes on bulleted lines below that product ... specifically the optionName+optionValue that were selected by the customer before adding the item to the cart.

Similarly, the same sort of thing should show in the shopping cart page before checkout and the checkout-confirmation screen before completing final payment.

Does that (attribute information) show? Or does it only show the product name?

If it's only showing the product name, then perhaps you've been making customizations to your tpl_product_info_display.php template file that have broken the way the information for attributes is presented, and thus they're not actually being added to the cart during the shopping phase.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Aug 2012, 6:36 PM
#8
nerdgirlie avatar

nerdgirlie

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: After Download Purchase, I see Nothing

Here is a screen shot of an order behind the scenes:

Attachment 11016

It does NOT show the Option Name and Value, but it does reference a file name. Does that look correct in comparison?

Also, it does say that it is a download on the checkout page, too:

Attachment 11018

I will check out the tpl_product_info_display.php shortly and see if I see any changes in there also. Thanks for the help!

Aurora

23 Aug 2012, 7:50 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: After Download Purchase, I see Nothing

In both screenshots I do see the Option Name ("Download") and Option Value ("PDF File").
So that suggests that the order is indeed storing the selected download as something the customer is entitled to.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Aug 2012, 12:57 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: After Download Purchase, I see Nothing

If you go to phpMyAdmin for your site, do you in the table:
orders_products_download

a reference for the Order's orders_id that you are looking at?

If so, what is in the record for that orders_id ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!