We are OneCommerce - an eCommerce Solution Platform.
For your problem, you can try follow these steps to add the right code:
Go to your Store → Themes → Click “Actions” → “Edit Code”
Look for the file named product-template.liquid in the file list. If you can’t find it, try searching for a file named product.liquid or product-page.liquid.
Add the following code to the product-template.liquid file:
Note that this code should be added to the appropriate place in the product-template.liquid file, where the product price is being displayed.
Hope this is work for you. Please don’t be hesitate to contact us if you need any further support.
Please hit the Like button or mark it as Accepted Solution if this is useful for you, it means a lot to us.
Thank you for reaching out about adding prices with tax to your product page.
I would like to suggest a solution that might be even more beneficial for you. We’ve developed an app called T Selector that can help with this issue.
Instead of just adding a new line under the existing price, our app adds a button where customers can conveniently switch between seeing prices including or excluding VAT in your store.
There are two main benefits to using our app:
Cleaner and more personalized experience: By showing the correct price for each customer, your store will look cleaner and more professional.
Compliance with Google Merchant Center: Using our app will ensure that you won’t get banned from Google Merchant Center. Google has strict guidelines on pricing, and showing multiple prices per product can lead to account suspension. With our app, you won’t have to worry about this issue, even if you have discounted prices which will show more than the maximum 2 prices.