src/Model/Product/ProductBase.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Model\Product;
  3. use Pimcore\Bundle\EcommerceFrameworkBundle\PriceSystem\PriceInterface;
  4. class ProductBase extends \Pimcore\Bundle\EcommerceFrameworkBundle\Model\AbstractProduct
  5. {
  6.     /** @inheritDoc */
  7.     public function isActive($inProductList false): bool
  8.     {
  9.         return $this->getPublished();
  10.     }
  11.     public function getPriceSystemName(): ?string
  12.     {
  13.         return 'default';
  14.     }
  15.     public function getOSPrice($quantityScale 1): ?PriceInterface
  16.     {
  17.         return parent::getOSPrice($quantityScale);
  18.     }
  19.     public function getNormalizedShortDescription()
  20.     {
  21.         return strip_tags((string)$this->getShortDescription());
  22.     }
  23.     public function getOSName(): ?string
  24.     {
  25.         return $this->getName();
  26.     }
  27.     public function getOSProductNumber(): ?string
  28.     {
  29.         return $this->getId();
  30.     }
  31. }