Woocommerce add to cart button link is being cached by the browser - wordpress

lightningfastcells.com is using woocommerce plugin. Now when adding a product to cart it works and redirects to (?add-to-cart=457) but when I add the same product by clicking on the add to cart link the page is being cached by the browser thus it doesn't add the product to the cart but when I refresh the page or revisit the link (?add-to-cart=457) it adds the product to cart. Is there a way to disable cache on add to cart links?

If you are using w3total cache then pls check below docs
https://docs.woocommerce.com/document/configuring-caching-plugins/

Related

add to cart button not work properly sometimes! in woocommerce

I have a problem in my woocommerce online shop. I am using Astra theme. The problem is that when I hit the add to cart button in shows that the product is added but when I check the cart, there is nothing in it. Also, for variable products it says that you should select an option and it does not add to cart (I mean after it says successful and when I go into my cart). I am using Ajax add to cart button. and the last point is that it does not happen always. sometimes it works fine and sometimes the problem come. I have checked woocommerce status and also I disabled cache plugin and cache on server, and I see this problem in single product page.
Thank you

add to cart redirects to external url, it does not add to cart

I use woocommerce and elementor, but when i click add to cart button, it redirects to external url. and i dont want that, i want that customers can add products to cart, and when they go to checkout they are redirected.
i found this code, but it didinĀ“t work.
Add to Cart

Stay on shop page when add to cart

I'm using elementor pro, woocommerce, ocean wp theme and the elementor custom skin add-on.
I want to build an ecommerce website without products pages but only a shop page, in order to have all my products on the shop page with add to cart button and a quantity selector.
For that, I used the loop system and it works quite well.
I only have 1 issue : when you add a product to the cart, it automaticaly redirects you to the product page.
I don't want to use the products pages. I would like to disable them.
I want customers to stay on the shop page for further shopping. Only access to cart page or checkout page when they click on the add to cart menu.
If it's possible to do that without coding it's best, otherwise, please tell me how to do if you can :)
thank you!
This issue can be fixed if you click on the tick mark named as " Redirect to the cart page after successful addition". You will find it in Woocommerce > Settings > General.
This will help customers to go to the cart page after they add something to the cart. But I don't know how to redirect customers to the shop page after they add to cart something. I am also asking for that help.
See the screenshot:

Woocommerce mini cart widgets not updating without refreshing browser

I am using Woocommerce cart widget in the header, Add to basket behaviour in Woocoomerce is set to "Enable AJAX add to basket buttons on archives", But product counter is not showing how many products have been added to the cart without refreshing the page.
Can anyone explain what can be the issue?
Thanks in advance.

Woocommerce Add To Cart page

I'm trying to figure out how can I show a suggestion page once a user click on the button 'Add To cart'.
I want to show related products as Amazon does.
I do not know how to register the Event and redirect to a template once clicked the button.
Any idea how can I accomplish this?
You can use the default Cross-sells by WooCommerce. The options would then be shown in the cart page. Clicking on Add to Cart can lead the customer to the cart page after the product has been added. That setting can be found in your general settings of WooCommerce to ensure it does that.

Resources