商品情報登録フォームの項目変更 で comment5を追加したが、実際には表示されない。

detail.phpでは、全項目を参照テーブルでとってきていて、その中にあらかじめcomment5が入っていないようです。
(install\sql\create_view.sqlの「CREATE VIEW vw_products_allclass_detail AS」の部分)

そのsql文に入れればいいのだけど、最初のinstall.phpで読み込んでるみたいですから、いまさら無理っぽい?

detail.phpにスクリプトを加えて、comment5を引っ張るようにしました。

L.151移行に以下を追加。

// comment5の取得
$code_sql = “SELECT comment5 FROM dtb_products WHERE product_id = ?”;
$arrProductComment5 = $objQuery->getall($code_sql, array($tmp_id));
$objPage->arrProduct[“comment5”] = $arrProductComment5[0][comment5];

これで、Smartyにて、arrProduct.comment5で呼び出せるようになりました。