Add To Cart Button on Category and Shop page
In last versions of Betheme and Woocomerce i cant add direct add to cart button in shop page and Category.
I want Add To Cart element to be on shop page and Category and Archive Pages...
With this option i will make shopping in my web faster.
Here is the pictures below.
Comments
Hi,
Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.
Thanks
Here is the page where i want to add to cart option with Quantity+ 1 -:
https://preparatko.com/?product_cat=перилни-препарати
Thanks for help i resolve my problem by removing Tamplate for shop and put this in function.php
add_filter('woocommerce_product_add_to_cart_text', 'change_add_to_cart_button_text', 10, 2);
function change_add_to_cart_button_text($text, $product) {
if ($product && $product->is_type('simple') && $product->is_purchasable() && $product->is_in_stock() && !$product->is_sold_individually()) {
$text = 'Add';
}
return $text;
}
This resolve the problem but after add to cart go to main page and do not load AJAX..
Maybe the answer is other...
Finaly resolve the problem with code in function.php
Glad to see you've found the solution. Just make sure you're doing all customizations in child theme as otherwise you will lose them with theme update.