GX-Bug #44217 » 100_SpecialFix.patch
src/includes/classes/xtcPrice.php (revision ) | ||
---|---|---|
188 | 188 |
|
189 | 189 |
// check specialprice |
190 | 190 |
$t_special_price = $this->xtcCheckSpecial($p_products_id, $t_combis_id); |
191 |
if($p_include_special === true && $p_products_id != 0 && empty($t_special_price) === false)
|
|
191 |
if($p_include_special === true && $p_products_id != 0 && is_numeric($t_special_price) == true)
|
|
192 | 192 |
{ |
193 | 193 |
return $this->xtcFormatSpecial($p_products_id, $this->xtcAddTax($t_special_price, $t_tax_rate), $t_products_price, $p_format_price, $p_return_array); |
194 | 194 |
} |
... | ... | |
525 | 525 |
|
526 | 526 |
public function xtcCheckSpecial($p_products_id, $p_combis_id = 0) |
527 | 527 |
{ |
528 |
$t_price = 0;
|
|
528 |
$t_price = false;
|
|
529 | 529 |
|
530 | 530 |
$t_sql = "SELECT specials_new_products_price |
531 | 531 |
FROM " . TABLE_SPECIALS . " |