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 can built this Prestashop Combination Activate/Deactivate module with the help of which admin can change the status of the existing combinations.
Features
- 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.
Installation
Workflow
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
Note
We override some prestashop core files in this module –
Classes – Product.php
Function name – getAttributesGroups()
Admin Controller – AdminProductsController.php
Function name –
– postProcess()
– renderListAttributes()
– ajaxProcessDefaultProductAttribute()
Support
For any kind of technical assistance, just raise a ticket at : http://webkul.uvdesk.com/ and for any doubt contact us at support@webkul.com