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

@@ -50,6 +50,15 @@ class PriceUtils
);
}

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

return null ;
}*/

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

Loading…
Cancel
Save