Download the PHP package setono/sylius-gift-card-plugin without Composer
On this page you can find all versions of the php package setono/sylius-gift-card-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-gift-card-plugin
More information about setono/sylius-gift-card-plugin
Files in setono/sylius-gift-card-plugin
Package sylius-gift-card-plugin
Short Description Gift card plugin for Sylius
License MIT
Informations about the package sylius-gift-card-plugin
Sylius Gift Card Plugin
Add gift card functionality to your store:
- Buy gift cards
- Use gift cards to purchase products
- See the balance of a gift card by looking up the gift card code
The administrator will have access to a dashboard showing the total outstanding balance of gift cards which can be used for auditing.
Screenshots
▶▶ Skip screenshots and go to installation
Api platform support
Everything related to Gift Card can be done via API. Whether it is admin or shop actions
Installation
Require plugin with composer:
Import configuration:
(Optional) Import fixtures
If you wish to have some gift cards to play with in your application during development.
Import routing:
or if your app doesn't use locales:
Add plugin class to your bundles.php
:
Make sure you add it before SyliusGridBundle
, otherwise you'll get
You have requested a non-existent parameter "setono_sylius_gift_card.model.gift_card.class".
exception.
Copy templates
You will find the templates you need to override in the test application.
Extend entities
Extend Product
Extend Order
Extend OrderItem
Extend OrderItemUnit
Extend OrderRepository
:
Extend CustomerRepository
:
- Add configuration:
Copy Api Resources
Resources declaration that need to be copied are:
- Order.xml
If you already have them overriden, just change the following routes:
Order.xml
Update your database:
Install assets:
Clear cache:
Configuration
Change redirect routes on add/remove gift card to/from order
You can customize where you will be redirected after adding or removing a gift card. To do so, you can simply change the route configuration :
The same applies for the setono_sylius_gift_card_shop_partial_add_gift_card_to_order
route
You can also override or decorate the service setono_sylius_gift_card.resolver.redirect_url
to define a more custom way of redirecting
Usage
In order to find out how to use the GiftCard plugin, please refer to the usage.
Development
Testing
Playing
To run built-in application showing plugin at work, just run:
Contribution
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.
Please, run composer all
to run all checks and tests before making pull request.
All versions of sylius-gift-card-plugin with dependencies
ext-filter Version *
ext-mbstring Version *
api-platform/core Version ^2.6
doctrine/collections Version ^1.8
doctrine/dbal Version ^2.13 || ^3.0
doctrine/orm Version ^2.7
doctrine/persistence Version ^1.3 || ^2.5 || ^3.0
fakerphp/faker Version ^1.21
knplabs/knp-menu Version ^3.3
knplabs/knp-snappy Version ^1.4
knplabs/knp-snappy-bundle Version ^1.9
setono/doctrine-object-manager-trait Version ^1.1
sylius/api-bundle Version ^1.10
sylius/channel Version ^1.0
sylius/channel-bundle Version ^1.0
sylius/core Version ^1.0
sylius/core-bundle Version ^1.0
sylius/currency Version ^1.0
sylius/customer Version ^1.0
sylius/grid-bundle Version ^1.0
sylius/locale Version ^1.0
sylius/locale-bundle Version ^1.0
sylius/mailer-bundle Version ^1.6 || ^2.0
sylius/money-bundle Version ^1.0
sylius/order Version ^1.10
sylius/order-bundle Version ^1.0
sylius/product Version ^1.0
sylius/product-bundle Version ^1.0
sylius/promotion Version ^1.0
sylius/resource-bundle Version ^1.8
sylius/shipping-bundle Version ^1.0
sylius/ui-bundle Version ^1.0
sylius/user Version ^1.0
symfony/config Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/event-dispatcher Version ^5.4 || ^6.4
symfony/form Version ^5.4 || ^6.4
symfony/http-foundation Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4
symfony/messenger Version ^5.4 || ^6.4
symfony/options-resolver Version ^5.4 || ^6.4
symfony/property-access Version ^5.4 || ^6.4
symfony/routing Version ^5.4 || ^6.4
symfony/security-core Version ^5.4 || ^6.4
symfony/serializer Version ^5.4 || ^6.4
symfony/translation-contracts Version ^2.4
symfony/validator Version ^5.4 || ^6.4
twig/twig Version ^2.15 || ^3.5
webimpress/safe-writer Version ^2.2
webmozart/assert Version ^1.11