16 lines
405 B
PHP
16 lines
405 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
|
||
|
|
namespace Hura8\Interfaces;
|
||
|
|
|
||
|
|
|
||
|
|
interface iShippingCost extends iShippingProvider
|
||
|
|
{
|
||
|
|
// get only options for a cart
|
||
|
|
public function getShippingOptionsForCart(array $cart_item_list, $province, $district, $ward=0) : array;
|
||
|
|
|
||
|
|
// return array [shipping_fee, cod_fee]
|
||
|
|
public function calculateShippingCostForOrder($selected_shipping_option, array $shipping_address, array $order_info) ;
|
||
|
|
|
||
|
|
}
|