In the tables.php you can use just above the quote:
PHP Code:
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
change it to read:
PHP Code:
// count how many are in categories_id 10 where master_categories_id = 10
$how_many = $_SESSION['cart']->in_cart_check('master_categories_id', 10);
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
and the $how_many will be the count of the product(s) quantity in master_categories_id 10 ...
Bookmarks