For my checkout page I would like to have more than 1 “place order” button. Is there a script that generates this button? I haven’t been able to find it so far.
I only found one where you can change the text of the button. But I need one where I can just generate a new one within the checkout page.
2
Answers
Have you tried to use this hook?
for example:
I did not tested it, need to check if it does not produce errors because of multiple buttons on the single product page.
The place order button is located in WooCommerce
checkout/payment.php
template file (line51
):Where
$order_button_text = __("Place order", "woocommerce");
So you can include it in any checkout template or using available hooks like for example:
Code goes in function.php file of your active child theme (or active theme).
The hook that you will use need to be located inside the checkout
<form>
.