Easypopulate 文字化けいろいろ [EP]
osCommerce 商品を誤登録した場合の削除方法 [DB]
DB(phpmyadmin等)にログインして、products一括削除。
1秒かからず削除できますね!
(1万件弱の登録でも確認しました!)
一括登録のuploadは300データで50秒くらいかかるのに。。
商品型番の文字数を増やす方法 [EP]
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コメントアウト部分にも書いてありましたね。
これでエラーが消えました。






