Seems like you have misplaced the card jquery library. You can include the js using wp_enqueue_script in WordPress.
wp_enqueue_script( 'jquery-card-script', get_stylesheet_directory_uri() . '/js/card.js', array( 'jquery' ), '1.0.0', true );
Use the above code in your child theme functions.php and
call your card from your main js file.
new Card({
form: document.querySelector('form'),
container: '.card-wrapper'
});
Related Posts:
- How to correctly add Javascript in functions.php
- Remove commas from WooCommerce checkout addresses fields
- combine Code 1 with Code 2
- WooCommerce – Reset quantity input field when variation changes
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Change “add to cart” button color based on Woocommerce product category [closed]
- How can I get the values of my WordPress $wpdb query in Jquery?
- Execute PHP code only with specific user role
- WooCommerce Query Product Titles
- Display custom field value in woocommerce variable product via jQurey
- Customize the “Available for back order” text for specific variation
- Woocommerce – if selected attribute term equals
- AJAX to add to cart multiple products woocommerce
- How to echo a PHP code into WooCommerce variation product?
- jQuery doesn’t work in my php snippet
- Add specific phrase after every product title including the discounted price? [closed]
- Replace the image of a product with its video in the shop page
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- How do I add a php statement to a jQuery string
- Looking for a better way to handle an ajax script that pulls in post data on click
- Woocommerce: How to override core functions in functions.php?
- Can’t use get_results() in ajax query
- Get WooCommerce shipping methods programmatically
- Add attribute / custom attribute to product in woocommerce
- Access/update database with jQuery
- Passing jQuery value using Ajax to a page template
- ajax_object is not defined when ajax calls the function
- Why is this Ajax not working?
- Ajax return code 400
- Help with some php math in WordPress
- Adding nofollow to a PHP generated Nav
- Show prices with tax in Woocommerce Mini Cart [closed]
- WordPress ajax doesn’t display object method on jQuery .change() function
- Problem with custom plugin using AJAX to pull info from php file
- Reload part of checkout on changed shipping method
- Woocommerce related product text
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Function works when I don’t login to WordPress but when I login then it doesn’t work
- How to make products with no cost in WooCommerce
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- AJAX – Returning Two JSON Objects with One PHP Function
- Add Ajax Hooks and Call from Custom Template PHP
- WordPress Ajax Always returning 0
- How to remove coupon dropdown feature
- Jquery window.send_to_editor function
- Theme not calling Jquery properly
- How to add drag and drop functionalities to a div inside option panel
- Add html link in functions.php files of the theme
- How to make jquery count down timer function manually editable
- Seo Friendly Filter URLs
- how can i add class or span tag at sprintf?
- My jQuery Ajax form submit is still refreshing page?
- Display attribute on shop page after the title
- WooCommerce – Moving Product Price to the Left of Add to Cart Button [closed]
- Have Woocommerce show product price if id, when not logged in
- jQuery accordion menu
- Covert WordPress Blogname into JQuery
- Custom reduce stock code affecting date_modified – How to bypass?
- Hot to check if new posts have been published since page load and notify online users?
- how can i include post meta in search result
- jquery & ajax getting data from php in wordpress . admin-ajax.php returns 400
- How to add a shortcode which runs a .php file for the current post
- Variant Item SKU as Product Code
- Replace jQuery with PHP or CSS for Customized WordPress wp_nav_menu
- Run a sql (update) after 12 hours after the user login. Woocommerce users
- How can I change the background color of divs dynamically (depending on an order-status in woocommerce)?
- Outputting post content to jQuery .html() string
- Add a new view on the Woocommerce account page
- How to get content on a blank basket/cart page in a custom theme with woocommerce
- WooCommerce REST API AJAX Auth – 401 response
- Looping through and combining calls to Woocommerce REST API
- Implement jQuery Smart wizard
- How to import woocommerce custom fields data into another site?
- split 1 cart item into instock and back ordered
- WordPress Slick Slider + Magnific Popup
- Show the subcategory name based on current product
- Adding a widget under an ‘Add to Cart’ button through a PHP snippet
- getting the values of hidden inputs to use them in a php mysql query
- Woocommerce Related Product by 2 taxonomy
- Creating Log-In Page for backend server
- Woocommerce variable products are being added to the card on the homepage (ajax)
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- How to detect if a revision was made by woocommerce or wordpress?
- How do I prevent a folder from reappearing in my home directory?
- Ajax Load more CPT via shortcode
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- Combining fancybox with multiple thumbnail plugin
- Highlight posts currently being edited on multiple editor site?
- How to add custom checkout field in user details mail template
- Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()
- Display Sale Price Before Regular Price (WooCommerce)
- Adding Custom JQuery Menu Fresh Slide Out
- Setting WooCommerce currency programmatically
- Remove Woocommerce product from cart with ajax/fetch
- Why does WordPress not send the user the email to add a password?
- WooCommerce Modal Fly cart on add to cart – With AJAX
- Hide ‘Downloadable’ and ‘Virtual’ checkbox options from Woocommerce Variations?
- get_post_meta returns on side but it doesn’t return on bottom of admin page