This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_after_checkout_billing_form', 'add_box_option_to_checkout' ); | |
function add_box_option_to_checkout( $checkout ) { | |
echo '<div id="message_fields">'; | |
woocommerce_form_field( 'add_gift_box', array( | |
'type' => 'checkbox', | |
'class' => array('add_gift_box form-row-wide'), | |
'label' => __('Ilość pudełek ozdobnych - 25 PLN/szt'), | |
'placeholder' => __(''), | |
), $checkout->get_value( 'add_gift_box' )); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.categories-links a{ | |
pointer-events: none; | |
cursor: default; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function woocommerce_add_update_checkout() { | |
// Only on checkout page | |
if( ! is_checkout() ) return; | |
?> | |
<script type="text/javascript"> | |
(function($){ | |
$('form.checkout').on( 'change', 'input[name^="shipping_method"]', function() { | |
document.getElementById("payment_method_piraeusbank_gateway").checked = true; | |
console.log('update') | |
}); |