tdevos/sylius-price-evolve-plugin

Extended price system for Sylius

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:sylius-plugin

pkg:composer/tdevos/sylius-price-evolve-plugin


README

Schedule your prices

Documentation

This plugin propose to schedule the price of a product. Just set the price and a startTime

Quickstart Installation

  1. Run composer require tdevos/sylius-price-evolve-plugin

  2. Add Tdevos\SyliusPriceEvolvePlugin\SyliusPriceEvolvePlugin::class => ['all' => true] to your bundle.php

  3. Create a file config/packages/pricing_extension.yaml

services: 
   app.form.extension.type.channelpriceType:
       class: Tdevos\SyliusPriceEvolvePlugin\Form\Extension\PricingsExtension
       tags:
           - { name: form.type_extension, extended_type: Sylius\Bundle\CoreBundle\Form\Type\Product\ChannelPricingType, priority: 10 }
  1. Add this trait to src/Entity/Channel/ChannelPricing.php
class ChannelPricing extends BaseChannelPricing
{
    use PluginChannelPricing;
}
  1. Enjoy !