Class Eabi_DpdEE_Block_Order_Courier
Renders HTML block which allows to call DPD courier to pick up shipment.
Template is located at eabi_dpdee/order/courier.phtml in adminhtml theme folder
Information that can be sent to courier:
- Merchant can pick suitable date from available list when courier should come
- Merchant can pick suitable time-range from available list for the selected date
- Merchant can specify how many envelopes, parcels, pallets should be picked up
- Merchant can leave comment for the courier
- By default one checked order equals one parcel
- Mage_Core_Block_Template
- Eabi_DpdEE_Block_Order_Courier
public
|
|
public
string
|
|
public
string
|
#
getAvailableDates( )
Fetches list of available pickup dates from DPD server and returns it as HTML select string |
public
string
|
#
getAvailabeTimes( )
Fetches available pickup times from DPD server and returns it as json encoded object Format: array( '2013-12-24' => 'html select menu with available time ranges', '2013-12-25' => 'html select menu with available time ranges', .... ); |
protected
Zend_Date
|
#
_normalizeTime( string $input )
Normalizes DPD times to Zend_Date objects. For example 930 should be displayed as 09:30 and 9 should be displayed as 09:00 |
protected
string
|
#
_getTimeSelectMenu( Zend_Date $timeFrom, Zend_Date $timeTo, Zend_Date $timeWindow )
Takes earliest possible time, latest possible time, minimum allowed timewindow and renders it into one select menu with pickup time ranges. All arguments have to be within same date. Pickup time ranges are always displayed within narrowest possible timewindow. |
protected
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
|
protected
string
|
$_dateFormat | 'yyyy-MM-dd' |
|
protected
string
|
$_timeFormat | 'HHmm' |
|
protected
string
|
$_timeFormatNice | 'HH:mm' |
|
protected
mixed
|
$_availableDates |
|
|
protected
mixed
|
$_apiResult |
|