This is a discussion on Shop by price infobox within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; I was having an issue where anything in the lowest price range was duplicated, so you see 2 of the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| I was having an issue where anything in the lowest price range was duplicated, so you see 2 of the same products side by side, I have a heavily modified store and think the cause of this issue is to do with a "inc VAT and EX Vat" mod i added, Only change this if you are also having this issue. Find: $select_str = "select distinct " . $select_column_list . " p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, 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 "; if ( (DISPLAY_PRICE_WITH_TAX == 'true') && (tep_not_null($pfrom) || tep_not_null($pto)) ) { $select_str .= ", SUM(tr.tax_rate) as tax_rate "; } Change to: $select_str = "select distinct " . $select_column_list . " p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, 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 "; if ( (DISPLAY_PRICE_WITH_TAX == 'false') && (tep_not_null($pfrom) || tep_not_null($pto)) ) { $select_str .= ", SUM(tr.tax_rate) as tax_rate "; } //////Done! More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shop by price infobox | michael_s | New osCommerce Contributions | 0 | 03-07-2008 04:24 PM |
| Shop by price infobox | michael_s | New osCommerce Contributions | 0 | 03-05-2008 09:21 AM |
| Shop by price infobox | michael_s | New osCommerce Contributions | 0 | 08-07-2007 07:41 PM |
| Shop by price infobox problem please help~ | jikey | osCMax v2 Features Discussion | 2 | 11-26-2006 02:14 AM |
| Shop by Price | pefc2525 | osCMax v2 Features Discussion | 2 | 02-13-2006 09:45 PM |