Метод |
Описание |
|
add_method ( integer $zone_id, string $type, integer $order ) : integer |
Add a shipping method to a zone. |
|
create ( &$zone ) |
Method to create a new shipping zone. |
|
delete ( &$zone, array $args = [] ) : boolean |
Deletes a shipping zone from the database. |
|
delete_method ( integer $instance_id ) |
Delete a method instance. |
|
get_method ( $instance_id ) : object |
Get a shipping zone method instance. |
|
get_method_count ( $zone_id ) : integer |
Get count of methods for a zone. |
|
get_methods ( integer $zone_id, boolean $enabled_only ) : array |
Get a list of shipping methods for a specific zone. |
|
get_zone_id_by_instance_id ( $id ) : integer |
Return a zone ID from an instance ID. |
|
get_zone_id_from_package ( object $package ) : integer |
Find a matching zone ID for a given package. |
|
get_zones ( ) : array |
Return an ordered list of zones. |
|
read ( &$zone ) |
Method to read a shipping zone from the database. |
|
update ( &$zone ) |
Update zone in the database. |
|