Reply To: HOW TO ACTIVATE WOOCOMMERCE ADD TO CART BUTTON AND INCREASE WEBSITE SPEED IN TNM

NapitWPTech Theme Support Forums The NewsMag HOW TO ACTIVATE WOOCOMMERCE ADD TO CART BUTTON AND INCREASE WEBSITE SPEED IN TNM Reply To: HOW TO ACTIVATE WOOCOMMERCE ADD TO CART BUTTON AND INCREASE WEBSITE SPEED IN TNM

#406

Wital
Participant

Thank you for the answers.

My prices are working excellent.

As you may know in order to activate the “ADD TO CART’ button:

1.) Go to ‘functions.php’ and click on it.

2.) Find this piece of code.

* “remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );”

3.) Simply delete ‘remove_action’ and replace it with ‘add_action’ or you can also just replace by copying the whole code given below.

* “add_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );”

In Step #2 the “remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );” is not there. I went thru the whole code and still haven’t found this code string. Where did you put this code in the TNM Template? What #line is it on?