MyCashflow includes a setting that allows you to display product prices without tax in the online store. Using the setting requires support in the store's theme, the implementation of which is covered in this article.

If you use MyCashflow's built-in default theme in your online store, you do not need to modify the theme files.

When implementing support for VAT free prices in the admin panel, the setting for VAT free prices is enabled with the desired version, and support for the setting is added to the version's theme.

1/5 Restrictions

The setting for VAT free prices does not work in PDF themes. If you want to display prices as tax-free, you need to add the includetax: false attribute to all price tags used in them.

3/5 Enabling the tax-free price setting

When the tax-free price setting is enabled in the store, you can add theme support for it.

Implement theme support for the setting for VAT free prices by adding the setting to the section of the theme settings. Also ensure that none of the tags displaying theme prices have the includetax attribute in use.

<?xml version="1.0"?>
<Theme>
  ...
  <Features>
    <VatFree supported="true"/>
  </Features>
  ...
</Theme>

4/5 Customizing the B2B version

Once the theme support has been implemented, you can also use the {Helper} tag's case: 'VatFreePricing' attribute to add theme content that is only shown if tax-free prices are in use in the version.

This opens up a wider range of customization options at the code level (if the theme editor does not offer sufficient possibilities).

For example, below a file named helpers/b2b-content.html is retrieved in the theme only in versions with tax-free prices:

{Helper(
    case: 'VatFreePricing'',
    file: 'helpers/b2b-content'
)}

5/5 Updating an old theme to use the tax-free price setting

If your store uses a theme in which tax-free prices have previously been implemented with the includetax: false attribute of price tags, you can migrate to using the new setting by following the instructions above and then removing the attribute from all price tags.