The class shoppingCart has an array "contents" in wich all the items of customers cart are stored. Every item has a "products id". The syntax for that is a little bit different than the products_id in TABLE_PRODUCTS since it has a suffix starting with ':' and then a string.
ex.
2:ad97c42aaac06e6a58fc9f87f9c37705
in the function calculate i read
$product_query = "select products_id, products_price, products_tax_class_id, products_weight,
products_priced_by_attribute, product_is_always_free_shipping, products_discount_type, products_discount_type_from,
products_virtual, products_model
from " . TABLE_PRODUCTS . "
where products_id = '" . (int)$products_id . "'";
And (int)$products_id is the weird product id just explained. How can that work?
Bookmarks