DirectOne Customisable Fields

Adding GST Based on the country


Many of the DirectOne fields can be customised 'on the fly' from your order page.
This example shows how you can add or not add GST to the order based on the customer's country.

The field used to achieve this is:
<INPUT TYPE="HIDDEN" NAME="gst_rate" VALUE="">

If the "gst_rate" is left out or set to zero, then GST will not be calculated and no GST information will be displayed. This may be useful when processing international orders.

This example uses a simple JavaScript to set the GST Rate based on the selected country. Same results can be achived using the server-side scripting languages such as ASP or PHP.


Customer Information:

Name:

Other Contact Information:

Country:
Email Address:

Product Description Quantity Price each
Red Socks $10.95
Blue Socks $11.95