VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: iwanna on June 02, 2014, 10:35:29 AM

Title: hide prices from product description but not from the cart
Post by: iwanna on June 02, 2014, 10:35:29 AM
Hello,
Does anyone knows how we could or which file/code we have to edit for hiding the product details for all prices except (Sales Price & Base price with TAX), and this not to affect the prices for the cart details ?

If we go in VirueMart's settings:
VirtueMart-> Configuration -> Configuration and Pricing..
When we disable the prices from there, they also dissapear from the cart too.
Title: Re: hide prices from product description but not from the cart
Post by: skhn123 on June 02, 2014, 15:26:21 PM
maybe you should look at "com_virtuemart\views\productdetails\tmpl\default_showprices.php

and comment out the code for prices you want to hide.

Note: create override for this first.
Title: Re: hide prices from product description but not from the cart
Post by: GJC Web Design on June 02, 2014, 15:26:36 PM
over ride
components/com_virtuemart/views/productdetails/tmpl/default_showprices.php

&

components/com_virtuemart/views/category/tmpl/default.php
Title: Re: hide prices from product description but not from the cart
Post by: skhn123 on June 04, 2014, 14:08:00 PM
yeah that one too.
Title: Re: hide prices from product description but not from the cart
Post by: iwanna on June 05, 2014, 10:47:04 AM
Hello again,

I did override both of the files putting // in every echo i didn't want it to show..
but still nothing..  and the last thing I tried is to delete all the code from both files that said Product prices.
But nothing changed. nowhere.

And also, I changed the original files and nothing   :-\..

Any help again ?  :)

Title: Re: hide prices from product description but not from the cart
Post by: jenkinhill on June 05, 2014, 12:15:59 PM
So are you already using overrides? In a commercial template maybe?
Title: Re: hide prices from product description but not from the cart
Post by: iwanna on June 06, 2014, 13:46:02 PM
Quote from: jenkinhill on June 05, 2014, 12:15:59 PM
So are you already using overrides? In a commercial template maybe?

Yes, I use a commercial template.

That's why I can't change the code I want ?  :-\
Title: Re: hide prices from product description but not from the cart
Post by: GJC Web Design on June 06, 2014, 14:09:50 PM
then change them in the over rides......
Title: Re: hide prices from product description but not from the cart
Post by: iwanna on June 10, 2014, 09:07:44 AM
I did over ride those 2 files, but nothing changed.

components/com_virtuemart/views/productdetails/tmpl/default_showprices.php
&
components/com_virtuemart/views/category/tmpl/default.php

Or you didn't mean those ?
Title: Re: hide prices from product description but not from the cart
Post by: skhn123 on June 10, 2014, 10:18:31 AM
okey. just to be sure add some text lines somewhere in both files so it will display in front-end and if it happens then your override is working. second step would be to check your codes agian.
Title: Re: hide prices from product description but not from the cart
Post by: jenkinhill on June 10, 2014, 10:28:27 AM
But it is a commercial template so possibly already uses overrides. In which case the override files themselves should be edited. Usually they are in [yourjoomlatemplate]/html/com_virtuemart/
Title: Re: hide prices from product description but not from the cart
Post by: iwanna on June 10, 2014, 11:33:25 AM
Quote from: skhn123 on June 10, 2014, 10:18:31 AM
okey. just to be sure add some text lines somewhere in both files so it will display in front-end and if it happens then your override is working. second step would be to check your codes agian.

I did that and nothing..  :-\
So override doesn't work..

The theme I use is by yagendoo if that helps!  :-\
Title: Re: hide prices from product description but not from the cart
Post by: iwanna on June 10, 2014, 11:37:12 AM
Quote from: jenkinhill on June 10, 2014, 10:28:27 AM
But it is a commercial template so possibly already uses overrides. In which case the override files themselves should be edited. Usually they are in [yourjoomlatemplate]/html/com_virtuemart/

There is nothing there  :-\..
Only the files that I add.
Title: Re: hide prices from product description but not from the cart
Post by: jenkinhill on June 10, 2014, 12:53:01 PM
Unfortunately some commercial templates have their overrides in a different directory, so you may need to look though the code or check with the template supplier.

Pre-existing overrides is the usual reason why edits do not appear (assuming they are done correctly).
Title: Re: hide prices from product description but not from the cart
Post by: iwanna on June 10, 2014, 14:40:14 PM
Quote from: jenkinhill on June 10, 2014, 12:53:01 PM
Unfortunately some commercial templates have their overrides in a different directory, so you may need to look though the code or check with the template supplier.

Pre-existing overrides is the usual reason why edits do not appear (assuming they are done correctly).

thank you for your quick response.. I will have to search deeper then  :)