MyCashflow includes a setting that allows you to display product prices without tax in the online store. The use of the setting requires that it is supported in the store's theme, which is discussed in this article.
If you are using MyCashflow's internal default theme in the online store, you do not need to modify the theme files.
When implementing support for tax-free prices, the setting for tax-free prices is enabled in the admin panel for the desired version, and support for using the setting is added to the version's theme.
1/5 Restrictions
Setting tax-free prices does not work in PDF themes. If you want to display the prices without tax, you need to add the includetax: false
attribute to all the price tags used in PDF themes.
2/5 Enabling tax-free prices
Displaying tax-free prices in the store works with the version-specific Show prices without VAT setting, which you can find in the store's admin panel by opening the version for editing on the admin panel's page.
Refer to the user manual for detailed instructions on enabling the setting.
3/5 Enabling the tax-free price theme setting
When the setting for tax-free prices is enabled in the online store, you can add support for it in the online store's theme.
Implement theme support for tax-free pricing by adding the <VatFree supported="true"/>
setting to the <Settings>
section in the theme settings. Also make sure that none of the tags showing the theme prices are using the includetax
attribute.
<?xml version="1.0"?>
<Theme>
...
<Features>
<VatFree supported="true"/>
</Features>
...
</Theme>
Also read instructions for using theme settings, if necessary.
4/5 Customizing the reseller version
When theme support is implemented, you can also use the {Helper}
tag's case: 'VatFreePricing'
attribute to add content to the theme that is only visible if the version has tax-free pricing enabled.
This allows for more extensive customization of reseller versions at the code level (if the theme editor options provided are not sufficient).
For example, the following includes a file named helpers/b2b-content.html only for tax-free versions:
{Helper(
case: 'VatFreePricing'',
file: 'helpers/b2b-content'
)}
5/5 Updating an old theme to use the tax-free setting
If the online store uses a theme where tax-free prices have previously been implemented using the price tags' includetax: false
attribute, you can switch to using the new setting by following the instructions given above and then removing the attribute from all price tags.