Product Variation Auto Select when only one 1 and mark the option [closed]
First, you need to ensure that your count($args[‘options’] is actually 1. Check the following example: You can see that when I print_r($args[‘options’]), I got 4 elements, so count($args[‘options’] here is 4. But if you look at the dropdown beneath it, you see that it only has 1 option. Why? Because variations (and their attributes) that … Read more