CozyStay Documentation

Setting Up Taxes

October 15, 2023

Enabling Taxes

To access the tax settings screens, they first need to be enabled.

  1. Go to: WooCommerce > Settings > General.
  2. Select the Enable Taxes and Tax Calculations checkbox.
  3. Save changes.

Configuring Tax Options

Once taxes are enabled as described above, the Tax tab will appear.

  1. Go to: WooCommerce > Settings > Tax.
  2. Find the Calculate tax based on option, select “Shop base address“.
  3. Find the Prices entered with tax option, if you select “No, I will enter prices exclusive of tax“, then for the “Display prices in the shop” option and the “Display prices during cart and checkout” option, please select “Excluding tax” for both options. Please keep consistent.
  4. If you select “Yes, I will enter prices inclusive of tax” for the Prices entered with tax option, then for the “Display prices in the shop” option and the “Display prices during cart and checkout” option, please select “Excluding tax” for both options.
  5. If any of the 3 tax display settings (Prices entered with tax, Display prices in the shop, Display prices during cart and checkout) differ, a warning banner will appear to notify the user when the tax display settings are mismatched and in conflict. Clicking on “Use recommended settings” should change all the settings to be the same as the one set for “Prices entered with tax”.
  6. Save changes.

Setting up tax rates

Once WooCommerce taxes are enabled, Rooms and Extra Services on the website will be taxed at the rates set in “Standard rates“.

  1. Go to: WooCommerce > Settings > Tax > Standard rates.
  2. Click the “Insert row” button to get started .
  3. Country Code – 2 digit country code for the rate. Use ISO 3166-1 alpha-2 codes. Leave blank (*) to apply to all countries. 
  4. If you choose to enter a country code, make sure it matches the “Country/State” selected in WooCommerce > Settings > General > Store Address.
  5. Rate % – Enter the tax rate, for example, 10 for a tax rate of 10%.
  6. Tax Name – Name your tax, e.g. VAT, or City Tax.
  7. Priority – Choose a priority for this tax rate. Only 1 matching rate per priority will be used. To define multiple tax rates for a single area you need to specify a different priority per rate.
  8. Compound – If this rate is compound (applied on top of all prior taxes) check this box.
  9. Save changes.

Display tax information on the page

For “Yes, I will enter prices inclusive of tax”

“Yes, I will enter prices inclusive of tax” means that all catalog prices are input using your store’s base tax rate.

For example, the tax rate we set is 10%, called “City Tax”. The room rate is $300 per night and the cleaning fee is $20 per room per night, both prices include the 10% city tax.

The tax calculation for tax-inclusive prices is:

tax_amount = price - ( price / ( ( tax_rate_% / 100 ) + 1 ) )

So when booking a room for one night, the cost is $300 plus $20 for a total of $320, which includes tax of $29.09.

On the single room page, price and tax information looks like this:

Price and tax information in the room booking form. Click the image to zoom in.

And on the Cart page, price and tax information looks like this:

Price and tax information on the Cart page. Click the image to zoom in.
For “No, I will enter prices exclusive of tax”

“No, I will enter prices exclusive of tax” would mean that your catalog prices need to be tax exclusive.

The tax calculation for tax-exclusive prices is:

tax_amount = price * ( tax_rate_% / 100 )

Using the example from above, the room rate is $300 per night and the cleaning fee is $20 per room per night. So when booking a room for one night, the cost is $300 plus $20 for a total of $320. A tax of 10% would be applied on top of this during checkout making the amount payable $352.

On the single room page, price and tax information looks like this:

Price and tax information in the room booking form. Click the image to zoom in.

And on the Cart page, price and tax information looks like this:

Price and tax information on the Cart page. Click the image to zoom in.

More details in WooCommerce’s Documentation

This tutorial only introduces the tax settings related to the CozyStay theme’s built-in room booking related functions.

There are many other tax settings provided by WooCommerce. If you are interested, please check this documentation: Setting up taxes in WooCommerce.

Close
Close