How to get Product images via PHP SDK
问题 I want to get the product images using the Bigcommerce PHP library. How would I do that? $products=Bigcommerce::getProducts(); foreach($products as $product) { echo $product->name; echo $product->price; }//here i retrieve price and name of products 回答1: The following code will get you the product images... $products=Bigcommerce::getProducts(); foreach($products as $product) { echo $product->name; echo $product->price; echo $product->images[0]->image_file } The line echo $product->images[0]-