Class eabi_dpd_courier
Represents DPD courier shipping method.
Extra order data is stored under specialized order comment
Can perform following business actions:
- Calculate shipping price based on country and weight
- Send information about shipment data to DPD server.
- Call courier to pick up the shipment that was ordered using this carrier.
- Module
-
eabi_dpd_parcelstore
-
eabi_dpd_courier
protected
|
#
_construct( )
Initiates module. Is used because PrestaShop requires special Module initiation which is done in parent class |
public
array
|
#
getRequestForAutoSendData( OrderCore $order, AddressCore $address, array $selectedOfficeId, boolean $forceCod = false )
Prepares op=order request to be sent via DPD API. |
protected
boolean
|
#
_install( )
Performs following actions:
|
protected
boolean
|
#
_uninstall( )
Performs following actions:
|
public
string
|
#
hookPaymentConfirm( array & $params )
Automatic data sending is executed at the moment, when order is marked as Paid. |
public
|
|
public
|
|
public
string
|
#
hookDisplayFooter( )
For adding HOOK_EXTRACARRIER callout, when original callout did not occur when it had to. PrestaShop does not call extracarrier when for example address is not entered yet |
public
string
|
#
hookExtraCarrier( array $params )
This hook is called right after PrestaShop own carriers are rendered. Returns HTML, which:
Current PrestaShops
Checks following and hides if:
|
public
string
|
|
public
mixed
|
#
getConfigData( string $param )
Fetches configuration for this instance and if not found, then attempts to look to parent instance. |
protected
string
|
|
public
|
#
__getPostOffices( type $code, type & $groupId = null, type & $officeId = null, null & $addressId = null )
We need this to override addressId, so always one terminal would be available |
public
string
|
#
displayInfoByCart( integer $cart_id )
This function is called when store administrator is viewing the order. Nothing |
protected
|
|
public
null
|
|
public
integer
|
|
public
integer
|
|
public
string
|
#
getTerminalTitle( string $terminal )
Returns parcel terminal name when short names are enabled. Returns parcel terminal name with address, telephone, opening times when short names are disabled. |
public
string
|
#
getAdminTerminalTitle( array $terminal )
Returns parcel terminal name when short names are enabled. Returns parcel terminal name with address, telephone, opening times when short names are disabled. |
public
array
|
#
getOfficeList( )
This carrier has no parcel terminal selection feature, so one entry must still be added with shipping method title defined for this carrier. |
public
boolean
|
CONST_PREFIX,
NAME,
ORDER_COMMENT_START_PREFIX,
TRACKING_URL
|
protected
string
|
$_parent_code |
|
#
Since it is inherited from DPD parcelstore, then parent shippig method is stored here. |
public
|
$dataSendExecutor |
|
|
protected
boolean
|
$_carrierDisplayed | false |
#
Evaluates to true, if current shipment method has already been rendered |
$_const_prefix,
$_footerCalled,
$_helperModuleInstance
|