商品詳細のサブ画像はデフォルトですと、6個までとなっていますので
10個に増やしてみます。
1)「PRODUCTSUB_MAX」の値を変更します
「システム設定」→「パラメーター設定」の「PRODUCTSUB_MAX」(商品サブ情報最大数)を、「10」に変更
2)データベースにカラム追加
dtb_productsのフィールドに下記SQLを流し込みますALTER TABLE dtb_products ADD COLUMN sub_title7 text AFTER sub_large_image6; ALTER TABLE dtb_products ADD COLUMN sub_comment7 mediumtext AFTER sub_title7; ALTER TABLE dtb_products ADD COLUMN sub_image7 text AFTER sub_comment7; ALTER TABLE dtb_products ADD COLUMN sub_large_image7 text AFTER sub_image7; ALTER TABLE dtb_products ADD COLUMN sub_title8 text AFTER sub_large_image7; ALTER TABLE dtb_products ADD COLUMN sub_comment8 mediumtext AFTER sub_title8; ALTER TABLE dtb_products ADD COLUMN sub_image8 text AFTER sub_comment8; ALTER TABLE dtb_products ADD COLUMN sub_large_image8 text AFTER sub_image8; ALTER TABLE dtb_products ADD COLUMN sub_title9 text AFTER sub_large_image8; ALTER TABLE dtb_products ADD COLUMN sub_comment9 mediumtext AFTER sub_title9; ALTER TABLE dtb_products ADD COLUMN sub_image9 text AFTER sub_comment9; ALTER TABLE dtb_products ADD COLUMN sub_large_image9 text AFTER sub_image9; ALTER TABLE dtb_products ADD COLUMN sub_title10 text AFTER sub_large_image9; ALTER TABLE dtb_products ADD COLUMN sub_comment10 mediumtext AFTER sub_title10; ALTER TABLE dtb_products ADD COLUMN sub_image10 text AFTER sub_comment10; ALTER TABLE dtb_products ADD COLUMN sub_large_image10 text AFTER sub_image10;
3)SC_Product.phpに項目を追加します
/data/class/SC_Product.php720行目あたりにサブ画像に関する項目がありますので、
追加した枚数の項目を増やして下さい。
,dtb_products.sub_title7 ,dtb_products.sub_comment7 ,dtb_products.sub_image7 ,dtb_products.sub_large_image7 ,dtb_products.sub_title8 ,dtb_products.sub_comment8 ,dtb_products.sub_image8 ,dtb_products.sub_large_image8 ,dtb_products.sub_title9 ,dtb_products.sub_comment9 ,dtb_products.sub_image9 ,dtb_products.sub_large_image9 ,dtb_products.sub_title10 ,dtb_products.sub_comment10 ,dtb_products.sub_image10 ,dtb_products.sub_large_image10
※管理画面から商品情報をcsvアップロードはまだ検証してませんので、何かしらの不具合あるかもしれません。
以上です。
Where there is a will, there is a way.
This Domain Is Good!
疫情还在影响生活!唉!
爱和死是永恒的主题
Very Good!不错呀!