Free Laravel e-commerce for business: shopping cart, cms content, and more...
Free open source e-commerce for business
composer create-project s-cart/s-cart
Home | Demo | Document | API document | Features in S-Cart | Group FB
S-Cart is the best free e-commerce website project for individuals and businesses, built on top of Laravel Framework and the latest technologies.
Our goal is βEfficient and friendly for everyoneβ:
Power by GP247 system https://github.com/gp247net
Core laravel framework 12.x https://github.com/laravel/laravel
Website-folder/
|
βββ app
β βββ GP247
β βββ Core(+) //Customize controller of Core
β βββ Helpers(+) //Auto load Helpers/*.php
β βββ Plugins(+) //Use `php artisan gp247:make-plugin --name=NameOfPlugin`
β βββ Front(+) //Customize controller of Front
β βββ Shop(+) //Customize controller of Shop
β βββ Templates(+) //Use `php artisan gp247:make-template --name=NameOfTempate`
βββ public
β βββ GP247
β βββ Core(+)
β βββ Plugins(+)
β βββ Templates(+)
βββ resources
β βββ views/vendor
β |ββ gp247-core(+) //Customize view core
β βββ gp247-front(+) //Customize view front
βββ vendor
β βββ gp247/core
β βββ gp247/front
β βββ gp247/shop
βββ...
Support this project π π
Step 1:
Refer to the command:
composer create-project s-cart/s-cart
Step 2: Check the configuration in the .env file
Ensure that the database configuration and APP_KEY information in the .env file are complete.
If the APP_KEY is not set, use the following command to generate it:
php artisan key:generate
Step 3: Initialize S-Cart
Run the command:
php artisan sc:install
Step 4: Install sample data (optional)
If you want to install sample data, run the command:
php artisan sc:sample
Make sure the following directories have write permissions:
app/GP247
public/GP247
public/vendor
resources/views/vendor
storage
vendor
Without proper write permissions, installation and various features will not work correctly.
To view S-Cart version
php artisan sc:info
Update S-Cart
Update the package using the command:
composer update gp247/core
composer update gp247/front
composer update gp247/shop
Then, run the command:
php artisan sc:update
To create a plugin:
php artisan gp247:make-plugin --name=PluginName
To create a zip file plugin
php artisan gp247:make-plugin --name=PluginName --download=1
To create a template:
php artisan gp247:make-template --name=TemplateName
To create a zip file template:
php artisan gp247:make-template --name=TemplateName --download=1
Customize lfm configuration for upload
php artisan vendor:publish --tag=config-lfm
Customize core admin view
php artisan vendor:publish --tag=gp247:view-core
Overwrite gp247_ helper functions*
Step 1: Add the list of functions you want to override to
config/gp247_functions_except.php
Step 2: Create new php files containing the new functions in the
app/GP247/Helpers
directory, for exampleapp/GP247/Helpers/myfunction.php
Overwrite gp247 controller files
Step 1: Copy the controller files you want to override from vendor/gp247/core/src/Core/Controllers -> app/GP247/Core/Controllers
Step 2: Change
namespace GP247\Core\Controllers
tonamespace App\GP247\Core\Controllers
Overwrite gp247 API controller files
Step 1: Copy the controller files you want to override from vendor/gp247/core/src/Api/Controllers -> app/GP247/Core/Api/Controllers
Step 2: Change
namespace GP247\Core\Api\Controllers
tonamespace App\GP247\Core\Api\Controllers
Use prefix and middleware constants GP247_ADMIN_PREFIX
, GP247_ADMIN_MIDDLEWARE
in route declaration.
References: https://github.com/gp247net/core/blob/master/src/routes.php
Disable APIs
GP247_API_MODE=1
// To disable, set value 0
Data table prefixes
GP247_DB_PREFIX=gp247_
//Cannot change after install gp247
Path prefix to admin
GP247_ADMIN_PREFIX=gp247_admin