Name input not very “Friendly”
-
Hello,
I wanted to use a “hidden” field in the product page to be able to retrieve the value and modify my final price using “add_action( ‘woocommerce_before_calculate_totals’)….”.
The problem, to access the input I have a name like “<input name=’wccpf_gO6HM9L6H0QW’ ….>
This does not use the name of the field that we put in the settings.
And since we can’t put a “class” on it!….
What would be the best method to access this field in “woocommerce_before_calculate_totals” please?Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Name input not very “Friendly”’ is closed to new replies.