DirectOne Customisable FieldsAdding GST Based on the countryMany 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: 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. |