php - Amazon API Item Price -
i have issue when script pulls item price, script have works is
foreach($items $item) { $order_rows[] = [ $order->getamazonorderid(), $item['sellersku'], $item['quantityordered'], $item['itemprice']['amount'], $item['itemtax']['amount'], date('h:m', strtotime($order->getpurchasedate())), date('m/d/y', strtotime($order->getpurchasedate())),
the code works fine exception of itemprice
field. multiplying amount quantity ordered , need list individual item price. if remove ['amount']
bracket value returns "array"
instead of number. have idea how correct this?
Comments
Post a Comment