PrestaShop Cloud-specific development
Last updated
Was this helpful?
Last updated
Was this helpful?
PrestaShop Cloud uses the same core architecture as PrestaShop 1.6, so your modules should work as-is.
For information purposes, here are a few tips and information that you might want to know about...
PrestaShop Cloud-specific development:
As always, make sure your module passes the PrestaShop validator before you submit it to Addons!
You can let your module know if it's running on a PrestaShop Cloud store or a regular store:
To put your store in Dev mode, open the .htaccess
file and put the HTTP_PS_MODE_DEV_
constant to true
. Put it back to false
once in production.
Here are the files and folders that each PrestaShop Cloud store can read:
/backoffice
/classes
/config
/controllers
/css
/docs
error500.html
footer.php
header.php
images.inc.php
/img
index.php
init.php
/js
/tools
/webservice
Here are the files and folders that each PrestaShop Cloud store can read and edit:
/backoffice
/backups
/cache
/config
/download
/export
/import
index.php
init.php
/localization
/log
/mails
/modules
/override
/pdf
/themes
/translations
/upload
Here are the files and folders than you can access and change through an FTP account:
/modules
/override
/themes
.htaccess
PrestaShop's core is shared among all the PrestaShop Cloud stores, is only read-accessible for each store. Therefore, it is impossible to modify it.
Only use overriding code when really necessary.
If you wish to manually add a new class for your script (not a module), you can copy it into the correct folder.
To access the various folders available to core, you have to use the constants listed in /config/defines.inc.php
and /config/defines_uri.inc.php
.
Use the methods that are available to core in order to include the various JS and CSS files that are useful to your module:
Make sure you use the right protocol to build your URL:
Each store has its own /override
folder. Still, you should not use it for override files that come from a module you wish to install.
Just follow the regular way of adding overriding classes: .
When a module update is available, the override files will be updated as well.