Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

383
 
554
 
554
 
search.php
_> 136136 
  137137       $Qlisting = $osC_Database->query('select SQL_CALC_FOUND_ROWS distinct p.*, pd.*, m.*, if(s.status, s.specials_new_products_price, null) as specials_new_products_price, if(s.status, s.specials_new_products_price, p.products_price) as final_price');
  138138 
<> 139 -      if (($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == 'true')) {
   139+      if (($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == '1')) {
140140         $Qlisting->appendQuery(', sum(tr.tax_rate) as tax_rate');
  141141       }
  142142 
     
 !
145145       $Qlisting->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
  146146       $Qlisting->bindTable(':table_specials', TABLE_SPECIALS);
  147147 
<> 148 -      if (($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == 'true')) {
   148+      if (($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == '1')) {
149149         if ($osC_Customer->isLoggedOn()) {
  150150           $customer_country_id = $osC_Customer->getCountryID();
  151151           $customer_zone_id = $osC_Customer->getZoneID();
     
 !
221221         }
  222222       }
  223223 
<> 224 -      if (DISPLAY_PRICE_WITH_TAX == 'true') {
   224+      if (DISPLAY_PRICE_WITH_TAX == '1') {
225225         if ($this->_price_from > 0) {
  226226           $Qlisting->appendQuery('and (if(s.status, s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) >= :price_from)');
  227227           $Qlisting->bindFloat(':price_from', $this->_price_from);
     
 !
243243         }
  244244       }
  245245 
<> 246 -      if (($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == 'true')) {
   246+      if (($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == '1')) {
<_ 247247         $Qlisting->appendQuery('group by p.products_id, tr.tax_priority');
  248248       }
  249249