fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Damian Nowak

Hello,

When we make API call to variation products we can’t see images from variations, only main image:
We need to have link to images like for 1 main image
Example:

“id”: 481,
“sku”: “1BN-26-18-zielony_METAL_CZARNA”,
“in_stock”: true,
“stock_quantity”: “2”,
“price”: 1229,
“regular_price”: 1229,
“sale_price”: 0,
“description”: “”,
“visible”: true,
“manage_stock”: true,
“purchasable”: true,
“on_sale”: false,
“image”: {
“id”: -1,
“src”: “https://razonbike.ro/wp-content/uploads/2020/02/s_comfort_1bn_zielony_koszyk-czarne-kropki-metal-scaled.jpg”
},
“attributes”: [
{
“id”: “3”,
“name”: “Product Culoare”,
“option”: “Verde”
}
],
“weight”: “16”,
“meta_data”: [
{
“key”: “_variation_description”,
“value”: “”
},
{
“key”: “_sku”,
“value”: “1BN-26-18-zielony_METAL_CZARNA”
},
{
“key”: “_regular_price”,
“value”: “1229”
},
{
“key”: “total_sales”,
“value”: “0”
},
{
“key”: “_tax_status”,
“value”: “taxable”
},
{
“key”: “_tax_class”,
“value”: “parent”
},
{
“key”: “_manage_stock”,
“value”: “yes”
},
{
“key”: “_backorders”,
“value”: “no”
},
{
“key”: “_sold_individually”,
“value”: “no”
},
{
“key”: “_virtual”,
“value”: “no”
},
{
“key”: “_downloadable”,
“value”: “no”
},
{
“key”: “_download_limit”,
“value”: “-1”
},
{
“key”: “_download_expiry”,
“value”: “-1”
},
{
“key”: “_thumbnail_id”,
“value”: “1456”
},
{
“key”: “_stock”,
“value”: “2.000000”
},
{
“key”: “_stock_status”,
“value”: “instock”
},
{
“key”: “_wc_average_rating”,
“value”: “0”
},
{
“key”: “_wc_review_count”,
“value”: “0”
},
{
“key”: “_price”,
“value”: “1229”
},
{
“key”: “_product_version”,
“value”: “5.9.0”
},
{
“key”: “fb_product_item_id”,
“value”: “3000132906738150”
},
{
“key”: “fb_visibility”,
“value”: “yes”
},
{
“key”: “fb_product_description”,
“value”: “”
},
{
“key”: “_wc_facebook_sync_enabled”,
“value”: “yes”
},
{
“key”: “_wc_facebook_product_image_source”,
“value”: “product”
},
{
“key”: “fb_product_image”,
“value”: “”
},
{
“key”: “fb_product_price”,
“value”: “”
},
{
“key”: “attribute_pa_culoare”,
“value”: “verde”
},
{
“key”: “_crosssell_ids”,
“value”: “a:3:{i:0;i:1014;i:1;i:1012;i:2;i:1017;}”
},
{
“key”: “_wpml_media_has_media”,
“value”: “1”
},
{
“key”: “woo_variation_gallery_images”,
“value”: “a:4:{i:0;i:3202;i:1;i:3204;i:2;i:3206;i:3;i:3212;}”
},
{
“key”: “_wpml_word_count”,
“value”: “{“total”:25,”to_translate”:{“cs”:25,”hu”:25,”it”:25}}”
},
{
“key”: “_wpml_media_featured”,
“value”: “1”
},
{
“key”: “_wpml_media_duplicate”,
“value”: “1”
},
{
“key”: “_wpml_location_migration_done”,
“value”: “1”
},
{
“key”: “_wcml_custom_prices_status”,
“value”: “0”
},
{
“key”: “_weight”,
“value”: “16”
},
{
“key”: “_woosea_exclude_product”,
“value”: “no”
},
{
“key”: “_max_variation_price”,
“value”: “”
},
{
“key”: “_max_variation_regular_price”,
“value”: “”
},
{
“key”: “_max_variation_sale_price”,
“value”: “”
},
{
“key”: “_min_variation_price”,
“value”: “”
},
{
“key”: “_min_variation_regular_price”,
“value”: “”
},
{
“key”: “_min_variation_sale_price”,
“value”: “”
},
{
“key”: “_sale_price”,
“value”: “”
}
] }