asdoria / sylius-quick-shopping-plugin
A Add multiple products to your shopping cart
Installs: 2 513
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 5
Open Issues: 3
Type:sylius-plugin
Requires
- php: ^7.4|^8.0
- 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
This package is auto-updated.
Last update: 2024-10-28 06:47:23 UTC
README
Asdoria Quick Shopping Plugin
Simple QuickShopping management for Sylius Shops. Add multiple products to your cart using a single page!
Features
- Add multiple variants to your shopping cart by name or code
Installation
-
Run
composer require asdoria/sylius-quick-shopping-plugin
-
Add the bundle in
config/bundles.php
.
Asdoria\SyliusQuickShoppingPlugin\AsdoriaSyliusQuickShoppingPlugin::class => ['all' => true],
- Import routes in
config/routes.yaml
asdoria_quick_shopping: resource: "@AsdoriaSyliusQuickShoppingPlugin/config/routing.yaml"
- Import config in
config/packages/_sylius.yaml
imports: - { resource: "@AsdoriaSyliusQuickShoppingPlugin/config/config.yaml"}
- Paste the following content to the
src/Repository/ProductVariantRepository.php
:
<?php declare(strict_types=1); namespace App\Repository; use Asdoria\SyliusQuickShoppingPlugin\Repository\Model\ProductVariantRepositoryAwareInterface; use Asdoria\SyliusQuickShoppingPlugin\Repository\ProductVariantRepositoryTrait; use Sylius\Bundle\CoreBundle\Doctrine\ORM\ProductVariantRepository as BaseProductVariantRepository; final class ProductVariantRepository extends BaseProductVariantRepository implements ProductVariantRepositoryAwareInterface { use ProductVariantRepositoryTrait; }
- Configure repositories in
config/packages/_sylius.yaml
:
sylius_product:
resources:
product_variant:
classes:
model: App\Entity\Product\ProductVariant
+ repository: App\Repository\ProductVariantRepository
Demo
You can try the QuickShopping 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/quick-shopping (asdoria_shop_quick_shopping_index
route).
Contribution
Wish to contribute? Please do! We are always looking for improving this plugin. To do so, feel free to raise PR or issues on this repo.
This plugin is part of Asdoria work on Open Source, feel free to look on our current as well as future work on our website.
Have a nice day :)