slupostrupek Posted October 26, 2014 Posted October 26, 2014 (edited) Hello, I've install this addon: http://addons.oscommerce.com/info/2561 And it works, yet in 2.3 osc, there was changes in Boxes, new class for them etc. So whole site is getting cached and i don't know how to make not caching the bm_shopping_cart. In install guide of chemo it's Step 7 makes problem. " STEP 7 - Edit includes/column_right.php (or wherever you have the shopping cart displayed) Find this code: require(DIR_WS_BOXES . 'shopping_cart.php'); And REPLACE it with this code: if (!tep_session_is_registered('customer_id') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache') ) { echo "<%CART_CACHE%>"; } else { require(DIR_WS_BOXES . 'shopping_cart.php'); } " How to solve that class problem. I would want to display here a shopping box, but i don't know how? How can i do this through class $osc_template ? is it possible? (i don't want whole column_right or left but only bm_shopping_cart) Edited October 26, 2014 by slupostrupek Quote
slupostrupek Posted October 26, 2014 Author Posted October 26, 2014 (edited) Shit, sorry i paste wrong code :D I mean point 4: STEP 4 - Edit includes/application_top.php Add this to the bottom of includes/application_top.php just above the "?>" closing tag: ob_start(); require(DIR_WS_BOXES . 'shopping_cart.php'); $cart_cache = ob_get_clean(); # End the output buffer for cart and save as $cart_cache string Here is shopping_cart (now it's got name bm_shopping_cart). And how to get get it in to that $cart_cache Edited October 26, 2014 by slupostrupek Quote
Jack_mcs Posted October 27, 2014 Posted October 27, 2014 @@slupostrupek I suggest you uninstall it since this addon never did work correctly. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
♥GLWalker Posted October 27, 2014 Posted October 27, 2014 @@slupostrupek I concur with Jacks suggestion. The author once told me he should have never released it. Quote Follow the community build: BS3 to osCommerce Responsive from the Get Go! Check out the new construction: Admin Gone to Total BS!
slupostrupek Posted October 27, 2014 Author Posted October 27, 2014 (edited) I have about 0,07 parse time better with this addon, so i don't understand why to not use it? I see only one thing is wrong in this plugin, there is missing cache deleting when there is new product in category and when product was edited, but it is not a big deal i think, it can be added not so hard i suppose. so right now when it is first time visiting page i have about from 0,19 to 0,26 after this plugin it is always below 0,2s to 0,14s Edited October 27, 2014 by slupostrupek Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.