{"id":334,"date":"2009-07-20T00:44:09","date_gmt":"2009-07-20T00:44:09","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=334"},"modified":"2025-03-29T18:40:51","modified_gmt":"2025-03-29T07:40:51","slug":"wp-shopping-cart-and-wp-super-cache-workaround","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-shopping-cart-and-wp-super-cache-workaround-334","title":{"rendered":"WP Shopping Cart and WP Super Cache Workaround"},"content":{"rendered":"\n<p>If you are using the <a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\"><strong>WP Super Cache<\/strong><\/a> plugin on your WordPress blog together with a WordPress Shopping Cart plugin (example: <a href=\"https:\/\/wordpress.org\/plugins\/wordpress-simple-paypal-shopping-cart\/\" target=\"_blank\" rel=\"noopener\" title=\"\"><strong>Simple WordPress Shopping Cart<\/strong><\/a>) then there is a good chance that you are experiencing some funny behavior with your cart plugin (example: the shopping cart doesn&#8217;t show the products after item addition).<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"the-problem\">The Problem<\/h2>\n\n\n<p>The reason behind it is that the WP Super Cache is a static caching plugin. It generates HTML files that are served directly by Apache without processing PHP scripts. So when a visitor on your blog adds a product to the shopping cart and is wondering why it&#8217;s not being displayed in the basket is probably because he\/she is still loading the static HTML (cached) file of that page.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"the-workaround\">The Workaround<\/h2>\n\n\n<p>Go to your WP Super Cache plugin&#8217;s Advanced Settings menu and check the following option then save it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cache Delivery Method -&gt; Simple<\/li>\n\n\n\n<li>Disable caching for visitors who have a cookie set in their browser<\/li>\n<\/ul>\n\n\n\n<p>The following screenshot shows the settings:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-configuration-for-commerce-screenshot-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"557\" src=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-configuration-for-commerce-screenshot-1.png\" alt=\"\" class=\"wp-image-5386\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-configuration-for-commerce-screenshot-1.png 600w, https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-configuration-for-commerce-screenshot-1-300x279.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"older-version-of-wp-super-cache\">Older Version of WP Super Cache<\/h2>\n\n\n<p>If you&#8217;re using an older version of the WP Super Cache plugin, the following screenshot shows the relevant configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"444\" height=\"525\" src=\"http:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-settings-screenshot.jpg\" alt=\"wp super cache workaround\" class=\"wp-image-2637\" srcset=\"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-settings-screenshot.jpg 444w, https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-content\/uploads\/2009\/07\/wp-super-cache-settings-screenshot-253x300.jpg 253w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Feel free to leave a comment if you are having any issues with this workaround.<\/p>\n\n\n\n<p>Visit the <a href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-simple-paypal-shopping-cart-plugin-768\">WP Shopping Cart<\/a> plugin page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using the WP Super Cache plugin on your WordPress blog together with a WordPress Shopping Cart plugin (example: Simple WordPress Shopping Cart) then there is a good chance that you are experiencing some funny behavior with your cart plugin (example: the shopping cart doesn&#8217;t show the products after item addition). The Problem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[34],"tags":[179,14,32],"class_list":{"0":"post-334","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-additional-guidance","7":"tag-compact-cart","8":"tag-resources","9":"tag-wp-shopping-cart","10":"entry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/334"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}