Add to Cart functionality not working

I had precisely the equivalent concern and it’s a caching concern. If you happen to use a caching program guarantee that cart and checkout are excluded, do not depend on woocommerce to exclude.

If this fails, which it did for me, strive including this code (with out the descriptors):

Disabling Browser Cache in HTML
With this code positioned in-the prime of the top part you possibly can flip off customer facet caching.

<meta http-equiv=”cache-control” content material=”max-age=0″ />
<meta http-equiv=”cache-control” content material=”no-cache” />
<meta http-equiv=”expires” content material=”0″ />
<meta http-equiv=”expires” content material=”Tue, 01 Jan 1980 1:00:00 GMT” />
<meta http-equiv=”pragma” content material=”no-cache” />

Disabling Server Facet Cache in PHP
This little two liner code goes to the uppermost a part of a PHP file.

header(“Cache-Control: no-cache, must-revalidate”); // HTTP/1.1
header(“Expires: Sat, 26 Jul 1997 05:00:00 GMT”); // Date in-the previous

This labored for although maybe it should not of.

edit: the ^&%^%$$ server appears to be having points in the intervening time

it points have been brought on by a caching resolution that my internet hosting supplier makes use of. As soon as the exception guidelines have been added all got nicely 🙂

About umoh

The CEO and founder of Business Ideas Incubation Services.Our services includes: Professional business plan writing for venture capital, market research and analysis, Feasibility studies and startup business consulting.+2348140970926

Leave a Reply

Your email address will not be published.