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
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- How to add icon to WooCommerce add to cart button
- WordPress Sending data to Ajax with select option
- dividing sub-categories by parent category – WordPress
- Show prices with tax in Woocommerce Mini Cart [closed]
- WordPress ajax doesn’t display object method on jQuery .change() function
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Woocommerce product variation backorder
- Status 400 for AJAX POST Request with admin-ajax.php
- Problem with custom plugin using AJAX to pull info from php file
- Woocommerce hook run after an Order been created through REST API
- How can I apply_filters from inside a function?
- Get and insert order email address to the PHP template inside HTML text
- How to design a table based on css values set from admin/dashboard
- Modify HTML structure of fields in woocommerce checkout form
- Auto-update products after they were published – Woocommerce
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Reload part of checkout on changed shipping method
- How to get all shipping rates and costs without session in woocommerce?
- Adding Custom Slider
- Display a specific category of products in shop page and disable code for specific actions
- If no products are on sale – hide ID or class
- Woocommerce related product text
- Woocommerce api: create product with images – bad request
- Trying to build simple deposit code that hooks into woocommerce
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- Different Minimum Order Amounts based on Shipping Zone [closed]
- do search in two site and show the result in first site
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Add a product to checkout via form
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Ajax date_query not working past the first iteration
- WordPress default Search function inconsistent in WooCommerce Product Titles
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- Which field should I edit to make the checkbox marked by default?
- Displaying Woocommerce Product Category in WordPress
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- AJAX pagination, update current page
- Limit Widgets to Sidebar ID’s
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- wordpress + woocommerce display product with additional information [closed]
- Save Search System
- how to fix error “called incorrectly, should not be accessed directly”?
- adjust section according to country?
- populate form fields in a loop with ajax
- Function works when I don’t login to WordPress but when I login then it doesn’t work
- dynamic dependent select dropdown
- How to auto fetch customer details in Woocommerce in checkout page
- Displaying custom taxonomy on WooCommerce product page
- Sum the total amount of a specific product purchased per user and display in table
- Ajax request returns ‘Array’. How to output the actual results?
- How can I pass a custom/dynamic product to the Woocommerce cart?
- Ajax load more button for comments wordpress
- Add to cart function not working for first product when cart is empty [closed]
- I want to add custom add to cart link [closed]
- How to make products with no cost in WooCommerce
- Slick + PHP + ACF + JQuery slide reveal not working
- Woocommerce : Can’t get product info in loop
- WooCommerce custom product dimensions
- How to add a do_action on refreshing of WP customizer?
- Trouble checking if custom woocommerce checkout field is empty or not
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Validation algorithm in checkout field
- Gravity form built in Captcha
- Menu jumping when calling it via PHP
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Setting value of session with Ajax not working
- Click a radio button must set textfield value
- WordPress Multiple Navigation bars
- My new button is in the wrong place
- [jQuery]Adding shortcode
- multiple taxonomy select display only one in front end
- Display parent and child taxonomies in separate drop down select fields
- Show success or error messages in Ajax response to WordPress custom registration form
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Add / Update Custom Fields After Select Pictures in Media Window
- Post repeating with infinite scroll
- WordPress Woocommerce – Product Type [closed]
- Plugins not working on AJAX requests
- Fancybox type popup window that’s not an iframe
- How to disable controls in theme customizer?