Please copy the woo-commerce checkout.js and paste in your theme folder and add following code in your function.php
and after then you can change the checkout.js from your them.
function so_27023433_disable_checkout_script(){
wp_dequeue_script( 'wc-checkout' );
wp_enqueue_script('checkout', get_template_directory_uri() . '/js/checkout.js', array(), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'so_27023433_disable_checkout_script' );
Related Posts:
- Should I use .done() and .fail() for new jQuery AJAX code instead of success and error
- Pass request headers in a jQuery AJAX GET call
- jQuery set checkbox checked
- JavaScript runtime error: ‘$’ is undefined
- jQuery if checkbox is checked
- Jquery .on(‘scroll’) not firing the event while scrolling
- How to get client’s IP address using JavaScript?
- Calling a user defined function in jQuery
- Simple throttle in JavaScript
- Form Submit jQuery does not work
- jQuery multiple events to trigger the same function
- How do I remove a box-shadow effect from an element when another element is hovered?
- Display Media Uploader in Own Plugin on WordPress 3.5
- How to add a ” waiting” icon for an ajax in WP frontend?
- Make jQuery library load before plugin files
- What is the simplest ajax upload plugin or script to be used with wordpress?
- Add tinymce buttons to caption textarea in media uploader
- RequireJS in custom theme. Working Example
- How to handle multiple instance of “send_to_editor” js function
- inject js after redirect
- Stylizing external SVG files with jQuery and CSS
- wp_enqueuescript won’t load in footer even with true value set?
- jQuery Ajax() doesn’t work when the page is accessed as a WordPress template page
- WordPress REST endpoint not able to reach with jQuery
- modifying a template and adding jQuery to it
- Is placing stuff in page text edit window bad form?
- Add colorpicker to featured image
- Googles jQuery: Are There Avantages to Using It?
- wp_verify_nonce not working
- Passing JSON-encoded HTML from WordPress to JavaScript
- Tags in WordPress 3.2
- php ajax problem – weird 301 responses!
- Create URL with parameter for JQuery toggle status
- Stop theme’s jQuery function from running
- Load created php file data via ajax
- WordPress Ajax problem with undefined url
- Use Media Uploader on Multiple Images on same page
- Add a class to posts in increments of 2
- Move jQuery to the bottom of the page whilst keeping the WordPress jQuery
- Displaying div from custom-post-type in Fancy Box
- NextGen plugin check failing, why?
- How can I fire a jQuery event once getBlocks() actually returns the post’s blocks instead of null?
- Return an array from get_terms and store as JavaScript array for search autocomplete
- On screen music/audio player that grabs track URL [closed]
- Using WP_Query to grab custom meta values, foreach to json object
- Do we have to santise html passing into Javascript ? How?
- WP UI style within shortcode – Any Suggestions?
- Firebug says jQuery is loaded but $() and jQuery() are not defined
- Why load JS through the CMS framework? [duplicate]
- delete post meta by AJAX
- Prevent other versions of jquery from loading on static front page
- How to add custon UI jquery & Fancybox script to WP
- Adding URL of PDF from Thickbox in a Meta Box
- how to json_encode(); the Loop content so that the encoded array is [“0”:content, “1”:content]
- Jquery not loaded by default in wordpress 5.6
- problem with jquery 3.5.1 in footer
- How to keep HTML form field that is conditional hidden with javasript hidden after page reload?
- Accessing javascript in multiple files [closed]
- Issues loading Jquery on WordPress website
- Script not loading when depending on jQuery
- masonry only works if jquery is called twice
- How to call custom jQuery plugins into the customizer controls
- Redirect wp_dropdown_pages() to an AJax request?
- Change zurb foundation top bar style on.scroll in wordpress theme using jquery and css
- how to use wp_editor() here am getting empty result
- jQuery is not defined, working on local server but not online
- WP_ENQUEUE not working with Foundation 5
- Parse wordpress blog data using json api and ajax
- problems with jquery external rss feed integration
- AJAX calendar navigation returns -1
- A carousel slideshow plugin in JavaScript
- Axis guidelines over an image
- How to setup multi-page using jquery?
- $ not defined using jQuery in WordPress
- Get with jQuery the value of an ACF field
- error: n.imagesLoaded is not a function
- WordPress forbidden 403 on delete in production vs local environment
- jquery Autocomplete
- Get ajaxForm response value
- Update a parent theme JQuery property in the child theme
- jQuery search function not running in WordPress but running locally (fiddle)
- Refresh widget admin page resetting jQuery hidden class
- Autocomplete for titles via ajax – rework of past post away from like_escape()
- Is it necessary to use a WordPress nonce when allowing users to download public data?
- How to update scrollbar when using Jetpack’s Inifnite Scroller?
- Jquery is not working in wordpress php file
- wp_signon not working fine and 302 moved temporarily?
- jQuery form plugin, submit in the wordpress way
- How jQuery Works in WordPress [duplicate]
- Getting “ReferenceError: jQuery is not defined” – don’t know why!
- Can’t get jQuery to enqueue into post edit script
- CF7 Add a read only attribute to an input field
- Contact Form 7 checkbox to add a new class to a div [closed]
- Infinite Scroll applied to ajax loaded content
- using jquery autocomplete in wordpress plugin
- Make this jQuery toggle snippet target each list item individually [closed]
- How to Javascript/jQuery
- Fire an event after Featured Image selection
- Elementor form – checkboxes validation
- How to add input file plain text and submit to publish?