@@ -126,6 +126,16 @@ class ProductSolver | |||
} | |||
} | |||
public function getFullTitle(ProductInterface $product) | |||
{ | |||
if ($product->getTitle()) { | |||
$endOfTitle = $product->getTitle(); | |||
} else { | |||
$endOfTitle = $this->getQuantityInherited($product).' '.$this->getUnitInherited($product)->getWordingShort(); | |||
} | |||
return $product->getProductFamily()->getTitle(). ' - '. $endOfTitle; | |||
} | |||
public function getQuantityInherited(ProductInterface $product) | |||
{ | |||
if ($product->getQuantity()) { |