Here's how to implement bulk uploads (adding custom attributes) and the implementation process.
1. Adding attributes
The only specific property that can be uploaded is that the fixed attribute for bulk uploads comes from a single table. Esc_goods table.
So we think that if we have our own properties, we have to add our own attributes to the esc_goods. For example, the added field adds
Spec.: Goods_guige
Code: SQL statement: ALTER TABLE ecs_goods add goods_guige varchar (255) not NULL after GOODS_DESC;
2. Page modification
Location: admin/templates/goods_info.htm Add custom fields in their form
I am here to insert 174 lines:
3. Add fields to read and update the product table (not related to bulk uploads but easy to see)
Location: admin/goods.php
In the update location, add:
$sql = "Update ecs_goods set goods_guige= '". $_post[' Goods_guige ']. "' Where goods_id= '." $_request[' goods_id ';
$db->query ($sql);
The attributes of this item can be updated.
4. batch Upload add Field
language/admin/goods_batch.php
To add a field:
Custom Bulk Upload Fields
$_lang[' upload_goods ' [' Goods_guige ']= ' specifications ';
Ok! this, as long as the product of the CVS export, you can achieve bulk upload custom properties.
The above describes the Welcometomyshop ecshop bulk upload (add custom attributes), including the welcometomyshop aspect of the content, I hope to be interested in PHP tutorial friends helpful.