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”?
- WooCommerce custom SVG coloring tool [closed]
- Product related to post by title
- WooCommerce product id as permalink
- WordPress/Woocommerce Classes and adding new properties
- currentURL is not defined
- How to send an automatic email to a custom field in Woocommerce order meta 2 weeks after a product is bought
- merge tabs in woocommerce
- How to echo woocomerce attributes values in dropdown box
- Customize categroy catalog page
- How do you programatically add a booking item to the cart?
- Create post when new woocommerce order is created [closed]
- Woocommerce cart table too wide [closed]
- Add new page in WooCommerce My Account page
- How to import products to Woo Commerce given that WP All Import keeps timing out
- Merge “description” and “additional informations” product tab
- Add to cart is not visible in product page
- Clickable product image with hover effect
- I need to refresh the checkout page if someone changes the zip code
- Adding a second button next to the shop button Woocommerc [closed]
- Notice: Trying to get property of non-object in
- Updating WooCommerce product field when product author updates profile field
- French accented text replaced with ? in woocommerce product list
- Trying to figure out why an error is returned when trying to add an item to the basket on this website
- Conditionnaly replace “Read more” text WooCommerce products
- Correct method of reducing the number of images created by WP and Woo together
- WooCommerce/Authorize.net interface problem
- populating extra field with woocommerce categories
- WooCommerce subscriptions give option of manual renewal on checkout [closed]
- Woocommerce Shop Manager Capabilities
- HTTP Error when uploading pictures and problem with the size of images
- add_rewrite_rule() returns 404 page
- How to set subcategory in Woocommerce?
- Woocommerce – How to Show product tags in shop page
- Using category and its sub-categories products attributes as filter in products pages
- Bulk edit orders to ‘wc-processing’ status
- Woocommerce section name? [closed]
- how to change value return by _stock_status
- How to change “add to basket” button text in WooCommerce based on product category?
- The orders in WooCommerce admin are hidden (they have the “hidden” CSS class)
- Select all product woocommerce
- Woocommerce REST API: creating variations
- How to hide / remove duplicated Woocommerce products from Shop page
- WooCommerce one time checkout pop up
- How to add a special Woocommerce “Buy Now” button?
- Disable theme WooCommerce template [closed]
- WordPress user ID prefix
- WP All import sale price 0 [closed]
- How to add product variations for large number of products in WooCommerce?
- WooCommerce database upgrade behaviour
- WooCommerce: how to set stock per attribute on variable product
- How to display products in sidebar in 2 columns?
- Removing Product from Woocommerce checkout page using Ajax
- WordPress post_content gets deleted in cron after wp_update_post
- How can I locate where the actions are defined? [duplicate]
- Shortcodes in billing fields doesn’t work
- add_post_meta on subcription renewal
- How to neutralize a parent theme php template?
- wordpress site auto redirect to another site when I enable woocommerce
- How to customize product at cart page
- Update a user meta key based on WooCommerce product purchase
- WooCommerce Storefront site-header padding
- login or register then access woocommerce website
- Replace “Add to cart” by a link to contact page on specific product
- WooCommerce related products load random posts per page
- Adding price to woocommerce cart item with get_price gets multiplied with 3?
- How to fix spacing in address tab in my account page
- Move woocommerce shop page image to left
- Woocommerce price in meta data
- White screen only on some woocommerce products
- WooCommerce Tax Filter Not Working
- Woocommerce add 15% discount to a product if quantity is greater than or equal to 6
- WooCommerce: How can I add a certain product to the cart and redirect to the cart from a non-shop page?
- WooCommerce: Adding a setup fee to certain products
- How to create woocommerce products list
- Related products based on keywords
- Woocommerce – change image issue
- Make Woocommerce breadcrumbs show up using functions.php file