Horje
Moving Delivery Date Field in Checkout Page - Wordpress Solution
Hey guys, when Delivery Fee option is selected, I need to change the position of the Delivery Date Field (by WooCommerce Order Delivery plugin) to right below the shipping options selection (woocommerce_review_order_before_payment hook)

Solution - 1

are you using child theme? can you upload zip file of this plugin so I can have a look on code?


Solution - 2

Hello Cedlimed, Could you add this code into functions.php file and it will do the trick!


add_action('wp_footer', 'customFooterCodes');
function customFooterCodes(){
    
    if(! is_checkout()) return;
    ?>
    <script>
    jQuery('#wc-od').insertBefore('.order-total').wrap('<tr></tr>');
    </script>
<?php
}


Solution - 3

This is not an standard place for place it. Using PHP you should use some hooks to create a new place and some JS logic to show it. Using JS you can do it (but this is not so pro) moving from one element of the DOM to another one: https://stackoverflow.com/questions/1279957/how-to-move-an-element-into-another-element


Solution - 4

managed to find the hook in the plugin class-wc-od-checkout.php add_action( 'woocommerce_checkout_before_customer_details', array( $this, 'checkout_content' ), 99 );


Solution - 5

Is it possible for you to share plugin?


Solution - 6

You must use a JS only but if you want a PHP solution, you must edit to the core of plugin files





Wordpress

Related
WP Query pagination outputs, but page links do not change the query. - Wordpress Solution WP Query pagination outputs, but page links do not change the query. - Wordpress Solution
Drop Down Menu Arrow Missing - Wordpress Solution Drop Down Menu Arrow Missing - Wordpress Solution
How to get wordpress multisite working with subdomains in docker-compose.yml - Wordpress Solution How to get wordpress multisite working with subdomains in docker-compose.yml - Wordpress Solution
Update post meta in another post after draft -> publish transition - Wordpress Solution Update post meta in another post after draft -> publish transition - Wordpress Solution
Display custom post group by taxonomy current term and sub-term - Wordpress Solution Display custom post group by taxonomy current term and sub-term - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
36