You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to upload Product images through the API without Success.
The Code below states that, the images field can not be writen to and i get the 400 error..
As per the API, images, among other properties, are Read Only, and cannot be created with the Product Resource. You simply need to specify these Read-Only Resources as their own API calls.
I have been trying to upload Product images through the API without Success.
The Code below states that, the images field can not be writen to and i get the 400 error..
$fields = array( "product_id" => "$prodid", "images" => array("image_file" => "$image"));
$apiresult=BigCommerce_Api::updateProduct($prodid, $fields);
So i tried the code below.
$image = new Bigcommerce_Api_ProductImage();
$image->product_id = $prodid;
$image->image_file = $image;
// etc..
$image->create();
Which then says the Class 'ProductImage' not found.
Is this a namespace issue?
The text was updated successfully, but these errors were encountered: