This Function Has Been Available Since:
(AFCommerce v 2.1, Functions v 1.1)
Determines tax cost based on what rules have been set in the administration area.
Description
afc_get_tax_and_set_tax_variables ()
This function handles all tax class and tax zone rules for your online store. This function will figure out which tax class and rules to apply to each product in the current customer's shopping cart basket, and set all the tax variables your store will need to process the order correctly. This page will be updated in the future with the information that can be found inside the tax.php file, but for now, you can either understand that all the tax related variables you need will be automatically set after this function is called, or you can read through the comments in that file to understand exactly which variables are set and how.
Parameters
There are no parameters for this function.
Return Values
This function has no return value. Instead it sets many tax related variables from inside this function into whatever script you call it in. Using the "global" php directive, these variables become set inside this function and become available in your scripts immediately after this function is called. This function is open source and well commented, so you can read the file it's declared in (functions/tax.php) for more information.
Open Source: YesPaul's Examples There are currently no examples for this function.
|
Back to Functions List
|