VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: funkyfela on October 29, 2020, 15:41:13 PM

Title: Hide Tax Value
Post by: funkyfela on October 29, 2020, 15:41:13 PM
Hello,
I want to hide the Tax value on VM. On the checkout page, the name of my tax rule is shown and underneath the value is shown and i dont want it to show. When i hide it from the configuration->Pricing, It disappears from the table but again it shows on the table below after the total is shown with the label: Tax includes: Tax: 2.5% and amount. I want it totally gone.
How can i achieve that.

Thanks

Title: Re: Hide Tax Value
Post by: GJC Web Design on October 29, 2020, 18:12:10 PM
adapt your  \templates\your_template\html\com_virtuemart\cart\default_pricelist.php to suit your requirements
Title: Re: Hide Tax Value
Post by: funkyfela on October 29, 2020, 21:09:00 PM
Thanks but there is no such folder on my directory
\templates\your_template\html\com_virtuemart\cart\default_pricelist.php

what i have is
\templates\your_template\html\com_virtuemart\category\default.php
\templates\your_template\html\com_virtuemart\productdetails\default.php
\templates\your_template\html\com_virtuemart\sublayout\addtocartbtn.php
\templates\your_template\html\com_virtuemart\sublayout\categories.php
\templates\your_template\html\com_virtuemart\sublayout\products.php
\templates\your_template\html\com_virtuemart\sublayout\rating.php
Title: Re: Hide Tax Value
Post by: pinochico on October 29, 2020, 21:19:23 PM
To GJC:

Thanks :)

To funkyfela:

1. First You must learn how function Joomla and MVC and override - find on Joomla doc
2. Copy this file from virtuemart to your template and then edit

Title: Re: Hide Tax Value
Post by: funkyfela on October 30, 2020, 10:41:26 AM
To pinochico:

It seems you do not understand what i mean? I cant find the folder: cart\default_pricelist.php
at least i can read and if i see the folder i will know that its the folder/file before overriding.
i have searched all over, maybe my template has a different name for it
Title: Re: Hide Tax Value
Post by: Jörgen on October 30, 2020, 11:03:37 AM
@funkyfela

It is actually You that do not understand the override mechanism in Joomla. Not all files and folders have to be overridden in a custom template.
If the file is not there You will have to create an override for the cart in Your_template. See Joomla documentation if GJC directions are not enough for You to understand. GJC has given a correct file path for You to use.

Jörgen @ Kreativ Fotografi
Title: Re: Hide Tax Value
Post by: jenkinhill on October 30, 2020, 11:09:52 AM
If you don't already have an override for that file then you will find the default (original file) in components/com_virtuemart/views/cart/tmpl/

Download default_pricelist.php and edit it to your requirements. Then create the directory \templates\your_template\html\com_virtuemart\cart\ and upload your edited file. This will then override the default template and will not be overwritten when VirtueMart is upgraded.

Edit:  Jörgen just beat me!
Title: Re: Hide Tax Value
Post by: funkyfela on October 31, 2020, 07:57:49 AM
Thank you all for your contributions.
@jenkinhill your directive was much easier for me to understand. I have done the override. I guess i will need to study more on the override.

Thanks all