Woocommerce Add To Cart page - wordpress

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.

Related

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 product is empty

I am developing an eCommerce solution using Gravity Forms and Woocommerce. Now the problem is that on my local host everything is working fine.
As soon as I transfer the website to live server the cart page does not show on product add.
You can recreate the problem by visiting this url cosmosample.com/phoking4/
And click on menu tab.
As you can see the cart page should appear after clicking on add to cart but that does not happen. What could be the possible cause of this kind of behavior.
I would also like to add that add_to_cart is working as when I see the cart directly, it sometimes shows me all the times, I have added the product, so there is some problem with the way the cart is being displayed.

woocommerce menu Cart , how to hide the cart tab when the cart is empty

Please, I need your help.
I installed the plugin:
woo commerce for WordPress.
And the cart icon now on my Menu Bar.
When i clicked on it , i will redirect to the shop page,
I don't want to do that.
I want hide the cart tab icon when the cart is empty : http://grab.by/AykC
If that is impossible, How can i redirect my tab button when it is empty to a custom page ? Thanks
Regards
A.J.
can you check this
Go to WooCommerce-->Settings-->Products.
The Cart settings are near the bottom i think
From your dashboard:
Go to Settings and then Menu Cart Search
On that page there is an option called "Always display cart, even if it's empty"
Untick the checkbox beside that
Save the changes and the cart should only appear when there are items in the cart.

Resources