Can you try this?
(function($) {
"use strict";
$('.select2').select2();
$(document).on('woocommerce_variations_loaded', function(event) {
$(document).find('.select2').select2();
});
})( jQuery );
Not tested. Thanks
Related Posts:
- How to Remove Active css from woocommerce variation?
- Change add to cart text if a product is in cart on WooCommerce
- Set a specific default stock quantity on all WooCommerce new products
- How to implement Handling Fee like the Shipping on Cart and Checkout page on WooCommerce [closed]
- How to update the WooCommerce cart Icon to show new products added with JavaScript
- Update html tag class values based on Woocommerce product attribute dropdown selection [closed]
- WordPress select field – show current value?
- Woocommerce checkout page reload on up dating shipping method
- Woocommerce Moving Review Below add to cart breaks button
- Force uppercase on some WooCommerce checkout fields input
- In WooCommerce product archive, how can you also set the quantity to be added to cart by typing, instead of just by using +/-?
- jquery.validation.js is not working in woocommerce checkout page form
- WooCommerce event works in jQuery but not in JavaScript
- Ajax add to cart not updating Elementor mini cart totals
- Dynamic product total add to cart amount
- How to add php variable inside wc_enqueue_js(‘jQuery’) function?
- Running JavaScript after using WooCommerce Filter Plugin
- Format number to 2 decimal places
- Woocommerce Flexslider touch functionality on desktop not working
- Retrieve Woocommerce Cart Url with javascript/jquery [closed]
- Woocommerce add a text field if specific option is selected
- Removing ‘woocommerce-no-js’ class from body
- How do I fix this “Uncaught ReferenceError: woodmartThemeModule is not defined”?
- Where is the “default attribute” values located in the phpMyAdmin in Woocommerce?
- Which WooCommerce hook do I need to use to place the coupon field after the checkout sidebar
- WooCommerce Cart – Group Products By Category
- WooCommerce – update order item price and recalculate totals
- Categories not shown in admin after adding woocommerce products via wp wc cli
- Enabling autosave when plugin disabled
- WooCommerce email text based on category && shipping zone && payment method [closed]
- woocommerce – get_image_size() deprecated [closed]
- Woocommerce: How to remove page title from storefront theme homepage
- Avada & WooCommerce Customization – Replacing product_title in woo-config.php [closed]
- How to unset fields in woocommerce product quick edit?
- WooCommerce template page for category
- Custom PLU field in woocommerce email
- Woocommerce PHP site that shows table with orders from specific category
- How to get the webshop page in 2:nd language, with Polylang and Hyyan
- Subcategories not working when using shared base with custom taxonomy
- Change how the Subtotal Price in cart being calculated [closed]
- My woocommerce checkout page and woocommerce setting page are not responding [closed]
- Woocommerce Shortcode custom orderby not working
- Change “add to cart” button color based on Woocommerce product category [closed]
- Show only one variaton in catalog on meta key
- Overwrite ‘require’ in child-theme
- Best Practice – Customise a WooCommerce+WordPress Templates
- How can I get all the woocommerce api orders [closed]
- Is it possible to update the total price on the checkout page in woocommerce from a custom field
- Tax are not showing on order while placing order with REST API
- Remove WooCommerce block styles
- WooCommerce adding product to cart programatically [closed]
- password_reset doesnt work
- How can I reference external attachments without breaking core WordPress files?
- Hide prices from certain category in woocommerce
- Check if a WooCommerce Order Item has a specific meta data key
- Simple Product not displaying in frontend
- Broken link additional images after moving server
- WooCommerce Meta
- WooCommerce Product Table Conditional styling
- How to hide “Shipping” label from Woocommerce cart page
- What is the problem with these lines of code?
- How can I make a thumbnail slider
- WooCommerce – 500k Jump in Order Number?
- Adapt shipping surcharge code [closed]
- How to access product’s meta data when deleting a WooCommerce product?
- How to show specific admin menu to specific user role?
- Two e-commerce in two different folders of the same domain
- Random 503 and 504 errors
- Woocommerce pagination problem- page/2 = 404 solution
- Woocommerce , how to set billing_address via JS?
- Using admin email in billing address
- Overriding Plugin function in your child theme
- Files names changed (with strange characters) after being uploaded to cpanel
- How do you reactive related products on WooCommerce when it has been disabled?
- Display product variations in shop page
- How can I locate where the actions are defined? [duplicate]
- Shortcodes in billing fields doesn’t work
- Update a user meta key based on WooCommerce product purchase
- How to fix spacing in address tab in my account page
- show multiple product photos on WooCommerce single page
- How to get _POST variable on WooCommerce product page (form on homepage)
- How do I put woocommerce cart page to my checkout page? [closed]
- Search box missing Woocommerce Product Bundle Extension
- CSS url rules not relative to css path in account endpoint areas. IE. subscriptions
- Woocommerce – display all sold out products
- Woocommerce how to show most selling products by category
- AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
- Hide a shipping method if cart total is higher than an amount
- error 500 in Back Office when using a woocommerce function in functions.php
- Send data to external websites when there is an update or create a post
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- How to update all products with same SKU prefixes when updating stock with CSV?
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]
- Sort by price when price is set in multiple keys
- Add a custom code with custom link after add to cart for every product
- WooCommerce product permalink based on product’s current category
- Disable duplicate WC product category URLs
- how should i get products based on tags in woocommerce
- Add custom text to product category page
- Woocommerce permalink URL change in DB