联邦快递运输标签打印

发布于 2024-08-16 06:27:58 字数 2239 浏览 6 评论 0原文

我正在为联邦快递从事运输标签打印工作。

下面以数组形式给出信息。所有值都显示在生成的标签中 但没有显示地址、送货地址、公司名称。下面给出了示例数组。 请说明为什么我们无法获得所有值。还建议任何可能的 相关资源来解决这个问题。

$fed = new FedExDC('xxxxxxxx','xxxxxxxx');

$ship_data = array(    
4=>    'power act Soln' //STORE_NAME
,5=>    '312 stuart st'     //MODULE_SHIPPING_FEDEX_EXPRESS_ADDRESS_1
,6=>    '180 richfield drive' //  MODULE_SHIPPING_FEDEX_EXPRESS_ADDRESS_2
,7=>    'Boston'              //  MODULE_SHIPPING_FEDEX_EXPRESS_CITY
,8=>    'MA'             //MODULE_SHIPPING_FEDEX_EXPRESS_STATE
,9=>    '02134'         //MODULE_SHIPPING_FEDEX_EXPRESS_POSTAL
,11=>  'Power act'               //delivery_company
,12=>   'Jay Powers'            // recipient's contact name
,13=>   '183 richfield drive'    //delivery_street_address
,14=>   'street'    //delivery_street_address2
,15=>   'Sanjose'       //delivery_city
,16=>   'CA'                // delivery state
,17=>   '92315'          // delivery_postcode
,18=>   '6173335555'     // To phone number
,23=>   '1'             // payment type (1 is bill to sender)
,25 => '1' // reference number
,38 => 'package department' // department name
,50=>   'US'             // delivery country
,57 => 10 // "your package" height dimension
,58 => 10 // "your package" width dimension
,59 => 10 // "your package length dimension
,68 =>  'USD'               //DEFAULT_CURRENCY
,75=>   'LBS'               //MODULE_SHIPPING_FEDEX_EXPRESS_WEIGHT
,116 => 1                           //package_num
,117=>  'US'             // sender's country
,183=>  '6175556985'        //from ph no
,440 =>'Y'                 //home delivery 
,1266 =>'N'                 //saturday delivery   
,1273=> '01'             // packaging_type
,1274=> '01'             //service_type
,1333=> '1'                     // drop off type (1 is regular pickup)
,1368 => 2                  // label type (2 is standard)
,1369 => 1              // printer type (1 is laser)
,1370 => 5                  // label media (5 is plain paper)
,1401=> '1.0'           // total weight
,3001 => 66666              // purchase order number
,3002 => 123456                 // invoice number
);

I am working on shipping label printing for fedex.

Information is given below in an array. All values are showing in generated label
but Adress, Delivery address, company name are not shown. Sample array is given below.
please suggest why we are not able to get all the values. also suggest any possible
related resources to solve this problem.

$fed = new FedExDC('xxxxxxxx','xxxxxxxx');

$ship_data = array(    
4=>    'power act Soln' //STORE_NAME
,5=>    '312 stuart st'     //MODULE_SHIPPING_FEDEX_EXPRESS_ADDRESS_1
,6=>    '180 richfield drive' //  MODULE_SHIPPING_FEDEX_EXPRESS_ADDRESS_2
,7=>    'Boston'              //  MODULE_SHIPPING_FEDEX_EXPRESS_CITY
,8=>    'MA'             //MODULE_SHIPPING_FEDEX_EXPRESS_STATE
,9=>    '02134'         //MODULE_SHIPPING_FEDEX_EXPRESS_POSTAL
,11=>  'Power act'               //delivery_company
,12=>   'Jay Powers'            // recipient's contact name
,13=>   '183 richfield drive'    //delivery_street_address
,14=>   'street'    //delivery_street_address2
,15=>   'Sanjose'       //delivery_city
,16=>   'CA'                // delivery state
,17=>   '92315'          // delivery_postcode
,18=>   '6173335555'     // To phone number
,23=>   '1'             // payment type (1 is bill to sender)
,25 => '1' // reference number
,38 => 'package department' // department name
,50=>   'US'             // delivery country
,57 => 10 // "your package" height dimension
,58 => 10 // "your package" width dimension
,59 => 10 // "your package length dimension
,68 =>  'USD'               //DEFAULT_CURRENCY
,75=>   'LBS'               //MODULE_SHIPPING_FEDEX_EXPRESS_WEIGHT
,116 => 1                           //package_num
,117=>  'US'             // sender's country
,183=>  '6175556985'        //from ph no
,440 =>'Y'                 //home delivery 
,1266 =>'N'                 //saturday delivery   
,1273=> '01'             // packaging_type
,1274=> '01'             //service_type
,1333=> '1'                     // drop off type (1 is regular pickup)
,1368 => 2                  // label type (2 is standard)
,1369 => 1              // printer type (1 is laser)
,1370 => 5                  // label media (5 is plain paper)
,1401=> '1.0'           // total weight
,3001 => 66666              // purchase order number
,3002 => 123456                 // invoice number
);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光清浅 2024-08-23 06:27:58

当我读到你的问题时,运输标签解决方案似乎已经存在并且可以工作,唯一的问题是缺少数据。

您用于打印的软件(使用您发布的代码的某些网络应用程序..?)可能有一个用于运输标签的模板。该模板通常采用报告的形式。看看您是否可以编辑此模板。有人可能删除了包含地址和公司名称的标签

When I read your question it seems like the shippinglabel-solution already exists and works, and that the only issue is that there is data missing.

The software you use for printing (Some webapplication where the code you are posting is used..?) probably has a template for the shipping label. This template is usually in the form of a report. See if you can somehow edit this template. Somebody might have deleted the labels which contain address and companyname.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文