Jump to content

Creating Module That Change Config Of Other Module.


Recommended Posts

Hi,

 

I'm using Prestashop 1.6.3, default theme and default blockcart module.

 

I want to disable Ajax Cart for one of my group of clients.

 

My idea is that I will create module which when it is active it will disable ajax cart in BO settings. Then in BO in editing group section I want to authoirize this module for group which I want to disable ajax cart. Other groups will have this module unauthorized (disabled).

 

I think I should update  configuration variable 'PS_BLOCK_CART_AJAX' in database but where in My module should it be ?

In contruct() or install() function or somewhere else. Which one is triggered when module is disabled or enabled in editing groups section.

 

Thanks for your help.

Edited by surov (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...