PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Issue when adding one variation in cart

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Dear Pablo,

Adding a variation into the cart links to the cart page and the variation isn't in the cart.
But the cart is filled up after refreshing the page.

When adding a single product, no linking to the cart page which is exactly perfect.
How could I get the same when adding a variation?

NB: We made a change together to replace the link to woot-cart by linking to standard woo-cart.
Not sure this creates the side-effect.

Thank you for your help.

Hello

Can you create  a  video with the issue

and  please  drop me exact link

https://somup.com/c3i1XHu1qO

https://www.pica-pica.casa/boutique_produits_mediterranneens-vente_directe/

Hello

Have you customized the plugin code?

after adding a variable product, there should be no redirect to the cart

Yes ! the general idea was to replace the link to Woot-cart by linking to standard wc-cart-page.

Your instruction was to customize woocommerce-cart.js like this (your instruction)

Now my code is :

var woot_cart;

document.addEventListener('table23-html-drawn', function (e) {
e.detail.otable.table.querySelectorAll("[data-key='add_to_cart']").forEach(function (item) {
if (!item.hasAttribute('data-inited')) {
item.setAttribute('data-inited', 1);
item.addEventListener('click', function (e) {
//e.preventDefault();
e.stopPropagation();
//remplacer le pop up cart par le cart de woocommerce. ICI
//if (e.target === item) {
//
//}

document.location.href="https://www.pica-pica.casa/panier/";

//redirection sur wocart
return false;
}, false);
}
});

return true;
});

Did something go wrong here ? No other customization was done relating to add to cart.

Cheers,

Hello

oK! Return all native code please

and  add  redirection  here - https://share.pluginus.net/image/i20220708075646.png

setTimeout(function() {document.location.href="https://www.pica-pica.casa/panier/";}, 1000);