Skip to main content
edited tags
Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459
Tweeted twitter.com/#!/StackWordPress/status/435453197181018112
deleted 9 characters in body; edited tags; edited title
Source Link
kaiser
  • 50.8k
  • 27
  • 150
  • 244

Programmatically add products to Woocommerceposts add and assign postmeta and assign terms

I have thousands of WooCommerce products that need to be inserted into woo commercethe database. For some reasons I can't use the csv import plugin or any other 3rd party solution and this has to be done manually through php code into database.

Here is what my question is:

To what table do the product categories go ?

To what table do the product categories go ? II guess the products have to be added to wp_postswp_posts and then the description/price etc is added to the wp_postmetawp_postmeta.

How to assign the products to a particular categorytaxonomy. I mean inIn which table do they go?

Don't need the code just guidelines regarding tables.

Ahmar

Programmatically add products to Woocommerce

I have thousands of products that need to be inserted into woo commerce. For some reasons I can't use the csv import plugin or any other 3rd party solution and this has to be done manually through php code into database.

Here is what my question is:

To what table do the product categories go ? I guess the products have to be added to wp_posts and then the description/price etc is added to the wp_postmeta.

How to assign the products to a particular category. I mean in which table do they go?

Don't need the code just guidelines regarding tables.

Ahmar

Programmatically add posts add and assign postmeta and assign terms

I have thousands of WooCommerce products that need to be inserted into the database. For some reasons I can't use the csv import plugin or any other 3rd party solution and this has to be done manually through php code into database.

Here is what my question is:

To what table do the product categories go ?

I guess the products have to be added to wp_posts and then the description/price etc is added to the wp_postmeta.

How to assign the products to a particular taxonomy. In which table do they go?

Don't need the code just guidelines regarding tables.

Post Reopened by kaiser
Post Closed as "Not suitable for this site" by markratledge, kaiser
title fix
Link
markratledge
  • 8.7k
  • 6
  • 40
  • 62

<woocommerce> Programitacally Programmatically add a productproducts to Woocommerce

Source Link
Ahmar Ali
  • 121
  • 1
  • 7
Loading