[HACK] Force Select field for product variations
Posted: Sat Jun 20, 2009 4:46 pm
This tiny little hack forces the shopping cart to provide any variations as a SELECT field rather than the Input RADIO style that usually happens if you have less than 8 variations.
OPEN includes/display/SideProductAddToCart.php
Find:
After, Add:
OPEN includes/display/SideProductAddToCart.php
Find:
Code: Select all
else if($onlyOneVariation && count($options) > 8) {
$useSelect = true;
}
Code: Select all
// MOD Force Select
$useSelect = true;
// MOD END Force Select