Browse Source

[Frontend] Page produit : affichage prix par unité de référence

master
Guillaume 4 years ago
parent
commit
14f688720a
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      ShopBundle/Services/PriceUtils.php

+ 9
- 0
ShopBundle/Services/PriceUtils.php View File

); );
} }


/*public function getPriceUnitWithTaxAndReduction($entity)
{
if($entity instanceof ProductInterface) {
return $this->getPriceWithTaxAndReduction($entity) / $entity->getQuantity() ;
}

return null ;
}*/

public function getPriceByRefUnit($entity) public function getPriceByRefUnit($entity)
{ {
if($entity instanceof ProductPropertyInterface) { if($entity instanceof ProductPropertyInterface) {

Loading…
Cancel
Save