Aardvark1971 Posted August 22, 2014 Share Posted August 22, 2014 So I'm trying to create product combinations - unfortunately I have found out that this feature is disabled on my version of Prestashop 1.6.0.8.Under the Advanced Parameters > Performance > Optional Features section, the option for combinations is not selectable. It is set to "No" right now, but I am unable to switch it to "Yes". It is simply not clickable. All of the other buttons in Performance options work, except the toggle for the combinations button.Is this due to a missing module perhaps? How do I make this work? Link to comment Share on other sites More sharing options...
NemoPS Posted August 22, 2014 Share Posted August 22, 2014 No, I don't think it's due to any module. At this point try with a small trick. Open AdminPerformanceController.php located in controllers/admin Look for array( 'type' => 'switch', 'label' => $this->l('Combinations'), 'name' => 'combination', 'is_bool' => true, 'disabled' => Combination::isCurrentlyUsed(), 'values' => array( array( 'id' => 'combination_1', 'value' => 1, 'label' => $this->l('Yes'), ), array( 'id' => 'combination_0', 'value' => 0, 'label' => $this->l('No') ) ), 'hint' => $this->l('Choose "No" to disable Product Combinations.'), 'desc' => Combination::isCurrentlyUsed() ? $this->l('You cannot set this parameter to No when combinations are already used by some of your products') : null ), And remove 'disabled' => Combination::isCurrentlyUsed(), See if you can enable it. Then take the line back. Link to comment Share on other sites More sharing options...
Aardvark1971 Posted August 22, 2014 Author Share Posted August 22, 2014 That appeared to fix the problem! I was able to toggle the combinations feature in back office to "On" and now my combinations are showing up in front office. Thanks!Just to clarify - should I reinsert that piece of code now that it is working? Link to comment Share on other sites More sharing options...
NemoPS Posted August 23, 2014 Share Posted August 23, 2014 Yeah add it back, better to leave core files untouched Link to comment Share on other sites More sharing options...
Recommended Posts