Hi!
Can anyone help me? I was able to show/hide my variants based on this logic
-
Variant contains “VAT Exempt”
-
Customer has tag “seniorpwd”
Basically, the VAT Exempt variant will only be displayed if the customer with tag “seniorpwd” logs in and attempts to purchase. Likewise, the Variant “VAT Exempt” should be hidden if the customer does not have a tag “seniorpwd”. This part works.
However, for some reason, the Add To Cart button is still enabled even if the “VAT Exempt” variant is not shown. It seems that the “Add To Cart” button is enabled based on the variant that contains inventory. Which, in this case is the VAT Exempt variant. Is there a way to control the setting of default variant? I would like the Add To Cart button be enabled/disabled correctly with my conditions above.
I am using Dawn theme. Thank you!
