PHP code example of brille24 / sylius-special-price-plugin

1. Go to this page and download the library: Download brille24/sylius-special-price-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

brille24 / sylius-special-price-plugin example snippets


    return [
        ...
        Brille24\SyliusSpecialPricePlugin\Brille24SyliusSpecialPricePlugin::class => ['all' => true],
    ];
    
bundles.php
xml
        <!-- ProductVariant.xml -->
    
        <constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping">
            <class name="Your\Name\Space\ProductVariant">
                <constraint
                        name="Brille24\SyliusSpecialPricePlugin\Validator\ProductVariantChannelSpecialPriceDateOverlapConstraint">
                    <option name="groups">sylius</option>
                </constraint>
            </class>
        </constraint-mapping>