Get image url from BigCommerce API with PHP

前端 未结 2 614
春和景丽
春和景丽 2021-01-27 18:26

Can anybody help me to retrieve Image URL for a BigCommerce Product in PHP? I tried with Bigcommerce::getProductImages($product->id); but it doesn\'t helps. I hope the API gets

2条回答
  •  无人共我
    2021-01-27 19:14

    when iterating thru products you can grab the product ID and loop through this:

    $images = BigCommerce_Api::getCollection('/products/'.$productID.'/images');
    
        foreach($images as $image) {
            $curImage=$image->image_file;
                echo '';
            }
    

    hope this helps

提交回复
热议问题