Simone Pietro Barbone
asked 6 months ago

Hi all,
please I would like some help about these 2 options:
1) how could I show add to cart button instead of “VEDI PRODOTTO” (view product) button?
2) how could I display on the left the units (number with “+” and “-“) to add for each product with add to cart button on the right?
If you know a plugin or some php code working.
Link: https://erboristerialofficinale.it/shop/
Thank you in advance
S

1 Answers
DominicStaff
answered 6 months ago

1/ you can add the following code to the functions.php file. 
// register add to cart action
function wnc_add_cart_button () {
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_add_to_cart’, 10 );
}
add_action( ‘after_setup_theme’, ‘wnc_add_cart_button’ );

2/ You can let me know detail about this question.

Powered by DW Question & Answer Pro