Page 1 of 59. Showing 587 results (0.022 seconds)
Using the Context Object
Table of contents Using the Context Object What is the Context object? The Context is a technical feature introduced with version 1.5 of PrestaShop. Its two … object, the context looks for an id_lang value in the cookie. If it doesn't find one, it will retrieve the default language id from the database. How to useUsing the Context Object -
Table of contents Using the Context Object What is the Context object? The Context is a technical feature introduced with version 1.5 of PrestaShop. Its two … object, the context looks for an id_lang value in the cookie. If it doesn't find one, it will retrieve the default language id from the database. How to useUsing the Context Object
Table of contents Using the Context Object What is the Context object? The Context is a technical feature introduced with version 1.5 of PrestaShop. Its two … object, the context looks for an id_lang value in the cookie. If it doesn't find one, it will retrieve the default language id from the database. How to useCreating a first module
if needed). PrestaShop uses Object-Oriented programming, and so do its modules. That class must bear the same name as the module and its folder, in CamelCase (see … ()) all make use of a new object, Configuration. This is a PrestaShop-specific object, built to help developers manage their module settings. It storesCreating a first module-
coming changes to all existing stores instead of only the current store. The Context is explained in more details in the "Using the Context Object" chapter … with other classes if needed). PrestaShop uses Object-Oriented programming, and so do its modules. That class must bear the same name as the module and its folderCreating a first module
in the “Using the Context Object” chapter of this Developer Guide. The icon file To put the finishing touch to this basic module, you should add an icon, which … with other classes if needed). PrestaShop uses Object-Oriented programming, and so do its modules. That class must bear the same name as the module and its folderCreating a PrestaShop module
. The Context is another new feature from version 1.5 of PrestaShop. It is explained in more details in the "Using the Context Object" chapter of this Developer … of this is to prevent malicious visitors to load this file directly. The file must also contain the module's main class. PrestaShop uses Object-Oriented programmingSpecifics of multistore module development
, depending on the store context: // If the context is the current group, use the image named 'advertising-g' // If the context is the current store, use the image … database tables There can be several scenarios: The object/entity exists in some stores, but not in all of them: you should use an associative table, and handleSpecifics of multistore module development
for general usage. Your configuration code should only target the current store using the current Context, which every Configuration method does automatically … , use the image named 'advertising-g' // If the context is the current store, use the image named 'advertising-s' if (Shop::getContext() == Shop::CONTEXT_GROUPSpecifics of multistore module development -
Configuration method, they are not recommended for general usage. Your configuration code should only target the current store using the current Context, which every … context: // If the context is the current group, use the image named 'advertising-g' // If the context is the current store, use the image named 'advertising-s