PHP code example of madcoders / sylius-rma-plugin
1. Go to this page and download the library: Download madcoders/sylius-rma-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/ */
madcoders / sylius-rma-plugin example snippets
Madcoders\SyliusRmaPlugin\MadcodersSyliusRmaPlugin::class => ['all' => true],
// src/Entity/Product/Product.php
use Doctrine\ORM\Mapping as ORM;
use Madcoders\SyliusRmaPlugin\Entity\NonReturnableProductInterface;
use Madcoders\SyliusRmaPlugin\Entity\NonReturnableProductTrait;
use Sylius\Component\Core\Model\Product as BaseProduct;
#[ORM\Entity]
#[ORM\Table(name: 'sylius_product')]
class Product extends BaseProduct implements NonReturnableProductInterface
{
use NonReturnableProductTrait;
}
bash
php bin/console doctrine:migrations:migrate