Change dropdown (select) value slug to name of attribute variations Woocommerce
-
In Woocommerce I created a variable product with different attributes and variations. Woocommerce generates the following code in a dropdown on the front:
<select id="pa_breedte" class="" name="attribute_pa_breedte" data-attribute_name="attribute_pa_breedte" data-show_option_none="yes"> <option value="">Een optie kiezen</option> <option value="205-cm" class="attached enabled">205 cm</option> <option value="290-cm" class="attached enabled">290 cm</option> <option value="375-cm" class="attached enabled">375 cm</option> </select>
The value of the options is the slug of the specific attribute (for example the value of the option 205 cm is 205-cm) Instead I want the value to be the name of the attribute (so I want the value of 205 cm to be the same as the name 205 cm).
I searched the whole woocommerce plugins codes, but can’t find the specific code where I can change the Slug in to the Name.
Can somebody help?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Change dropdown (select) value slug to name of attribute variations Woocommerce’ is closed to new replies.