Live Demo Buy Now

Prestashop Combination Activate / Deactivate

  • Version 1.7.x.x
  • Version 1.6.x.x

Prestashop Combination Activate / Deactivate : Prestashop has given its users a very convenient and handy functionality to add Combinations to its products. In Prestashop, Combinations can be generated in two simple ways : Manual and Automatic. But to add little additional functionality to this we have built this Prestashop Combination Activate/Deactivate module with the help of which admin can change the status of the existing combinations.


  • Admin can activate / deactivate the status of existing product combinations
  • Helps Admin to manage the product combinations in a better and judicious way
  • Buyer can view the only those product combinations whose status is active.


  • Go to back office ->module
  • Upload the module zip file
  • Search “Combination Activate / Deactivate” in module search box then go to module and click on install.

This is how the module will be installed successfully


1. For Module version 4.2.0 compatible with Prestashop version V1.7.3.1 and above

Add a hook

{{ renderhook('displayWkCombinationStatus', { 'id_product_attribute':form.vars.value.id_product_attribute }) }}

after quantity section close ‘{% endif %}’ and before ‘<td class=”attribute-actions”>’
in prestashop core file – form_combination.html.twig

Path – /src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_combination.html.twig

2. For Module version 4.1.1 compatible with Prestashop version V1.7.3.0 and below

(A.) Add hook in return array and after form->createview()

'displayWkCombinationStatus' => \Hook::exec('displayWkCombinationStatus',
        'id_product_attribute' => $combinationId,
        'edit_product_link' => $this->generateUrl('admin_product_form', array('id' => (new \Product((new \Combination($combinationId))->id_product))->id))

in generateCombinationFormAction() of CombinationController.php

Path – /src/PrestaShopBundle/Controller/Admin/CombinationController.php

(B.) Add a hook

{{ displayWkCombinationStatus|raw }} 

after `attribute-quantity` section and before `attribute-actions` class <td class=”attribute-actions”> in form_combination.html.twig file

Path – /src/PrestaShopBundle/Resources/views/Admin/Product/Include/form_combination.html.twig


Once the module is installed, A new column for Status will be added to the Product Combination list. The default status of the existing combinations will be “Active”

Go to Catalog -> Edit Product -> Combinations to view the existing combinations of a particular product

Admin can activate/deactivate the status for the existing combinations

Frontend View (Only active combinations will be displayed on product page)

REMEMBER : It is mandatory for atleast one combination to be active at any particular time. If admin tries to deactivate ALL combinations of the product, an error message will be displayed as shown in the screenshot below

Suppose the default combination is deactivate. And admin tries to deactivate all the other combinations as well. In this case the default combination will become active automatically.

This is how admin will get an additional functionality to activate/deactivate its product combinations


For any kind of technical assistance, just raise a ticket at : and for any doubt contact us at

Current Product Version - 4.1.1

Supported Framework Version - 1.7.x.x

. . .


Add Your Comment

Be the first to comment.