Jump to content

[SOLVED] Global Configuration UpdateValue on multistores


PhpMadman

Recommended Posts

If no better idea... My idea is to foreach the shop groups and set the configuration for every shop.

I'm hoping that it's possible to set one configuration line in the db

Along the lines KEY, ALL GROUPS, ALL SHOPS instead of

KEY, GROUP, SHOP1

KEY, GROUP, SHOP2

KEY, GROUP, SHOP3

KEY, GROUP, SHOP4

Link to comment
Share on other sites

  • 3 years later...
On 28/8/2014 at 8:14 PM, PhpMadman said:

Solved myself. Shop grup and shop id should be set to 0


Configuration::updateValue('PS_MOD_ROLLIN_PRODUCTS',Tools::getValue('PS_MOD_ROLLIN_PRODUCTS'), null, 0, 0);

Sometimes it's just to easy

 

This is the same than @Eolia answered you here https://www.prestashop.com/forums/topic/353725-solved-global-configuration-updatevalue-on-multistores/?do=findComment&comment=1779270;)

public static function updateGlobalValue($key, $values, $html = false)
{
    return Configuration::updateValue($key, $values, $html, 0, 0);
}

 

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