asdoria / sylius-marketing-cart-plugin
Create the page products with muti criteria for you shop
Installs: 665
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 3
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^7.4|^8.0
- asdoria/sylius-facet-filter-plugin: ^0.1
- sylius/sylius: ^1.12
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.99
- phpstan/phpstan-doctrine: 0.12.33
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^4.4 || ^5.2
- symfony/debug-bundle: ^4.4 || ^5.2
- symfony/dotenv: ^4.4 || ^5.2
- symfony/intl: ^4.4 || ^5.2
- symfony/web-profiler-bundle: ^4.4 || ^5.2
- vimeo/psalm: 4.7.1
README
Asdoria Marketing Cart Bundle
Simply create pages with products from several criteria such as similar attributes, taxon into Sylius Shop
Features
- Create pages with products from several criteria such as similar attributes, taxon,
Installation
-
run
composer require asdoria/sylius-marketing-cart-plugin
-
Add the bundle in
config/bundles.php
.
Asdoria\SyliusMarketingCartPlugin\AsdoriaSyliusMarketingCartPlugin::class => ['all' => true],
- Import routes in
config/routes.yaml
asdoria_marketing_cart: resource: "@AsdoriaSyliusMarketingCartPlugin/Resources/config/routing.yaml"
- Import config in
config/packages/_sylius.yaml
imports: - { resource: "@AsdoriaSyliusMarketingCartPlugin/Resources/config/config.yaml"}
- Paste the following content to the
src/Repository/ProductRepository.php
:
<?php declare(strict_types=1); namespace App\Repository; use Asdoria\SyliusMarketingCartPlugin\Repository\Model\Aware\ProductMarketingCartRepositoryAwareInterface; use Asdoria\SyliusMarketingCartPlugin\Repository\Traits\ProductMarketingCartRepositoryTrait; use Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductRepository as BaseProductRepository; final class ProductRepository extends BaseProductRepository implements ProductMarketingCartRepositoryAwareInterface { use ProductMarketingCartRepositoryTrait; }
- Configure repositories in
config/packages/_sylius.yaml
:
sylius_product:
resources:
product:
classes:
model: App\Entity\Product\Product
+ repository: App\Repository\ProductRepository
Demo
You can try the MarketingCart plugin online by following this link: here!.
Note that we have developed several other open source plugins for Sylius, whose demos and documentation are listed on the following page.
Usage
- In the shop office, go to /en_US/marketing-carts route.