我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

从每个订购的商品中获取magento运费金额

I am trying to get shipping and handling amount. I was trying the snippet code below but it's not working. I am successfully sending some data to third party API after the place order .

echo $item->getShippingAmount();

but if I tried with.

echo $order->getShippingAmount();

It works but it shows total of shipping amount of all orders, but conversely I want each single amount to be shown.

item ordered * quantity

Can anybody tell me how to do that?

Maybe you can use

$order->getShippingIncTax()

近期文章

  • Imagemagick裁剪形状和添加扩展的背景
  • 无法从jQuery UI中获取发布数据可排序(发送到同一文件)
  • curl - 等待几秒后获取重定向url
  • 如何使用php / jquery将这个格式错误的字符串转换为json
  • 如何仅在成功注册时重置表单,但在提交失败时保留内容
  • 购物车中的独特商品
  • PHP escpos打印
  • 如何将表中的日期与codeigniter中排除时间的当前日期进行比较
  • Laravel 5:未定义的变量
  • 为查询设计过滤器?
  • 加载WooCommerce产品更快
  • 使用ssh和shell从另一个php脚本在linux服务器上运行php脚本
  • 使用PDO和MySQL的“训练模式”
  • Fopen花了太长时间才开始下载
  • Slim3 DI容器访问区别
  • 不使用FTP管理远程服务器上的图像
  • 通过ajax上传图像而无需重新加载页面
  • 如何从PHP中的对象获取整数
  • 如何使用jquery删除动态元素[重复]
  • 单个视频无法在Youtube API标题搜索中获取

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华