Add to Cart Button on Category Pages

I´m searching for a way to insert the add to cart button on my Category Pages in Woocommerce. I found a tutorial to replace a code in functions.php. But I couldn´t find the following code in my functions.php:

remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );

Is there another way to insert the add to cart button on category pages?

WooCommerce Version 3.5.2
Theme X 6.3.8.

Hi Heinz,

Thanks for reaching out.

May I know which category page you’re currently referring? I checked the product categories and they do have add cart button. I checked them in 4 stacks as well.

Thanks!

Hi @Rad,

thanks for your answer. I mean the category pages:

https://wandamobil.com/produkt-kategorie/bordbatterien-lithium-ionen-akku-agm/
https://wandamobil.com/produkt-kategorie/solarmodul/
https://wandamobil.com/produkt-kategorie/offroad/

There´s a button for “Details” and I want to add a “Add to Card” Button so that the customers put the product direktly in the Cart.

Hi Heinz,

I can see that in your provided URL, but I couldn’t find any setting that would remove the add-cart from category page. All of my installation has add cart button in the category page. Please provide your admin login credentials in a secure note and I’ll compare your setup. Still, the only option that I can see is Enable AJAX add to cart buttons on archives, but it’s not related since it only changes the default action of add cart button.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.