Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Page Cache by Chemo, 2.3 osc (Shopping Cart problem)


Recommended Posts



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 by slupostrupek
Link to comment
Share on other sites

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:


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 by slupostrupek
Link to comment
Share on other sites

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 by slupostrupek
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...