Guillaume před 2 roky
rodič
revize
550492d6a6
2 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. +1
    -1
      Solver/Config/UnitSolver.php
  2. +8
    -0
      Solver/Order/OrderShopSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php Zobrazit soubor

@@ -13,7 +13,7 @@ class UnitSolver
if($quantity) {
return ($quantityProduct / $unit->getCoefficient()) * $quantity;
}else{
$quantity = 0;
return 0;
}
}


+ 8
- 0
Solver/Order/OrderShopSolver.php Zobrazit soubor

@@ -345,6 +345,14 @@ class OrderShopSolver
return false;
}

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

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

Načítá se…
Zrušit
Uložit