Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download link problem


dxer

Recommended Posts

Posted

I have a problem with download link appearing in user account under product user ordered. Link is displayed but order is not proccesed ! This is when buyer select payment by invoice. Order status is still In processing, but download link is available nevertheless.

 

How to fix this ?

Posted

just to add what I already tried :

 

What I did is applied following to download.php but this didn't helped

 

 // Check that order_id, customer_id and filename match
$downloads_query = tep_db_query("select date_format(o.date_purchased, '%Y-%m-%d') as date_purchased_day, opd.download_maxdays, opd.download_count, opd.download_maxdays, opd.orders_products_filename from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd where o.customers_id = '" . $customer_id . "' and o.orders_id = '" . (int)$HTTP_GET_VARS['order'] . "' and o.order_status = '3' and o.orders_id = op.orders_id and op.orders_products_id = opd.orders_products_id and opd.orders_products_download_id = '" . (int)$HTTP_GET_VARS['id'] . "' and opd.orders_products_filename != ''");

 

and

// Die if not delivered
require (DIR_WS_CLASSES . 'order.php');
$order = new order ($HTTP_GET_VARS['order']);
if($order->info['orders_status_id'] < 2) die;

 

any further ideas ?

Posted
Hi, there's a lot of specific add ons & modules for oscommerce

 

try to use Downloads Controller at:

 

 

 

or even:

 

Thanks but I fixed problem in the meantime.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...