Welcome!

Hideo Kosaka
  • ●言語
 
  • Business Note for entrepreneur and company owner
  • ●名古屋のベンチャー支援日記カテゴリー

  • ●過去記事50

 
 
   
  • ●名古屋のベンチャー支援日記

   »
2007/03/28
【備忘録】osCommerce 商品型番の文字数を増やす方法
osCommerceにeasypopulateを組み込んだ場合の商品一括登録について。 このようなメッセージがupload後に表示されます。

16************... ERROR! - Too many characters in the model number.
12 is the maximum on a standard OSC install.
Your maximum product_model length is set to 15
You can either shorten your model numbers or increase the size of the field in the database.
そこでphpmyadminの文字数を増やしても、同じエラーが出ます。 解決方法は、adminフォルダのeasypopulate.phpの次の部分を変更。
//**** Size of products_model in products table ****
// set this to the size of your model number field in the db. We check to make sure all models are no longer than this value.
// this prevents the database from getting fubared. Just making this number bigger won't help your database! They must match!
global $modelsize;
$modelsize = 15;
この$modelsize = 15;を$modelsize = 200;などとして、データベース上の数値と合わせます。データベース上にproductsとorders_productsのテーブルがあります。その中の、フィールドproducts_modelの数値を15から200にします。
テーブルproducts
products_model varchar(15) →varchar(200)
テーブルorders_products
products_model varchar(15) →varchar(200)
なるほど、先ほどのeasypopulate.phpコメントアウト部分にも書いてありましたね。 これでエラーが消えました。 ●その他OSCやEPに関する記録 osCommerce備忘録
記事リンク:【備忘録】osCommerce 商品型番の文字数を増やす方法||言語
ジャンル osCommerce || コメントは受け付けていません。

Comments are closed.

   »
 
 
Nagoya Venture Support Diary
© 2007-2009 Hideo Kosaka All Rights Reserved.