• Resolved hypopolol

    (@hypopolol)


    Hello,

    I have a script that change woocommerce product categorie like

    update_post_meta($Product_id, ‘product_cat’, $Category_id /*(term_id of wp_terms table) */ );

    i works well so i have:

    meta_id post_id meta_key meta_value
    699235 89867 product_cat 135332 ( = $categorie_id)

    but still my products have no categories. It is the wrong place to define categories ?

    thanks for helping me !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hey @hypopolol – You may want to consider joining the WooCommerce Developer Slack, as you are more likely to get an answer to code-related questions there:

    https://woocommerce.com/community-slack/

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce product_cat’ is closed to new replies.