Results 1 to 10 of 37

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    12
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

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

 

 

Similar Threads

  1. Download links not showing up
    By gabenn2 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Oct 2013, 10:51 PM
  2. Download links not there?
    By jgnaiz in forum General Questions
    Replies: 2
    Last Post: 20 Mar 2011, 07:41 PM
  3. HTMLArea - bug in generated links?
    By Thannaree in forum Bug Reports
    Replies: 2
    Last Post: 15 Feb 2011, 02:46 AM
  4. Download links do not appear
    By Sandy K in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Sep 2010, 07:31 PM
  5. Bottom Footer Links Not Always Showing
    By TheJaspMan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Aug 2010, 01:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg