mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 22:56:07 +03:00
fix model prices
This commit is contained in:
parent
5e85d9a958
commit
1ec5e14ddf
@ -56,16 +56,13 @@ class ModelExtensionRetailcrmPrices extends Model
|
|||||||
if (!$specials) {
|
if (!$specials) {
|
||||||
$productPrice = $this->getEmptyPrice();
|
$productPrice = $this->getEmptyPrice();
|
||||||
$prices[] = $this->getPriceRequest($product, $site, $productPrice, $retailcrm);
|
$prices[] = $this->getPriceRequest($product, $site, $productPrice, $retailcrm);
|
||||||
|
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, $retailcrm);
|
$prices[] = $this->getPriceRequest($product, $site, $productPrice, $retailcrm);
|
||||||
|
Loading…
Reference in New Issue
Block a user