I have an issue when my script pulls the item price, the script I have that works is
foreach($items as $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 with the exception of the ItemPrice
field. It is multiplying the amount by the quantity ordered and I need it to just list the individual item price. If I remove the ['Amount']
bracket the value it returns is "array"
instead of a number. Anyone have any idea how to correct this?