The Shopping Cart is essential component of the checkout process in any Online Store and In-Commerce is no different. To make Shopping Cart customizable the code exists, that makes product object available during Shopping Cart printing. In case if product object was loaded before Shopping Cart printing is started, then is preserved after Shopping Cart printing was over.
The problem is that if product object never existed prior to Shopping Cart printing, then it is created anyway, which ends up in Fatal Error, when another products (e.g. Recommended Products) are printed on Shopping Cart page.
- affected method: "OrderItemsTagProcessor::PrintList"
- the "$product_id" variable will be "false", when "$product_object" isn't loaded prior to Shopping Cart printing
- after Shopping Cart printing and when "$product_id" is "false" use "removeObject" call to remove product object completely