Function __global->get_tax_using_tax_codes

Definitions

sources/ecommerce_tax.php

  • Find the tax for a number of items being sold together.
  • 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.
$field_name_prefix string Blank (empty string) N/A N/A Field name prefix. Pass as blank for cart items or 'p_' for order items.
$shipping_cost REAL 0 N/A N/A The shipping cost
$member_id ?MEMBER Null N/A N/A The member this is for (null: current member)

Return

  • A tuple: The shipping tax derivation, shipping tax due (including shipping tax), shipping tax tracking ID
  • Type: array
  • Set: N/A
  • Range: N/A