Function Hook_ecommerce_tax_taxcloud->service_priority
Definitions
sources/hooks/systems/ecommerce_tax/taxcloud.php
- Check at which priority this tax service should be considered given a product to purchase.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $parts | array | No | No | required parameter | N/A | N/A | The item / details pair |
Returns
- The priority for this service (see TAX_SERVICE_PRIORITY_*) (0: do not use for this set of products)
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check at which priority this tax service should be considered given a product to purchase.
*
* @param array $parts The item / details pair
* @return integer The priority for this service (see TAX_SERVICE_PRIORITY_*) (0: do not use for this set of products)
*/
public function service_priority(array $parts) : int
* Check at which priority this tax service should be considered given a product to purchase.
*
* @param array $parts The item / details pair
* @return integer The priority for this service (see TAX_SERVICE_PRIORITY_*) (0: do not use for this set of products)
*/
public function service_priority(array $parts) : int

