0

In woocommerce, I would like to add a "buy now" button below the "add to cart" button that would redirect to the cart page. The button could look similar to the "add to cart" button. It would be great if this "buy now" button everywhere. I guess this button would require to add the product to the cart before redirecting to the cart page.

closed as off-topic by fuxia Jul 1 '17 at 4:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • add_action( 'woocommerce_after_add_to_cart_button', 'content_after_addtocart_button' ); function content_after_addtocart_button() { echo '<div class="content-section"><br/><input type="button" value="Button"/></div>'; } Copy the code to your functions.php and you will get the result – melvin Jan 19 '18 at 11:52
1

This Woocommerce quick buy plugin does it and will add the button you want. It has shortcodes and other nice features

Not the answer you're looking for? Browse other questions tagged or ask your own question.