• note the woocommerce rest api keys for images:
    meta_gallery = {
    "key": "_harikrutfiwu_wcgallary",
    "value": [{"url": img_url} for img_url in product_images]
    }
    meta_featured = { # thumbnails
    "key": "_harikrutfiwu_url",
    "value": product_images[0]
    }
    meta_featured_alt = {
    "key": "_knawatfibu_alt",
    "value": product_images[0]
    }
    meta_images.append(meta_featured)


    product_data = {
    "name": product_title,
    "type": "simple",
    "regular_price": str(product_price),
    "price": str(product_price),
    "sku": str(product_sku),
    "description": product_description,
    "short_description": product_short,
    "status": "publish",
    "categories": category_ids,
    "meta_data": meta_images,
    #"images": images,
    "attributes":attributes_list
    }

The topic ‘saved $$ perfect for woocommerce’ is closed to new replies.