“Add to cart” different versions
-
I need some help creating add to cart buttons on our store page. Currently we are using this code to have the add to cart buttons on the main products page.
add_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 20 );
But the add to cart buttons have two different outcomes for the end user. Which i think might be confusing for the user. If it’s a simple product when clicked, the item gets added to the cart for checkout. If it’s a variation product then the user gets taken to the Product page to select the variation. My question is, is there a way to change the text for the variation products “Add to cart” buttons to something like “Select Option” and keep the simple products as “Add to cart”?
The page I need help with: [log in to see the link]
- The topic ‘“Add to cart” different versions’ is closed to new replies.