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.



