I’m working to output variation data within a table on the product page.
I’m using the below to retrieve the variation data
$available_variations = $product->get_available_variations();
At the moment it’s working nicely except that the variation values output the sanitized version i.e. ‘1.7 in’ outputs as ‘1-7in’
I’m thinking the solution might have something to do with lines 26 – 48 in woocommerce/templates/single-product/add-to-cart/variable.php
Any help would be awesome
Cheers ya all
- The topic ‘Get un-sanitized variation data’ is closed to new replies.