Browse Source

Merge branch 'develop' of https://forge.laclic.fr/Laclic/CaracoleBundle into develop

master
Guillaume 2 years ago
parent
commit
550492d6a6
2 changed files with 9 additions and 1 deletions
  1. +1
    -1
      Solver/Config/UnitSolver.php
  2. +8
    -0
      Solver/Order/OrderShopSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php View File

if($quantity) { if($quantity) {
return ($quantityProduct / $unit->getCoefficient()) * $quantity; return ($quantityProduct / $unit->getCoefficient()) * $quantity;
}else{ }else{
$quantity = 0;
return 0;
} }
} }



+ 8
- 0
Solver/Order/OrderShopSolver.php View File

return false; return false;
} }


public function isDone(OrderShopInterface $orderShop): bool
{
if ($orderShop->getOrderStatus() && $orderShop->getOrderStatus()->getAlias() == OrderStatusModel::ALIAS_DONE ) {
return true;
}
return false;
}

// getProductQuantityMaxAddCart // getProductQuantityMaxAddCart
public function getProductQuantityMaxAddCart(OrderShopInterface $orderShop, ProductInterface $product) public function getProductQuantityMaxAddCart(OrderShopInterface $orderShop, ProductInterface $product)
{ {

Loading…
Cancel
Save