Function Hook_ecommerce_tax_taxjar->get_tax_using_tax_codes

Definitions

sources/hooks/systems/ecommerce_tax/taxjar.php

  • Find the tax for a number of items being sold together.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$item_details array required parameter N/A N/A A list of pairs: shopping-cart/order style row (with at least 'quantity'), product details (with at least 'tax_code' and 'price'). This is returned by reference as a list of tuples, (tax, tax_derivation, tax_tracking) gets appended.
$products array required parameter N/A N/A The products to process with this tax service
$field_name_prefix string required parameter N/A N/A Field name prefix
$shipping_cost REAL required parameter N/A N/A The shipping cost
$member_id MEMBER required parameter N/A N/A The member this is for
$street_address SHORT_TEXT required parameter N/A N/A The street address of the member
$city ID_TEXT required parameter N/A N/A The city of the member
$state ID_TEXT required parameter N/A N/A The state of the member
$country ID_TEXT required parameter N/A N/A The country code of the member
$post_code ID_TEXT required parameter N/A N/A The postal code of the member

Return

  • A tuple: The shipping tax derivation, shipping tax due (including shipping tax), shipping tax tracking ID, and any items that should instead be processed as free items (null: this tax service does not support the items or address requested)
  • Type: ?array
  • Set: N/A
  • Range: N/A