Overview

Namespaces

  • None
  • PHP

Classes

  • Eabi_DpdEE_Block_Adminhtml_Config_Form_Field_Country
  • Eabi_DpdEE_Block_Info_Payment
  • Eabi_DpdEE_Block_Invoice
  • Eabi_DpdEE_Block_Order_Courier
  • Eabi_DpdEE_Helper_Data
  • Eabi_DpdEE_Model_Api
  • Eabi_DpdEE_Model_Button_Courier
  • Eabi_DpdEE_Model_Config
  • Eabi_DpdEE_Model_Flat
  • Eabi_DpdEE_Model_Observer
  • Eabi_DpdEE_Model_Payment_Processor
  • Eabi_DpdEE_Model_Post
  • Eabi_DpdEE_Model_Source_Label_Position
  • Eabi_DpdEE_Model_Source_Service
  • Eabi_Livehandler_Adminhtml_LivehandlerController
  • Eabi_Livehandler_Adminhtml_RemoveController
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Button
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Livehandler_Block_Email
  • Eabi_LiveHandler_Block_Footer
  • Eabi_Livehandler_Helper_Data
  • Eabi_Livehandler_Helper_Keypair
  • Eabi_Livehandler_IndexController
  • Eabi_Livehandler_Model_Abstract
  • Eabi_Livehandler_Model_Action_Abstract
  • Eabi_Livehandler_Model_Action_Postoffice_Print
  • Eabi_Livehandler_Model_Action_Postoffice_Send
  • Eabi_Livehandler_Model_Adminhtml_Gridmanager
  • Eabi_Livehandler_Model_Directory_Collection
  • Eabi_Livehandler_Model_Entry
  • Eabi_Livehandler_Model_File_Object
  • Eabi_Livehandler_Model_Mysql4_Entry
  • Eabi_Livehandler_Model_Mysql4_Entry_Collection
  • Eabi_Livehandler_Model_Ordergrid
  • Eabi_Livehandler_Model_System_Config_Backend_Button
  • Eabi_Postoffice_Adminhtml_PostofficeController
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_License
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Postoffice_Block_Config_Rebuildbutton
  • Eabi_Postoffice_Helper_Countrycode
  • Eabi_Postoffice_Helper_Data
  • Eabi_Postoffice_IndexController
  • Eabi_Postoffice_Model_Carrier_Abstract
  • Eabi_Postoffice_Model_Carrier_Result
  • Eabi_Postoffice_Model_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule_Collection
  • Eabi_Postoffice_Model_Mysql4_Office
  • Eabi_Postoffice_Model_Mysql4_Office_Collection
  • Eabi_Postoffice_Model_Observer
  • Eabi_Postoffice_Model_Office
  • Eabi_Postoffice_Model_Orderview
  • Eabi_Postoffice_Model_Source_Sendevent
  • Eabi_Postoffice_Model_Updater
  • Overview
  • Namespace
  • Class
  • Tree

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
Extended by Eabi_DpdEE_Block_Order_Courier
Author: Matis
Located at Eabi/DpdEE/Block/Order/Courier.php
Methods summary
public
# _construct( )
public string
# getHtmlId( )

Only one block is allowed per page

Only one block is allowed per page

Returns

string
public string
# getAvailableDates( )

Fetches list of available pickup dates from DPD server and returns it as HTML select string

Fetches list of available pickup dates from DPD server and returns it as HTML select string

Returns

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',
     ....
);

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',
     ....
);

Returns

string
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

Normalizes DPD times to Zend_Date objects.

For example 930 should be displayed as 09:30 and 9 should be displayed as 09:00

Parameters

$input
string
$input

Returns

Zend_Date
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.

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.

Parameters

$timeFrom
Zend_Date
$timeFrom earliest time possible
$timeTo
Zend_Date
$timeTo latest time possible
$timeWindow
Zend_Date
$timeWindow minimal allowed time between start and end time.

Returns

string
HTML select menu
protected
# _getDateInputLabel( mixed $label, mixed $value )
public string
# getCode( )

Returns shipping method code that this courier HTML block is used by.

Returns shipping method code that this courier HTML block is used by.

Returns

string
public string
# getEnvelopeQty( )

Returns default envelope quantity

Returns default envelope quantity

Returns

string
public string
# getParcelQty( )

Returns default parcel quantity

Returns default parcel quantity

Returns

string
public string
# getPalletQty( )

Returns default pallet quantity

Returns default pallet quantity

Returns

string
protected Eabi_DpdEE_Helper_Data
# _getDpdHelper( )

Returns

Eabi_DpdEE_Helper_Data
Properties summary
protected string $_dateFormat 'yyyy-MM-dd'
#
protected string $_timeFormat 'HHmm'
#
protected string $_timeFormatNice 'HH:mm'
#
protected mixed $_availableDates
#
protected mixed $_apiResult
#
DPD Eesti - Pakivedu.ee Shipping module for Magento API documentation generated by ApiGen 2.8.0