Replies: 4 comments
-
Please provide a link to the website so we can debug the problem! 😊 |
Beta Was this translation helpful? Give feedback.
-
You can see on this page : https://lejardinduperecocq.fr/reserver-un-panier/ |
Beta Was this translation helpful? Give feedback.
-
As I understand, you want to keep offcanvas cart closed if a product is added to the cart, right? There are 3 ways to do this:
Think point 1 and 2 are clear. If you choose way 3, do this: Go to main-theme's folder Register new // Register new ajax-add-to-cart.php in child
function register_ajax_cart() {
require_once('woocommerce/ajax-cart/ajax-add-to-cart.php');
}
add_action('after_setup_theme', 'register_ajax_cart'); Now, new file is used and you can edit it without touching the main-theme. Open child's bootscore/woocommerce/ajax-cart/ajax-add-to-cart.php Lines 160 to 163 in d18b916 Comment or delete snippet and offcanvas cart doesn't open anymore if product has been added to the cart. But you should keep an eye on this file, because there will be changes in future. Does this help? |
Beta Was this translation helpful? Give feedback.
-
Yes! thank you for your help ! |
Beta Was this translation helpful? Give feedback.
-
Hi,
In WooCommerce theme, after click to "add to cart" button, I don't want to open the cart (on the right side).
Can you help me ?
Regards
Damien
Beta Was this translation helpful? Give feedback.
All reactions