Back to Phoca Cart project (class list)

Class PhocacartShipping - list of methods

Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocacart/shipping/shipping.php
Project: Phoca Cart

Method Summary

public
()

Show source code of this method: __construct Source Code

public
(mixed $type = array(0, 1))

Show source code of this method: setType Source Code

public
(mixed $amountNetto, mixed $amountBrutto, mixed $quantity, mixed $country, mixed $region, mixed $zip, mixed $weight, mixed $length, mixed $width, mixed $height, mixed $id = 0, mixed $selected = 0)

Show source code of this method: getPossibleShippingMethods Source Code

public bool|array
(mixed $id = 0, mixed $total = array())

Check current shipping method Shipping method must be selected
Parameters
  • \number $id
Returns
  • bool|array
Show source code of this method: checkAndGetShippingMethod Source Code

public bool|array
(mixed $selectedShippingId = 0, mixed $selected = 0, mixed $total = array())

Check current shipping method or all methods they meet criteria to be selected
Parameters
  • \number $selectedShippingId
  • \number $selected
Returns
  • bool|array
Show source code of this method: checkAndGetShippingMethods Source Code

public static
(mixed $dataAddress)

Show source code of this method: getUserCountryShipping Source Code

public static
(mixed $dataAddress)

Show source code of this method: getUserRegionShipping Source Code

public static
(mixed $dataAddress)

Show source code of this method: getUserZipShipping Source Code

public
(mixed $shippingId)

Show source code of this method: getShippingMethod Source Code

public static
(mixed $paymentId, mixed $select = 0, mixed $table = 'payment')

Show source code of this method: getShippingMethods Source Code

public
(mixed $shippingId, mixed $userId)

Store shipping id inside checkout - if enabled in parameters and there is only one valid shipping, it can be directly stored But then the cart needs to be reloaded to store the costs of the shipping and make ready for payment (payment gets info about shipping because of rules)
Parameters
  • $shippingId
  • $userId
Show source code of this method: storeShippingRegistered Source Code

public static
(mixed $name, mixed $id, mixed $activeArray, mixed $javascript = NULL, mixed $order = 'id', mixed $type = array())

Show source code of this method: getAllShippingMethodsSelectBox Source Code

public static
(mixed $order = 'id', mixed $type = array())

Show source code of this method: getAllShippingMethods Source Code

public static
(mixed $shippingsArray, mixed $id, mixed $table = 'payment')

Show source code of this method: storeShippingMethods Source Code

public static
(mixed $type = 0)

Show source code of this method: removeShipping Source Code

public static
(mixed $options = array())

Show source code of this method: isShippingNotUsed Source Code

public static
(mixed $namePlugin = '')

Show source code of this method: getShippingPluginMethods Source Code

public static
(mixed $id)

Show source code of this method: isShippingMethodActive Source Code

public static
(mixed $id)

Show source code of this method: getInfoDescriptionById Source Code

protected mixed
(mixed $methodName, mixed $return = 3, mixed $onlyPublished = false)

Parameters
  • $methodName
  • int $return 1 ... Association list, 2 ... Object list, 3 ... ID (be aware when setting 3, only first ID will be returned even more methods with the same method name can exist)
  • bool $onlyPublished
Returns
  • mixed
Show source code of this method: getShippingMethodIdByMethodName Source Code