Change Name and URL of “Add to cart” (Enable WooCommerce AJAX)
-
Hi all! I have seen that there are many questions about changing the “Add to cart” button in WooCommerce and “Enable AJAX add to cart buttons on archives”. My question is aimed at mixing (image attached). How can we preserve the first “Add to cart”, and replace the second one with a “Checkout” + direct URL?
I don’t want the customer to go to the Checkout directly (very good article about that at Jeroen Sormani’s webiste), but I would like to offer them the option to do so after adding the product to the cart (My products can only be purchased individually: it makes no sense to have one more “Add to cart”).
Stack overflow has some tips like “How to change url in “View Cart” button in Woocommerce?“, but it does not include the redirection we want.
I have Code Snippets installed because I know you have to touch php code, but I don’t know how to mix it up to get this.
Thank you very much for your attention.
- The topic ‘Change Name and URL of “Add to cart” (Enable WooCommerce AJAX)’ is closed to new replies.