mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-01-23 03:01:41 +03:00
fix model prices
This commit is contained in:
parent
48ccded014
commit
9fedcb096c
@ -70,16 +70,13 @@ class ModelExtensionRetailcrmPrices extends Model
|
|||||||
if (!$specials) {
|
if (!$specials) {
|
||||||
$productPrice = $this->getEmptyPrice();
|
$productPrice = $this->getEmptyPrice();
|
||||||
$prices[] = $this->getPriceRequest($product, $site, $productPrice);
|
$prices[] = $this->getPriceRequest($product, $site, $productPrice);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$productPrice = array();
|
$productPrice = array();
|
||||||
|
|
||||||
if (is_array($specials) && count($specials)) {
|
if (is_array($specials) && count($specials)) {
|
||||||
$productPrice = ModelExtensionRetailcrmPrices::getSpecialPrice($specials);
|
$productPrice = $this->getSpecialPrice($specials);
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($productPrice)) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$prices[] = $this->getPriceRequest($product, $site, $productPrice);
|
$prices[] = $this->getPriceRequest($product, $site, $productPrice);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user