What I had tried

function override_checkout_scripts() {
        wp_deregister_script('wc-checkout');
        $bhtime = filemtime(dirname(__FILE__) . '/woocommerce/js/checkout.js');
        wp_enqueue_script('wc-checkout', get_template_directory_uri() . '/woocommerce/js/checkout.js', array('jquery', 'woocommerce', 'wc-country-select', 'wc-address-i18n'), $bhtime, true);
    }
    add_action('wp_enqueue_scripts', 'override_checkout_scripts');

Question:
I want to load custom checkout js as I have done changes in js file.

I searched tried on Google and tried every single thing but No luck.

Thanks in advance.

Read more here: Load custom checkout.js with timestamp


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: