• Hi!

    I have a JSON file that contains the products that I need to import to WooCommerce. This products contains some “custom field”, so I created an attribute for each of those field.

    I’ve written a custom PHP function to import all those products (465 products!) and everything went fine, except for the attributes.

    Looking at the products, the attributes don’t show in the front-end, nor the back-end of the single product page. Like they are not set.

    But if I go to “Products > Attributes”, I can see all the attributes I created before with the terms imported from the products in the JSON file and the product count of the terms is correct.

    It seems that the attributes were imported and set correctly (I used wp_set_object_terms()), but they are not displayed in the products. I tried to update the products but nothing changed. What could be the problem?

    I searched on the web and found that other people imported attributes programmatically, but I didn’t found problems like this.

    https://www.ads-software.com/plugins/woocommerce/

  • The topic ‘Import products with PHP, attributes not showing’ is closed to new replies.