Hello everyone :), as marinow1991, I am trying to hide some fields in the checkout process, depending on the delivery method chosen.
This code works for me, but the value of the element (shipping_method_pickup), is not constant, apparently it can be presented in instances. Example:
1- $ shipping_method_pickup = ’local_pickup ′; or
2- $ shipping_method_pickup = ’local_pickup:1 ′; or
3- $ shipping_method_pickup = ’local_pickup:2 ′; or
4- $ shipping_method_pickup = ’local_pickup:x ′; and so on,
Where x is the instance number. So this script doesn’t work for all cases, only for the one we assigned when defining it. You know how I could modify it to work for this general rule, or the values ??that start with $ shipping_method_pickup = ’local_pickup ***’?
My page is https://paisesmarket.com/inicio, in case you want to see it.
I appreciate your help!! Thanks!