Hajime Yamamoto
yamam****@ytw*****
2007年 8月 1日 (水) 18:36:07 JST
五十嵐 恭弘 様 「R8での表示エラー 1054」を投げた山本です。 > > 実行した結果 > 「レコードを表示する 0 - 3 (4 合計, 照会の実行時間 0.0007 秒)」 > との表示が出ました。 > このカテゴリーにはデータが4つ入っているので > 正しく表示されたことになると思います。 > では、そのカテゴリを osCommerce のカテゴリ・ボックス でクリックすると 「このカテゴリーの商品はありません...」と なるんでしょうか? 以下のSQL 文を default.php の 2個目の // We show them all の行の下に挿入して試してください。 (以前の $listing_sql = ... はコメント・アウトしてください) これでダメなら、判りません。 $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, 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 from " . TABLE_PRODUCTS_DESCRIPTION . " pd, ((" . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on ( p.manufacturers_id = m.manufacturers_id )) left join " . TABLE_SPECIALS . " s on ( p.products_id = s.products_id )), " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";