WooCommerce can’t add products to cart

What is the name of the domain?

booksfirst.africa

What is the issue you’re encountering

Click add to cart. When you go to cart, cart is empty

What steps have you taken to resolve the issue?

Tested the same site on server/domain not connected to cloudflare and it works. Tried removing proxy, but does not work.

What are the steps to reproduce the issue?

Just go to website and pick a product (e.g. https://booksfirst.africa/product/12-rules-for-life/) and click Add to cart. Then click view cart.

1 Like

Tried few moments ago, and it does seems to me like it’s the issue at the origin host, as far as without Cloudflare proxy :orange: as the returned IP address isn’t on the Cloudflare’s network, rather on DigitalOcean’s (origin host) and the HTTP header server: nginx.

Also, using Ajax and was x-redirect-by: WordPress to the /cart/ path (302 redirect) via plugin or other configuration.

Might have to double-check your nginx config and handling of those requests for WooCommerce via plugin.

This topic was automatically closed after 15 days. New replies are no longer allowed.