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
- Remove Woocommerce product link
- Do I require the use of nonce?
- Display sorting options dropdown when using WooCommerce product category shortcode
- Removing jQuery migrate and working with dependencies
- Problem with WordPress Ajax form
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Check if user is logged in when clicking certain links on certain pages
- Show post in slider
- How do you add customer capability after Woocommerce purchase?
- Change sign up fee in cart for subscription products WooCommerce
- Make the first item as default on Woocommerce product category items list
- Conditional Header in wordpress
- How to select the contents in the text view textrea in wp_editor?
- Proper syntax or method for keeping url in modified isotope / category links
- How to get all shipping rates and costs without session in woocommerce?
- Display a specific category of products in shop page and disable code for specific actions
- Trying to build simple deposit code that hooks into woocommerce
- Ajax date_query not working past the first iteration
- how to fix error “called incorrectly, should not be accessed directly”?
- How to auto fetch customer details in Woocommerce in checkout page
- I want to add custom add to cart link [closed]
- Validation algorithm in checkout field
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Ajax contact form return 0
- AJAX – Returning Two JSON Objects with One PHP Function
- Add Ajax Hooks and Call from Custom Template PHP
- How to remove coupon dropdown feature
- Jquery window.send_to_editor function
- Theme not calling Jquery properly
- Add html link in functions.php files of the theme
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- How to make jquery count down timer function manually editable
- 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]
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- Have Woocommerce show product price if id, when not logged in
- jQuery accordion menu
- Removed jQuery script from header.php , any problems?
- 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?
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- 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
- Outputting post content to jQuery .html() string
- Add a new view on the Woocommerce account page
- Use Search Term in html link and redirect
- 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
- Show the subcategory name based on current product
- getting the values of hidden inputs to use them in a php mysql query
- Hide price excluding tax when price is empty
- Woocommerce variable products are being added to the card on the homepage (ajax)
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- How to detect if a revision was made by woocommerce or wordpress?
- Ajax not updating to database
- 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?
- Setting WooCommerce currency programmatically
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- How to create a container in php then customise it in CSS
- WordPress 6.1.1 UTF8 Slug Limit Increase
- Woocommerce Convert existing order to the cart
- How to add SKU and remove product title from WooCommerce url?
- Product Search in search.php
- using custom pages for myaccount in woocommerce
- How to add query string at the end of sitemap Yoast SEO