dongliantong3229 2016-11-17 15:00
浏览 240

亚马逊API项目价格

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?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!