Class Eabi_DpdEE_Helper_Data
Helper class for DPD shipping method related actions
-
Mage_Core_Helper_Abstract
-
Eabi_DpdEE_Helper_Data
Methods summary
public
Eabi_DpdEE_Model_Api
|
#
getApi( string $storeId = null, string $code = 'eabidpdee' )
Gets cached DPD API instance for specified Magento store id and shipping
method code.
Gets cached DPD API instance for specified Magento store id and shipping
method code.
Parameters
- $storeId
string $storeId store id to fetch the api for
- $code
string $code shipping method code to fetch the api for
Returns
|
public
|
#
isShippingMethodApplicable( Mage_Sales_Model_Order $order )
Returns true if shipping method used in the order belongs to DPD carrier
Returns true if shipping method used in the order belongs to DPD carrier
Parameters
- $order
Mage_Sales_Model_Order $order
|
public
string
|
#
getOpeningsDescriptionFromTerminal( string $dpdOpeningDescription, Zend_Locale $locale = null )
Converts DPD op=pudo Opening Times into human readable format.
- Input:
1:11:0:16:0,2:7:30:20:0,3:7:30:20:0,4:7:30:20:0,5:7:30:20:0,6:7:30:20:0,7:8:0:16:0
- Result: (E-R 7:30-20; L 8-16; P 11-16)
Converts DPD op=pudo Opening Times into human readable format.
- Input:
1:11:0:16:0,2:7:30:20:0,3:7:30:20:0,4:7:30:20:0,5:7:30:20:0,6:7:30:20:0,7:8:0:16:0
- Result: (E-R 7:30-20; L 8-16; P 11-16)
Parameters
- $dpdOpeningDescription
string $dpdOpeningDescription DPD Openings description
- $locale
Zend_Locale $locale Locale which is used to print out weekday names
Returns
string
|
Properties summary
protected
array
|
$_apis
|
array() |
|