Search by

tdevos / sylius-price-evolve-plugin

ThomasDevos

Extended price system for Sylius

Package info

github.com/tdevos/SyliusPriceEvolvePlugin

Type:sylius-plugin

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

Statistics

Installs: 17

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.2 2020-06-16 17:54 UTC

This package is auto-updated.

Last update: 2026-09-17 08:21:24 UTC


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 !