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

Download links not always generated

Locked

Views: 4,354

Results 21 to 37 of 37
This thread is locked. New replies are disabled.
30 Sep 2010, 8:33 PM
#21
drbyte avatar

drbyte

Sensei

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

Download links not always generated

Zbigi, none of those apply to you.

If there are no download links, then your customer did NOT choose a download choice when they added the product to their 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.

1 Oct 2010, 9:40 AM
#22
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

Yes, he didnt't check the radio button, becouse it is already checked. It is only one option and is checked, therefore nobody check it (I would do the same). Maybe I have to write small notice 'please, check it anyway!' . But anyway I tried to check and it did not work there no download links.

1 Oct 2010, 2:33 PM
#23
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

Click "Reply" below, and answer all the questions listed in "Posting Tips".

.
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.

1 Oct 2010, 2:53 PM
#24
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

ad 1. ZenCart Version: 1.3.9f
ad 2. No upgrade
ad 3. Addons: zencart_v1.3.9b_pl_utf8
ad 4. Customisation: less sideboxes
ad 5. no display errors
ad 6. no problems with server ( Linux 2.6.32.21.core2.40 + PHP 4.4.7-0+tld0 (Zend: 1.3.0)+ MySQL 5.0.91+tld0-log+Apache/2.0.54 (Debian GNU/Linux) PHP/4.4.7-0+tld0 with Suhosin-Patch mod_ssl/2.0.54 )
ad 7.YES. I looked in the FAQ area
ad 8. YES I serched forum and find this thread
ad 9. directly after instalationa
ad 10. It is not my first shop. I have experiences with CubeCart and Oscommerce) It is my first ZenCart shop. I installed version 1.3.7 and it worked well, but i was not sure about the source of the package and I drop it and install this version.

1 Oct 2010, 2:55 PM
#25
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

What's the URL?
And what payment module are you using when you're having this problem?

.
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.

1 Oct 2010, 4:28 PM
#26
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

I use Dotpay(in poland) it is (Allpay in USA) the shop is not public yet but the url is isklepDOTzoopsychologDOTeu.
Dotpay provide all kind of transaction. downloadable product cost 9,9. zł.
When you want try to buy let me know i make the payment in the test modus

1 Oct 2010, 8:50 PM
#27
ajeh avatar

ajeh

Oba-san

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

Re: Download links not always generated

If you complete an order ... do you see the Attribute on the Order Admin?

If so, do you see reference to the Download on the Order in the Admin?

You would see a box with where is lists:
Order Download Status

Do you see any of this?

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!

1 Oct 2010, 10:09 PM
#28
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

No, I don't see any atrtribute in th order admin. In the order list and in the order inside. I see it, when I manually put the order in the table "orders_products_download". No infomation during the order proccesing is written in this table and I thing it is the proble

1 Oct 2010, 10:21 PM
#29
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

Zbigi:

ad 3. Addons: zencart_v1.3.9b_pl_utf8
Where did that come from?

.
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.

2 Oct 2010, 5:55 AM
#30
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

It comes from http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_46&products_id=1641.
Thank You for your fast reaction. I did not expect it. Unfortunately next two weeks I will be absent. I hope, You solve the problem. I am back on 15 October and until then I am sailing. And in my humbly opinion, You give very good support.

2 Oct 2010, 6:03 AM
#31
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

I think the solution (wchich I saw in the 1.3.7) to connect the download permision with order status was very good. It allowed to automate the donwload after payment.

12 Oct 2010, 6:36 PM
#32
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

Hi, I'm back. Unfortunately no solution is found. What to do, to instal repair the download links?

13 Oct 2010, 2:20 PM
#33
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

When i manually put information about the download into table 'orders_products_attributes' it works well.

13 Oct 2010, 4:02 PM
#34
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

That confirms that whatever you've done to customize the operation of your site and/or however you've configured your attributes, it's preventing the order from saving those details properly.

A fresh clean install of Zen Cart files from the link on the home page of https://www.zen-cart.com doesn't exhibit the problems you're describing. So something is broken in your code.

.
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.

14 Oct 2010, 2:22 PM
#35
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

Only customisation that I did, is an instalation of polish language package from your site. Can the generation of the link be influeced by this? In the order.php at line 851 I find:

if ((DOWNLOAD_ENABLED == 'true') && isset($attributes_values->fields['products_attributes_filename']) && zen_not_null($attributes_values->fields['products_attributes_filename']))

Then it depends of three inputs two of them are depends of $attributes_values one of Constant DOWNLOAD_ENABLED

I put the following code before it and get no echo.

echo DOWNLOAD_ENABLED;
echo var_dump($attributes_values->fields['products_attributes_filename']);
echo var_dump(zen_not_null($attributes_values->fields['products_attributes_filename']));

It means that the function create_add_products(...) in not called or the loop inside is not executed. Befor loop
i put the mark and I get now echo, I suppose the function is not colled or the parameters are not corect.

14 Oct 2010, 3:07 PM
#36
zbigi avatar

zbigi

New Zenner

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

Re: Download links not always generated

Only customisation that I did, is an instalation of polish language package from your site. Can the generation of the link be influeced by this? In the order.php at line 851 I find:

if ((DOWNLOAD_ENABLED == 'true') && isset($attributes_values->fields['products_attributes_filename']) && zen_not_null($attributes_values->fields['products_attributes_filename'])) {
$sql_data_array = array('orders_id' => $zf_insert_id,
'orders_products_id' => $order_products_id,
'orders_products_filename' => $attributes_values->fields['products_attributes_filename'],
'download_maxdays' => $attributes_values->fields['products_attributes_maxdays'],
'download_count' => $attributes_values->fields['products_attributes_maxcount'],
'products_prid' => $this->products[$i]['id']
);

        zen_db_perform(TABLE_ORDERS_PRODUCTS_DOWNLOAD, $sql_data_array);

        $this->notify('NOTIFY_ORDER_DURING_CREATE_ADDED_ATTRIBUTE_DOWNLOAD_LINE_ITEM', $sql_data_array);
      }

It is only place that I found, where this information could be inserted into the table
It depends of three inputs, two of them depends of $attributes_values one of constant DOWNLOAD_ENABLED

I put the following code before it and get no echo.

echo DOWNLOAD_ENABLED;
echo var_dump($attributes_values->fields['products_attributes_filename']);
echo var_dump(zen_not_null($attributes_values->fields['products_attributes_filename']));

It means that the function "create_add_products(...)" in not called at all or the loop inside is not executed. Befor loop
I put the mark and I get no echo. Then I put echo mark on the beginnig of the function, I get no echo. Then I put small syntax error and I get
blanc page. Class is in use then.

I suppose the function is not called or the parameters are not corect.

When and from which place should the function be called.

14 Oct 2010, 5:00 PM
#37
drbyte avatar

drbyte

Sensei

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

Re: Download links not always generated

A quick search of the code for "create_add_products" shows that it's called from the checkout-process module. Maybe you've customized that module in some way that's breaking things?
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

.
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.