如何将flipkart产品从csv导入Wordpress / WooCommerce? [英] How do I import flipkart products from a csv into Wordpress/WooCommerce?

查看:231
本文介绍了如何将flipkart产品从csv导入Wordpress / WooCommerce?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自flipkart的csv,其中包含以下字段:

I have a csv from flipkart with fields such as:

productId 描述 mrp code> productUrl 类别

显然这些不匹配对于WooCommerce字段(简短描述/详细描述与描述), productId vs sku

Obviously these don't match up perfectly with the WooCommerce fields ( short description / long description vs description ), productId vs sku but does anyone have tips on how to go about matching these up to be compatible with WooCommerce, or can recommend any WP plugins that may do this?

推荐答案

Woocommerce产品是什么?为什么要使用WooCommerce?也是一个自定义的职位类型(产品)。

Woocommerce product is also a custom post type (product) only. you can easily write your own custom importer.

每个产品可能具有以下结构:

Each product may have the following structure

product - parent post
   -- attachment - featured image, gallery
   -- product meta - options, category, tags, price, stock ...
   -- variation - product variants (it also contains options, price, stock...) 

createProduct() {}
uploadImages() {}
createProductMeta() {}
createProductVariants() {}

Woocommerce已有所有必需的代码,请参阅 WP_PLUGIN / woocommerce / includes / api / class-wc-api-products.php

Woocommerce already has all the necessory codes you want, refer WP_PLUGIN/woocommerce/includes/api/class-wc-api-products.php

create_product( $data ) - line number 174
save_product_images( $id, $images ) - line number 1551
save_product_meta( $id, $data ) - line number 638
save_variations( $id, $data ) - line number 1080

相信我很容易,我已经这样做了但shopify到woocommerce)

trust me it's easy, i have already done that ( not for flipkart but shopify to woocommerce )

这篇关于如何将flipkart产品从csv导入Wordpress / WooCommerce?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