Set value for attribute dropdowns
-
Hi everyone! First time coming to the forum! I’m not a pro.
I’m trying to make a shopping site with WooCommerce. I have added an attribute with values. I used it the product page as a dropdown. The values(data-attribute value) of dropdown options set to text values which I have assigned earlier. Can I add numeric values? Below is what I’m trying to achieve.
Attribute: Package
I dropdown, I want options as
<option value=”3″>Pack of 3</option>
<option value=”5″>Pack of 5</option>
What I have by default is
<option value=”pack-of-3″>Pack of 3</option>
<option value=”pack-of-5″>Pack of 5</option>Thanks in advance for any light on this sub
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.