|
|
|
|
|
|
|
|
$solver = $this->getSolver($product); |
|
|
$solver = $this->getSolver($product); |
|
|
|
|
|
|
|
|
if ($solver->getBehaviorPriceInherited($product) == 'by-piece') { |
|
|
if ($solver->getBehaviorPriceInherited($product) == 'by-piece') { |
|
|
|
|
|
dump($product); |
|
|
return $solver->getBuyingPriceInherited($product); |
|
|
return $solver->getBuyingPriceInherited($product); |
|
|
} elseif ($solver->getBehaviorPriceInherited($product) == 'by-reference-unit') { |
|
|
} elseif ($solver->getBehaviorPriceInherited($product) == 'by-reference-unit') { |
|
|
if ($solver->getQuantityInherited($product) > 0) { |
|
|
if ($solver->getQuantityInherited($product) > 0) { |