Jump to content

Developer Warning: 1.4.9.0 New Defines in config.inc.php


El Patron

Recommended Posts

If you have modules developed for 1.4 that modified configuration settings using the set (core only) by session for the fields below, they will no longer work.

 

We are looking at our modules that use some of these fields to see how we can make our modules 1.4.9.0 compatible. Looks like more overrides but in some instances we may have to drop the feature because the changes will be to significant.

 

Being able to modify these setting in core during run time was for many of I am sure a great way to bring cool new uses for PrestaShop and find the use of defines very constraining. It would be nice to have an explanation as to this new feature (bug with a suit)

 

 

/* The main shop domains and SSL options */
define('_PS_SHOP_DOMAIN_', Configuration::get('PS_SHOP_DOMAIN'));
define('_PS_SHOP_DOMAIN_SSL_', Configuration::get('PS_SHOP_DOMAIN_SSL'));
define('_PS_SSL_ENABLED_', (int)Configuration::get('PS_SSL_ENABLED'));
/* Default currency and default country */
define('_PS_CURRENCY_DEFAULT_', (int)Configuration::get('PS_CURRENCY_DEFAULT'));
define('_PS_COUNTRY_DEFAULT_', (int)Configuration::get('PS_COUNTRY_DEFAULT'));
define('_PS_LANG_DEFAULT_', (int)Configuration::get('PS_LANG_DEFAULT'));
/* Geolocation options */
define('_PS_GEOLOCATION_ENABLED_', (int)Configuration::get('PS_GEOLOCATION_ENABLED'));
/* Tax options */
define('_PS_TAX_', (int)Configuration::get('PS_TAX'));

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