Jump to content

Combinations Disabled?


Recommended Posts

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

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

×
×
  • Create New...