VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Gumx on February 14, 2012, 17:56:14 PM

Title: Remove ask a question about this product!
Post by: Gumx on February 14, 2012, 17:56:14 PM
i've been trying this whole day now and i can't figure it out! how do i remove the "ask a question about this product" link/button or in my case the "stel een vraag over dit artikel" link/butten can someone please help me? i don't know if its relevent but i'm dutch and so i'm using a dutch translated version of vm

Edit: sorry for not mentioning it before... i'm using VM 2.0

[attachment cleanup by admin]
Title: Re: Remove ask a question about this product!
Post by: karuppiah on February 14, 2012, 17:59:55 PM
do u using virtuemart 1 version or virtuemart 2?
Title: Re: Remove ask a question about this product!
Post by: Gumx on February 15, 2012, 14:13:47 PM
oh i'm sorry i'm using 2...
Title: Re: Remove ask a question about this product!
Post by: jenkinhill on February 15, 2012, 18:47:11 PM
You can remove or comment out the relevant code in  joomla_root/components/com_virtuemart/views/productdetails/tmpl/default.php (it is annotated) and use template override - http://forum.virtuemart.net/index.php?topic=90935.0

Or in VM2.0.1H there is a switch for this in configuration.  See http://forum.virtuemart.net/index.php?topic=96945.0
Title: Re: Remove ask a question about this product!
Post by: Gumx on February 18, 2012, 10:02:46 AM
Quote from: jenkinhill on February 15, 2012, 18:47:11 PM
Or in VM2.0.1H there is a switch for this in configuration.  See http://forum.virtuemart.net/index.php?topic=96945.0

Great this worked for me... its a bit english and dutch now but thats oke THANKS!
Title: Re: Remove ask a question about this product!
Post by: earthrat on March 17, 2012, 23:00:57 PM
Quote from: jenkinhill on February 15, 2012, 18:47:11 PM
You can remove or comment out the relevant code in  joomla_root/components/com_virtuemart/views/productdetails/tmpl/default.php (it is annotated) and use template override - http://forum.virtuemart.net/index.php?topic=90935.0

Or in VM2.0.1H there is a switch for this in configuration.  See http://forum.virtuemart.net/index.php?topic=96945.0

I tried to remove the code but it did not work. I am using 2.0.2 but unchecking Show the Ask a question link does not work and it is still there.
Title: Re: Remove ask a question about this product!
Post by: earthrat on March 18, 2012, 20:33:51 PM
My fault, I disabled the Using the Product Scripts check and it killed this ability...
Title: Re: Remove ask a question about this product!
Post by: earthrat on April 10, 2012, 22:53:08 PM
Just updated to 2.0.4 running on Joomla 2.5.4 and the button is back and again I have to ask why there is a parameter to not show this button when it does not work? I have enabled the Script as was the issue last time but it still shows up regardless if "Show the Ask a question link" is checked or not in the Shop Front.