WPIntell

Source evidence

JavaScript error in Chrome – Cannot read properties of undefined

Variation Swatches for WooCommerce · support · 2026-02-17T16:23:00+00:00

complaintsentiment
highseverity
0.76relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 11 rows with source links

36.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

7 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Mickael Maury resolved
Hello, I am reporting a JavaScript conflict related to Variation Swatches for WooCommerce (v2.2.3) .Environment WordPress: 6.9.1 WooCommerce: 10.5.2 PHP: 8.3 Theme: Salient 17.0.6 Browser affected: Google Chrome (latest version) Not reproducible in: Safari / Firefox Issue Description When the plugin is active, selecting a product variation on variable products triggers the following JavaScript error in Chrome: Uncaught TypeError: Cannot read properties of undefined (reading 'template') at wp-util.js at VariationForm.onFoundVariation (add-to-cart-variation.js) The error occurs during the found_variation event triggered by WooCommerce’s native add-to-cart-variation.js . As a result: The variation price and availability are not properly rendered. WooCommerce fails to recognize the selected variation. Customers see the message: “Please select product options before adding this product to your cart.” The product cannot be added to cart. Important Observation If the plugin is disabled: The error disappears immediately. Variation selection works normally. Add to cart works correctly in all browsers. This strongly indicates a JavaScript conflict introduced by the plugin when handling WooCommerce’s variation-template . It appears that the plugin may be overriding or interfering with WooCommerce’s internal wp.template('variation-template') , which becomes undefined in Chrome and stops script execution.Request Could you please: Confirm compatibility with WooCommerce 10.5.2? Verify handling of the found_variation event? Check if the plugin correctly loads and preserves WooCommerce’s variation-template ? Let me know if you need additional logs or a staging environment for testing. Thank you. Hi, Thanks for reaching out to us. We have tested the 2.2.3 with the latest WooCommerce 10.5.2 . Unfortunately, we were unable to reproduce any issues you reported. You can test a product here- https://oddchildren.s6-tastewp.com/product/hoodie/ You may contact us here- https://getwooplugins.com/tickets/ for a deep inspection. Thank You

Comments

1 shown
fizanzvai 2026-02-18T04:44:00+00:00

Hi, Thanks for reaching out to us. We have tested the 2.2.3 with the latest WooCommerce 10.5.2 . Unfortunately, we were unable to reproduce any issues you reported. You can test a product here- https://oddchildren.s6-tastewp.com/product/hoodie/ You may contact us here- https://getwooplugins.com/tickets/ for a deep inspection. Thank You