Force variation selection on certain categories?
-
I have a product with a “Size” attribute and 2 variations (small and large). Can I force the selection of a specific Variation under a certain circumstance (like if the product is in a bundle)?
<?php if ('bundle' === $product_type ) { // select the small variation // disable or remove the large variation } ?>
I could select the “small” variation with jquery, but if someone has javascript turned off, it wouldn’t work. Is there a PHP snippet I could use that would achieve something to this effect?
I appreciate any help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Force variation selection on certain categories?’ is closed to new replies.