Jump to content

Smarty Tags

Kevin D

Recommended Posts

I want to make changes to the generated invoice, to make it localised for Australian GST

Is there a list of Smarty Tags that are used by CubeCart?

The main changes that needs to be done is the words "Tax Invoice" needs to be in the header, and VAT registration number should be ABN number.

Thanks in advance.

Link to comment
Share on other sites

Generally, CubeCart gives the entire language pack to Smarty.

So, if you look in the file /language/definitions.xml, you will see a series of <groups>, and within each group, a series of <strings>.

To have Smarty show a certain phrase, the Smarty variable would be:


For examples:
{$LANG.settings.tax_vat_number} = VAT Registration Number
{$LANG.settings.tax_number} = VAT Registration Number
{$LANG.basket.total_tax} = Total Tax

I did not find the phrase "Tax Invoice".

To change 'tax_number', in admin, Languages, click on the language you want to change. On the next page, select Settings from the drop-down selector.

When the list of phrases appears, scroll to 'tax_number' and click on the key words. This enables the text entry field for editing. Changed phrases are saved to the database.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...