I managed to create a button on checkout but I would like how to display it when local pickup is displayed, just display none .
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
add_action('woocommerce_review_order_before_payment', 'agregar_boton_y_modal_pickup');
function agregar_boton_y_modal_pickup() {
?>
<div class="boton-pickup-container">
<button id="boton-pickup" class="button">Botón pickup</button>
</div>
<?php
}
}
Thank you in advance