Permalink
Browse files

little Better products search Patch

Signed-off-by: Gergely <t-gely@freemail.hu>
  • Loading branch information...
1 parent 815aa1e commit ea8417a5023c971323672842cbb694f39e4fe691 @tgely committed Aug 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 osCommerce/OM/Core/Site/Shop/Search.php
@@ -139,7 +139,7 @@ function execute() {
$Qlisting->appendQuery(', sum(tr.tax_rate) as tax_rate');
}
- $Qlisting->appendQuery('from :table_products p left join :table_manufacturers m using(manufacturers_id) left join :table_specials s on (p.parent_id = s.products_id) left join :table_products_images i on (if(p.parent_id is NULL, p.products_id = i.products_id, p.parent_id = i.products_id) and i.default_flag = :default_flag)');
+ $Qlisting->appendQuery('from :table_products p left join :table_manufacturers m using(manufacturers_id) left join :table_specials s on (p.products_id = s.products_id) left join :table_products_images i on (if(p.parent_id is NULL, p.products_id = i.products_id, p.parent_id = i.products_id) and i.default_flag = :default_flag)');
$Qlisting->bindInt(':default_flag', 1);
if ( ($this->hasPriceSet('from') || $this->hasPriceSet('to')) && (DISPLAY_PRICE_WITH_TAX == '1') ) {

0 comments on commit ea8417a

Please sign in to comment.