Setup: composer require webfactorybulgaria/shop
Add this to the config/app.php
TypiCMS\Modules\Shop\Shells\Providers\ModuleProvider::class,
Run php artisan vendor:publish --tag=shopconfig php artisan vendor:publish php artisan migrate
Add this to resources/assets/typicms/app.js:
if (moduleName === 'attribute-groups' && action === 'edit') {
moduleName = 'attributes';
}
add "js-combinatorics": "0.5.2" to package.json Run npm install add 'node_modules/js-combinatorics/combinatorics.js', to js-admin in gulpfile.js Run gulp js-admin
In config/auth.php
- change the user model to TypiCMS\Modules\Shop\Shells\Models\User::class
- you can set skip_activation to true
Create and link a page to the products module Create and link a page to the shop module
Add the following code to your template to include the basket: @section('shop-basket') Basket @show