dev-master
9999999-dev https://github.com/TechupBusiness/cscart-composer
The Requires
- cweagans/composer-patches ~1.0
- guzzlehttp/guzzle ~6.0
- cscart/sdk *
- cscart/cscart-ultimate *
- php >=7.0
Wallogit.com
2017 © Pedro Peláez
This repository allows you to install cs-cart with composer (but still not really elegant as cs-cart is not supporting it natively). You can also checkout https://github.com/drahosistvan/cscart-installer, which is another (unofficial) commandline tool., (*1)
web in this projects root (does not exist yet)patches, shared etc. then) - it will be replaced by a symlink latercomposer update and wait until it is finishedcomposer init-fs, now the file-system is prepared (you can check the script init in composer.json section "scripts":)http(s)://YOURHOST/install and follow the wizard orConsole command example to install an add-on which is available already on the server (in folder packages/ost-loyalty):, (*2)
# vendor/bin/cscart-sdk addon:symlink [OPTIONAL: --templates-to-design] [ADDON-NAME] [CURRENT-ADDON-PATH] web vendor/bin/cscart-sdk addon:symlink --templates-to-design ost_loyalty packages/ost-loyalty web
The folder could be any folder, also one in vendor if you can install some extensions via composer.
This command symlinks all folders in the addon-path to its corresponding location within the cs-cart structure.
The command-line tool is officially supported by cs-cart (https://github.com/cscart/sdk)., (*3)
You can also add the command(s) to composer.json and then run them via composer setup-addons, (*4)
"scripts": {
"init-fs": [
"rm -rf web",
"ln -s vendor/cscart/cscart-ultimate web",
"chmod 666 web/config.local.php",
"chmod -R 777 web/design web/images web/var",
"find web/design -type f -print0 | xargs -0 chmod 666",
"find web/images -type f -print0 | xargs -0 chmod 666",
"find web/var -type f -print0 | xargs -0 chmod 666"
],
"setup-addons": [
"vendor/bin/cscart-sdk addon:symlink --templates-to-design ost_loyalty packages/ost-loyalty web"
]
}