PHP code example of gp247 / s-cart
1. Go to this page and download the library: Download gp247/s-cart library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gp247 / s-cart example snippets bash
php artisan gp247:install
php artisan gp247:shop-sample # optional, sample data
bash
php artisan gp247:info
bash
php artisan gp247:update
bash
php artisan gp247:update --overwrite-lang
bash
php artisan vendor:publish --tag=gp247:core-public --force # -> public/GP247 (admin build: CSS/JS, ...)
php artisan vendor:publish --tag=gp247:front-public --force # -> public/GP247/Templates/GP247Front (storefront CSS/JS)
php artisan vendor:publish --tag=gp247:front-view --force # -> app/GP247/Templates/GP247Front (default template views)
bash
php artisan gp247:update --publish=core-public # safe: refresh admin CSS/JS
php artisan gp247:update --publish=core-public,front-view # also overwrite storefront templates (DESTRUCTIVE)
bash
php artisan gp247:make-plugin --name=PluginName
bash
php artisan gp247:make-plugin --name=PluginName --download=1
bash
php artisan gp247:make-template --name=TemplateName
bash
php artisan gp247:make-template --name=TemplateName --download=1
bash
php artisan vendor:publish --tag=config-lfm
bash
php artisan vendor:publish --tag=gp247:core-view # -> views/vendor/gp247-admin
php artisan vendor:publish --tag=gp247:front-admin # -> views/vendor/gp247-front-admin
php artisan vendor:publish --tag=gp247:shop-view-admin # -> views/vendor/gp247-shop-admin
bash
php artisan vendor:publish --tag=gp247:front-view # -> app/GP247/Templates/GP247Front
php artisan vendor:publish --tag=gp247:front-public # -> public/GP247/Templates/GP247Front
php artisan vendor:publish --tag=gp247:shop-view-front # -> app/GP247/Templates/GP247Front