[HACK] Force Select field for product variations

For Articles relating to more than one ISC version
Post Reply
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

[HACK] Force Select field for product variations

Post 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

Find:

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
Post Reply