laravel-woocommerce icon indicating copy to clipboard operation
laravel-woocommerce copied to clipboard

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

Open tjhunkin-inhance opened this issue 1 year ago • 2 comments

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"
}

tjhunkin-inhance avatar Jan 04 '24 15:01 tjhunkin-inhance

Dear @tjhunkin-inhance ,

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

  • What's the current larave-woocommerce version you are using now?
  • What's the WordPress Version you are using currently?

Thanks

Codexshaper avatar Mar 05 '24 12:03 Codexshaper

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.

tjhunkin-inhance avatar Mar 05 '24 12:03 tjhunkin-inhance