Codexshaper / laravel-woocommerce

WooCommerce Rest API for Laravel
MIT License
194 stars 57 forks source link

Error: #38761 is an invalid image ID. [woocommerce_product_invalid_image_id] #109

Open tjhunkin-inhance opened 9 months ago

tjhunkin-inhance commented 9 months ago

Error when trying to create product: "Error: #38761 is an invalid image ID. [woocommerce_product_invalid_image_id]"

payload used

{
   "sku":"889698487405",
   "name":"Star Wars: the Mandalorian Child Funko Pop! Vinyl Figure 368",
   "type":"simple",
   "regular_price":"299.00",
   "description":"Star Wars: The Mandalorian Child Funko Pop! Vinyl Figure 368: The Force is strong with this youngling. Adorable 3 3/4-inch tall Pop! Vinyl figure brings you The Child! Inspired by the Disney+ Star Wars: The Mandalorian TV series. Get the 10-Inch 'Super Size' Child Pop! too! Sold separately.",
   "short_description":"Star Wars: The Mandalorian Child Funko Pop! Vinyl Figure 368: The Force is strong with this youngling. Adorable 3 3/4-inch tall Pop! Vinyl figure brings you The Child! Inspired by the Disney+ Star Wars: The Mandalorian TV series. Get the 10-Inch 'Super Size' Child Pop! too! Sold separately.",
   "categories":[

   ],
   "images":[
      {
         "src":"https://images.barcodelookup.com/16285/162854082-1.jpg"
      }
   ],
   "status":"draft",
   "manage_stock":true,
   "stock_quantity":1,
   "stock_status":"instock"
}
Codexshaper commented 7 months ago

Dear @tjhunkin-inhance ,

Are you still facing the same issue? If yes, Can you share some details?

Thanks

tjhunkin-inhance commented 7 months ago

I'm using the latest versions of WordPress, WooCommerce, and this package. I ended up having to use a separate package to upload the media first then just link the image ids in this package for it to work.