Welcometomyshop ecshop Bulk Upload (add custom attribute)

Source: Internet
Author: User
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.