<?php
namespace App\Model\Product;
use Pimcore\Bundle\EcommerceFrameworkBundle\PriceSystem\PriceInterface;
class ProductBase extends \Pimcore\Bundle\EcommerceFrameworkBundle\Model\AbstractProduct
{
/** @inheritDoc */
public function isActive($inProductList = false): bool
{
return $this->getPublished();
}
public function getPriceSystemName(): ?string
{
return 'default';
}
public function getOSPrice($quantityScale = 1): ?PriceInterface
{
return parent::getOSPrice($quantityScale);
}
public function getNormalizedShortDescription()
{
return strip_tags((string)$this->getShortDescription());
}
public function getOSName(): ?string
{
return $this->getName();
}
public function getOSProductNumber(): ?string
{
return $this->getId();
}
}