Special characters break variation selection
BeTheme 29.0.5’s custom variation dropdown can display the wrong global attribute term and disable an in-stock variation.
For example, an attribute contains #10 (slug 10) and 10" (slug 10-2). A product assigned only 10" displays a disabled #10 instead. The native WooCommerce selector correctly contains 10" / 10-2.
The relevant code is in functions/theme-woocommerce.php, within mfn_display_custom_attributes():
- Line 691 retrieves term names.
- Lines 750–751 try a slug lookup before the name lookup in the dropdown branch.
The name 10" sanitises to 10, matching the other term.
You can check this at [Links visible only for registered users]
Product config:
Could you please investigate this behaviour?
Comments
Hey,
Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at [Links visible only for registered users], and we will check what the reason might be.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
Thanks, details sent.