Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5489

Prestashop Combination Activate / Deactivate

$
0
0

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

  • 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.

1

This is how the module will be installed successfully

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

2

Admin can activate/deactivate the status for the existing combinations

3

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

4

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

5Suppose 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


Viewing all articles
Browse latest Browse all 5489

Trending Articles