Import Export Product Woocommerce ผ่าน Google sheet หรือ Excel

สำหรับเว็บไซต์ที่มีสินค้ามากเกิน 50 sku การ import สินค้าผ่านทาง google sheet อาจช่วยคุณได้อย่างมาก

สามารถ copy ตัวอย่าง file import ได้ที่ download file ที่นี่

field ที่มีความพิเศษในการใส่ข้อมูล

Column nameWoocommerce fieldตัวอย่างคำอธิบาย
IDid100ID ของระบบ Woocommerce ไม่จำเป็นต้องใส่ถ้าเป็นการใส่ ข้อมูลครั้งแรก (สำหรับ import ข้อมูลเดิมจำเป็นต้องกรอก และ ID นี้ได้มาจากการ Export product)
Typetype simple : สำหรับสินค้าปกติ
variable : สินค้าตัวหลักของสินค้ามี size มีสี
variation : สินค้าตัวลูกของสินค้ามี size มีสี
SKUsku v00001 รหัสสินค้าห้ามซ้ำกันในระบบ
ParentParentv00001ใช่เฉพาะสินค้าที่เป็น ตัว Child โดยใส่ Sku ของสินค้าตัว Parent เข้าไป
ImageImageimagename.jpg > ถ้ามีรูปเดียว

imagename.jpg,imagename2.jpg > ถ้ามี 2 รูป ใส่ 2 ชื่อโดยขั้นด้วย , (comma)

1) file ภาพระวังไม่ให้ใส่ space ระหว่างชื่อ file อาจใช้ sku ในการตั้งชื่อไฟล์
2) ไม่สร้าง Sub folder ให้วาง file ทั้งหมดไปใน folder เดียวกัน
Categoriescategory_idsCategory 1
(Category นั้นไม่มี Sub category)

Category 1 > Category 2
(สำหรับ Category ที่มี Sub category)

Category 1 , Category 1 > Category 2
(สำหรับใส่ 2 category)

Tagstag_idsTag 1, Tag 2สามารถใส่เพิ่มได้ โดยใช้ , (comma) ขั้น

รายละเอียด Field ทั้งหมด

CSV Column NameMaps to product propertyExampleNotes
IDid100ไม่จำเป็นต้องใส่ถ้าเป็นการใส่ ข้อมูลครั้งแรก (สำหรับ import ข้อมูลเดิมจำเป็นต้องกรอก และ ID นี้ได้มาจากการ Export product)
Typetype simple : สำหรับสินค้าปกติ
variable : สินค้าตัวหลักของสินค้ามี size มีสี
variation : สินค้าตัวลูกของสินค้ามี size มีสี

ประเภททั้งหมด simple, variable, grouped, external, variation, virtual, downloadable
SKUskumy-skuRequired. Auto-generated if missing.
NamenameMy Product NameRequired.
Publishedstatus11 for published, 0 for private, -1 for draft.
Is featured?featured11 or 0
Visibility in catalogcatalog_visibilityvisibleSupported values: visible, catalog, search, hidden
Short descriptionshort_descriptionThis is a product.
DescriptiondescriptionThis is more information about a product.
Date sale price startsdate_on_sale_from2013-06-07Date (start of day) or leave blank.
Date sale price endsdate_on_sale_to2013-06-07Date (end of day) or leave blank.
Tax statustax_statustaxableSupported values: taxable, shipping, none
Tax classtax_classstandardCan use any existing tax class.
In stock?stock_status11 or 0
Stockmanage_stock / stock_quantity20Numeric stock level enables stock management. parent can be used for variations. Blank = no stock management.
Low stock amountlow_stock_amount3Empty or a number
Backorders allowed?backorders11, 0, or notify
Sold individually?sold_individually11 or 0
Weight (unit)weight100Parse only numbers.
Length (unit)length20Parse only numbers.
Width (unit)width20Parse only numbers.
Height (unit)height20Parse only numbers.
Allow customer reviews?reviews_allowed11 or 0
Purchase Notepurchase_noteThanks for buying it buddy.
Sale pricesale_price20.99Sale price.
Regular priceregular_price24.99Regular price.
Categoriescategory_idsCategory 1, Category 1 > Category 2CSV list of categories. > used for hierarchy.
Tagstag_idsTag 1, Tag 2CSV list of tags.
Shipping classshipping_class_idNameName of shipping class
Imagesimage_id / gallery_image_idshttp://somewhere.com/image.jpg, http://somewhere.com/image2.jpgFirst is featured image.
Download limitdownload_limit1 n/a or a limit.
Download expiry daysdownload_expiry1 n/a or a day limit.
Parentparent_id id:100, SKU-1Set parent ID. Used for variations. Can be just a numeric ID e.g. id:100 or a SKU. Export will use SKU when possible.
Grouped productschildren id:100, id:101, SKU-1, SKU-2List of IDs. Can be just a numeric ID e.g. id:100 or a SKU. Export will use SKU when possible.
Upsellsupsell_ids id:100, id:101, SKU-1, SKU-2List of IDs. Can be just a numeric ID e.g. id:100 or a SKU. Export will use SKU when possible.
Cross-sellscross_sell_ids id:100, id:101, SKU-1, SKU-2List of IDs. Can be just a numeric ID e.g. id:100 or a SKU. Export will use SKU when possible.
External URLproduct_urlhttps://mercantile.wordpress.org/product/wordpress-pennant/Product external URL.
Button textbutton_textBuy on the WordPress swag store!Custom product “buy” button.
Positionmenu_order1Menu order, used for sorting.
Attribute 1 nameattributesColorLooks for global attribute or uses text if not found. Include as many as needed. “Used for variations” is set automatically.
Attribute 1 value(s)attributesBlue, Red, GreenList of values. Variations only need 1 value. First is used if multiple get provided.
Attribute 1 defaultdefault_attributesBlueDefault value for variable products.
Attribute 1 visibleattributes11 or 0. Mapping screen labels this as “Attribute Visibility”
Attribute 1 globalattributes11 or 0. Mapping screen labels this as “Is a global attribute?”
Download 1 namedownloadsDownload 1
Download 1 URLdownloadsurl.zip

Ref. docs

ปลั๊กอิน Wordpress แจ่ม ๆ อยู่ที่นี่