NOTE: All tests should be done in advanced theme
NOTE: Do not apply patch before Preparation
Preparation
- Add 1-2 products with prices into Products section. Enable them - you should see them on website.
- Open the themes/advanced/in-commerce/checkout/shop_cart.tpl template for editing:
- Locate <inp2:ord_PrintCart ... line
- Add this code after it:
<inp2:m_DefineElement name="test_element"> <inp2:Field name="Name"/> </inp2:m_DefineElement> <inp2:p_PrintList render_as="test_element" per_page="2"/><br/>
- Save changes
- Go to products list page and add some product into shopping cart
- you should get error in debugger:
Exception: Query method is called in class ProductsItem for prefix p in ...\core\kernel\db\dbitem.php on line 1506
Testing
- Apply patch
- Reload shopping cart page - error should be gone