Zen Cart Logo
Forums / Managing Customers and Orders / Download links not always generated

Download links not always generated

Locked

Views: 4,354

Results 1 to 20 of 37
This thread is locked. New replies are disabled.
10 Jul 2010, 2:28 AM
#1
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Download links not always generated

I'm having an issue where the download links are not always being generated for downloadable products. I haven't been able to isolate what is different between them being generated and them not. All orders paid via paypal. I was using version 1.3.8a and this started happening so I upgraded to 1.3.9d but it's still happening.

I was going to add the download manually to the database per this suggestion: http://www.zen-cart.com/forum/showthread.php?t=158225 but that doesn't fix the problem - just gets the download to the customer. Also I didn't do it because the way I was understanding the instructions, orders_products_id should be the actual product id number of the product and when I look at the other entries in that table - even though they are all entries for downloading the same file - they all have different orders_product_id numbers. It's like they are increasing on each order just like the orders_id.

Thanks for any assistance you can give.

10 Jul 2010, 5:04 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Download links not always generated

What happens if you look in the Catalog ... Download Manager ... do all Downloads have a green dot next to them?

Check that when in the Catalog ... Attributes Controller ... that you also see the download on the attribute with a green dot ...

Next, check that when you go to the Product in the Shop that you see the download selected, example if you have radio buttons on the downloads and there is a choice to be made ...

Next, check that when an order is made you see in the orders_products table the orders_id and products_id ...

and that in the orders_products_download table you see under the orders_id the orders_products_id as well as the orders_products_filename ...

10 Jul 2010, 1:03 PM
#3
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Re: Download links not always generated

Everything checked out until the last sentence. The last two orders did not show up there. It seems to be intermittent. Orders 47-59 were all for the same downloadable product. Here are the ones that showed up in the orders_products_download table: 47, 49, 51, 53, 54, 56, 57

10 Jul 2010, 1:18 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Download links not always generated

Do you have an URL to your site and the products_id for the ones that were in the last order that did not have the download in them correctly?

What version of Zen Cart are you using?

On the last orders_id that did not process correctlyL
what products_id are in the orders_products table for this order?

what products_id are in the orders_products_attributes table for this order?

what products_id are in the orders_products_download for this order?

Are you able to reproduce this problem yourself?

10 Jul 2010, 1:31 PM
#5
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Re: Download links not always generated

Ajeh:

Do you have an URL to your site and the products_id for the ones that were in the last order that did not have the download in them correctly?
http://www.cardscraps.com/shop/index.php?main_page=product_info&cPath=12&products_id=23

What version of Zen Cart are you using? 1.3.9d

On the last orders_id that did not process correctlyL
what products_id are in the orders_products table for this order? 23

what products_id are in the orders_products_attributes table for this order? there isn't one for this order.

what products_id are in the orders_products_download for this order? there isn't one for this order

Are you able to reproduce this problem yourself? no..so far, it works for me every time.

10 Jul 2010, 2:07 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Download links not always generated

I cannot reproduce it on a clean Zen Cart v1.3.9d nor on your site ...

I would do a check with something like Beyond Compare from scootersoftware.com and make sure that all of the files are up to date ...

28 Sep 2010, 12:56 PM
#7
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

I have the same issue, did you ever figure out what was wrong? Thanks in advance. Mike

28 Sep 2010, 2:23 PM
#8
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Re: Download links not always generated

wk4hm:

I have the same issue, did you ever figure out what was wrong? Thanks in advance. Mike
No, unfortunately I haven't. Every time I get an order, I have to manually check and make sure their download links were generated.

28 Sep 2010, 4:10 PM
#9
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

how do you get them the download if they don't get it, is there a way in the admin to add the download to an order?

28 Sep 2010, 4:15 PM
#10
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Re: Download links not always generated

wk4hm:

how do you get them the download if they don't get it, is there a way in the admin to add the download to an order?

Not that I know of - you can do it by editing the database which I did a few times. For the most part though, I just send them the download via email. Keep in mind though that I don't sell very many downloads and if I did, this wouldn't be an option. I just wasn't able to figure it out, so I gave up.

