to implement the Quantity Price Break I think I'm on the right track and first would be to modify the cart file. So comparing the cart file with the modified cart file for quantity price break I have figured out what some of the functions are but here's one I'm not sure what it does.
function count_contents() { // get total number of items in cart
$total_items = 0;
if (is_array($this->contents)) {
reset($this->contents);
while (list($products_id, ) = each($this->contents)) {
$total_items += $this->get_quantity($products_id);
}
}
return $total_items;
}
Is this function the same as the function add_cart?