This is a discussion on All Products v3.0 MS 2.2 with Images within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; First install v. 4.7 Edit catalogallprods.php Find (line 143) $listing_sql = "select p.products_id, products_weight, p.products_quantity, p.products_model, pd.products_name, pd.products_description, p.products_image, p.products_price, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| First install v. 4.7 Edit catalogallprods.php Find (line 143) $listing_sql = "select p.products_id, products_weight, p.products_quantity, p.products_model, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id $where"; And replace with this. $listing_sql = "select p.products_id, products_weight, p.products_quantity, p.products_model, pd.products_name, pd.products_description, p.products_image, 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, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id $where"; This is just an fix... More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| All Products v3.0 MS 2.2 with Images | michael_s | New osCommerce Contributions | 0 | 03-19-2008 12:01 PM |
| All Products v3.0 MS 2.2 with Images | michael_s | New osCommerce Contributions | 0 | 11-08-2007 11:20 PM |
| All Products v3.0 MS 2.2 with Images | michael_s | New osCommerce Contributions | 0 | 10-31-2007 07:21 AM |
| All Products v3.0 MS 2.2 with Images | michael_s | New osCommerce Contributions | 0 | 05-30-2007 02:11 AM |
| All Products v3.0 MS 2.2 with Images | michael_s | New osCommerce Contributions | 0 | 03-01-2007 05:01 PM |