If you are able to figure it out, please post the solution here so that I (and others who have this problem) can fix our carts too.

28 Sep 2010, 4:24 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

NOTE: If the customer doesn't ACTUALLY CLICK ON THE DOWNLOAD OPTION to select it, then it WILL NOT get added to their cart, and as such will NOT generate a download link.

28 Sep 2010, 4:35 PM
#12
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

I will definitely post the solution if I come across one, its just so random that its hard to figure out. Thanks for your time.

28 Sep 2010, 4:37 PM
#13
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

I will definitely, thanks for your time

28 Sep 2010, 4:40 PM
#14
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

the selections are radio buttons and are hidden so all they are doing is adding to cart, I looked in the source and they are all marked selected. The weird thing is most get the links just a few don't.

28 Sep 2010, 5:16 PM
#15
femsawyer avatar

femsawyer

New Zenner

Join Date:
Aug 2004
Posts:
33
Plugin Contributions:
0

Re: Download links not always generated

DrByte:

NOTE: If the customer doesn't ACTUALLY CLICK ON THE DOWNLOAD OPTION to select it, then it WILL NOT get added to their cart, and as such will NOT generate a download link.

It's already selected on my downloadable products - there's not another option for them to choose so the radio button is already highlighted and you can't turn it off. Is this what you're referring to or am I missing it somewhere else?

28 Sep 2010, 6:22 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

If it's the only choice, and is set to be auto-selected as default, then it will be added to their cart when they add the product to the cart, and will therefore be included as part of the order, and will generate a download link properly upon order completion.

If yours is not doing that, then perhaps you have an addon that's conflicting with the normal order completion process somewhere?

http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

29 Sep 2010, 12:42 PM
#17
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

thanks for your time, I guess I'm going to have to see if a mod is causing the issues, I did download COWOA, I disabled it though, maybe that's the cause. Thanks again Mike

29 Sep 2010, 2:20 PM
#18
wk4hm avatar

wk4hm

New Zenner

Join Date:
Jan 2007
Posts:
24
Plugin Contributions:
0

Re: Download links not always generated

Ok I do believe I've found the culprit and fixed it. I've made a rookie mistake and commented something out when I didn't fully understand it. Any way in the shopping cart if i added 2 products and then changed it to one and clicked update then proceeded it wouldn't attach the downloads so I looked in the tpl_shoppingcart_default.php file and saw that in my design I didn't want the attributes listed next to the title in the cart so I commented the following code out:

<?php
  echo $product['attributeHiddenField'];
  if (isset($product['attributes']) && is_array($product['attributes'])) {
  echo '<span class="cartAttribsList">';
  echo '';
    reset($product['attributes']);
    foreach ($product['attributes'] as $option => $value) {
?>

- <?php echo nl2br($value['products_options_values_name']); ?>

<?php
    }
  echo '';
  echo '</span>';
  }
?>

which if you look in that code it has a reset attributes function which wasn't firing when I clicked update so no downloads then. I've tested it and it works now, hope that helps someone. Thanks for all the help. Mike

30 Sep 2010, 7:06 PM
#19
zbigi avatar

zbigi

New Zenner

Join Date:
Sep 2010
Posts:
12
Plugin Contributions:
0

Re: Download links not always generated

Hi, I tried comment it in the 'tpl_shoppingcart_default.php' file and it doesn't work. Still download is not avaiable. And the table 'orders_products_download' is still empty. I clicked also the download option.

30 Sep 2010, 7:17 PM
#20
zbigi avatar

zbigi

New Zenner

Join Date:
Sep 2010
Posts:
12
Plugin Contributions:
0

Re: Download links not always generated

I read in another post

BUGSFORUM-1256 - fix broken download problems from v1.3.9a and v1.3.9b

BUGSFORUM-1257 - fix download errors from v1.3.9a and v1.3.9b

well, now is no broken links, there no links at all.

I have installed v1.3.9f