Download the PHP package brille24/sylius-special-price-plugin without Composer
On this page you can find all versions of the php package brille24/sylius-special-price-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brille24/sylius-special-price-plugin
More information about brille24/sylius-special-price-plugin
Files in brille24/sylius-special-price-plugin
Package sylius-special-price-plugin
Short Description Provides time based special pricing for Sylius.
License MIT
Informations about the package sylius-special-price-plugin
Sylius Special Price Plugin
[!warning] THIS PLUGIN IS NO LONGER MAINTAINED. Please use the catalog promotion functionality (in 1.13 and later) for this.
This plugin provides a configuration for prices that are just active within a certain date range. So if you want to change the price for a product between the 1st May and the 1st of April, this plugin is for you.
Installation
-
Require the plugin
-
Register the plugin in your
-
Import plugin config
-
Add migrations
- Copy migrations from
tests/Application/migration
to your desired spot for migrations.
- Copy migrations from
-
Override ProductVariant entity
- Write new class which will use ProductVariantSpecialPricableTrait and implement ProductVariantSpecialPricableInterface
- Override the models class in config
-
Add mapping and validation
-
Mapping
- Validation
-
-
Override
Add this:
- Update the database schema
Running the test server
From the plugin root directory, run the following commands:
Testing
In order to run the phpspec tests you need to run the command vendor/bin/phpspec run
In order to run the phpunit tests you need to run the command vendor/bin/phpunit
In order to run the behat tests you need to run the command vendor/bin/behat
All versions of sylius-special-price-plugin with dependencies
sylius/sylius Version ^1.11
sylius/mailer-bundle Version ^1.8 || ^2.0@beta
symfony/webpack-encore-bundle Version ^1.15