Browse Source

[Backend] Factory ProductFamily : valeur par défaut pour behaviorAddToCart sur simple

packProduct
Guillaume 3 years ago
parent
commit
131ab493e7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Factory/Product/ProductFamilyFactory.php

+ 2
- 0
Factory/Product/ProductFamilyFactory.php View File

use Lc\CaracoleBundle\Context\SectionContextTrait; use Lc\CaracoleBundle\Context\SectionContextTrait;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
use Lc\CaracoleBundle\Model\Product\ProductFamilyModel;
use Lc\CaracoleBundle\Model\Section\SectionInterface; use Lc\CaracoleBundle\Model\Section\SectionInterface;
use Lc\SovBundle\Factory\AbstractFactory; use Lc\SovBundle\Factory\AbstractFactory;


{ {
$productFamily = new ProductFamily(); $productFamily = new ProductFamily();


$productFamily->setBehaviorAddToCart(ProductFamilyModel::BEHAVIOR_ADD_TO_CART_SIMPLE);
$productFamily->setSaleStatus(true); $productFamily->setSaleStatus(true);
$productFamily->setStatus(1); $productFamily->setStatus(1);



Loading…
Cancel
Save