Page 1 of 1

[HACK] Force Select field for product variations

Posted: Sat Jun 20, 2009 4:46 pm
by Martin
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


Code: Select all

 					else if($onlyOneVariation && count($options) > 8) {
 						$useSelect = true;
After, Add:

Code: Select all

					// MOD Force Select
					$useSelect = true;
					// MOD END Force Select