This *upgrade* for the basic version of Quantity Price Breaks for SPPC 1.0.2 only has a few changes but might make quite a difference in the number of queries once a customer starts adding products to the cart. You need to have installed the basic version of Quantity Price Breaks for SPPC 1.0.2 first!
Changes:
- added PriceFormatterStore.php as a class/object to store mysql results. For the shopping cart box PriceFormatter is called 5 times per product, each time using 2-3 queries (depending on the customer group). Now only two to three are used for all products in the cart.
- changed PriceFormatter to take advantage of PriceFormatterStore (changes in function loadProduct, commented out functions encode and decode because they are not used anyway, added quotes around the $style in function getPriceString)
- added instructions to change the function tep_get_stock to take advantage of PriceFormatterStore (instead of using 1 query per product in catalog/shopping_cart.php)
More...




LinkBack URL
About LinkBacks









Bookmarks