Get image url from BigCommerce API with PHP

前端 未结 2 616
春和景丽
春和景丽 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条回答
  •  梦毁少年i
    2021-01-27 19:22

    From the code, it looks like the getProductImages has not been implemented. I added a quick patch. Use this pull request if it has not been merged yet (https://github.com/bigcommerce/bigcommerce-api-php/pull/61)

    The code looks like this -

    $images = Bigcommerce::getProductsImages(243);
    print_r($images)
    

提交回复
热议问题