Hi,
I have a question how i can reorder two of the fields in my checkout page? Already installed a plugin which helps me te reorder, delete and add new fields in the same group. But I want to reoder fields to other groups (see attached link for page) and I have read that it is possible with a code in your functions.php file (child theme).
What I want?
I want to reorder ‘Verzenden naar een ander adres‘ under ‘Kies hier uw goede doel*‘. And the whole part under ‘Jouw bestelling ‘ including payment method must go to where ‘Verzenden naar een ander adres‘ stands right now (right side from client details).
Any thoughts or help how I can get this done?
Hope to hear from you soon.
With regards,
Patrick
Hey phouthuijzen,
Sorry for the late reply, Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_checkout_page(){
?>
<script>
(function($){
$(document).ready(function(){
$( "#top.woocommerce-checkout .woocommerce-shipping-fields" ).appendTo( ".col-1" );
$( "#top.woocommerce-checkout .woocommerce-additional-fields" ).appendTo( ".col-1" );
$( "#top.woocommerce-checkout #order_review_heading" ).appendTo( ".col-2" );
$( "#top.woocommerce-checkout #order_review" ).appendTo( ".col-2" );
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_checkout_page');
Best regards,
Mike
Hey Mike,
Works like a charm. Thank you very much for the great support
With regards,
Patrick!
Hi Patrick,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria