Use value of WooCommerce product attribute
-
Is it possible to get the value of a selected attribute in a dropdown from a WooCommerce product variation, perhaps with JavaScript? Maybe something like this, which didn’t work for me BTW (forgive my JavaScript noobness):
function (){ var value = document.getElementById("pa_length"); var getvalue = value.options[value.selectedIndex].value; return getvalue; }
I would like to use this attribute in CFF to calculate additional options based on that value.
The page I need help with: [log in to see the link]
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Use value of WooCommerce product attribute’ is closed to new replies.