php fedex set signature Label ADULT

╄→гoц情女王★ 提交于 2019-12-25 06:39:22

问题


I am working on wordpress site and using woocommerce extension http://www.woothemes.com/products/fedex-shipping-module/

I am Passing the values Signature value to adults. But it is not working

Please correct me where i am wrong

$request['RequestedShipment']['RateRequestTypes'] = $this->request_type;
$request['RequestedShipment']['PackageDetail'] = 'INDIVIDUAL_PACKAGES';
$request['RequestedShipment']['SpecialServicesRequested'][] = array(
    'SpecialServiceTypes' => 'SIGNATURE_OPTION',
    'SignatureOptionDetail' => array(
            'OptionType' => 'ADULT'
    )
);

`

Do i need to change something from the from the RateService_v13.wsdl file

Please suggest

Thanks


回答1:


I resolved this issue

For further user having the same issue can resolve this by below code

$item['SpecialServicesRequested'] = array(
                    'SpecialServiceTypes' => 'SIGNATURE_OPTION',
                    'SignatureOptionDetail' => array(
                        'OptionType' => 'ADULT'
                         )
                    ); 
$request['RequestedShipment']['RequestedPackageLineItems'][] = $item;


来源:https://stackoverflow.com/questions/23311732/php-fedex-set-signature-label-adult

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!