Methods summary
protected
|
|
public
string
|
#
getSettingsHTML( array $params = array() )
Получение массива элементов настроек
Parameters
- $params
array [string]mixed $params
Returns
string
Overrides
|
protected
|
|
protected
array
|
|
public
|
#
calculate( )
Calculate the shipping cost/costs
Calculate the shipping cost/costs
|
public
string
|
#
tracking( mixed $tracking_id = null )
Returns shipment current tracking info
Returns shipment current tracking info
Parameters
- $tracking_id
mixed $tracking_id
Returns
string Tracking information (HTML)
Overrides
|
private
|
#
executeQuery( mixed $name, mixed $params, mixed $catch = true )
|
private
uspsQuery |string
|
#
getQuery( string $name, array|boolean $params )
Parameters
- $name
string $name
- $params
array|boolean $params if array - create instance of query with params, if true return class
name just
Returns
Throws
Internal
param bool $static
|
public
|
|
public
array
|
#
requestedAddressFields( )
Array of required address fields.
Array of required address fields.
Returns
array В качестве ключа должно быть название поля
[country|region|city|street|zip], в качестве значения
массив с необязательными параметрами - required
=> bool переопределяет глобальную настройку
- hidden => bool делает поле скрытым - value => string
определяет значение поля - cost => bool
требуется для расчета доставки
Overrides
|
public
array
|
#
allowedAddress( )
List of allowed address paterns
Returns
array
Overrides
|
public
string
|
|
public
string
|
|
protected
|
|
public
array[string]array
|
#
getPrintForms( waOrder $order = null )
Parameters
Returns
array[string]array
array[string]['name']string название печатной формы
array[string]['description']string описание печатной формы
Overrides
|
public
|
#
displayPrintForm( string $id, waOrder $order, array $params = array() )
Displays printable form content (HTML) by id
Parameters
- $id
string $id
- $order
waOrder
$order
- $params
array $params
Overrides
|