Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Attributes Ordered


Recommended Posts

So I would like to add a field, products_ordered, to the products_attributes table just like the products table. But I am having a little problem with the checkout_process.php page. I figure I just have to copy and modify line 157

// Update products_ordered (for bestsellers list)
tep_db_query("update " . TABLE_PRODUCTS . " set products_ordered = products_ordered + " . sprintf('%d', $order->products[$i]['qty']) . " where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");


But I am unsure of how to modify it. Anyone have any ideas or know of a contribution that would do this.




Link to comment
Share on other sites


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

  • Create New...