VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: henk3001 on May 23, 2012, 16:27:57 PM

Title: price zero and call for price still buy now button
Post by: henk3001 on May 23, 2012, 16:27:57 PM
Hello, I am using:

Joomla! 2.5.4
Vm 2.06
PHP versie 5.3.10

When prices are 0, and in the configuration the option ask for price is on, the button buy now is still in the shop.

Can someone help me?

Thx
Henk
Title: Re: price zero and call for price still buy now button
Post by: henk3001 on May 23, 2012, 22:06:15 PM
Found it....

in the template the following code was missing:

if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices)) {
Title: Re: price zero and call for price still buy now button
Post by: michellezum on June 14, 2013, 02:01:05 AM
I'm having the same problem!!

I'm not a programer. Where do I put this code? In the template index.php file? Where in the file should I put the code?

Thank you in advance for your help!

Michelle



Title: Re: price zero and call for price still buy now button
Post by: AH on June 14, 2013, 09:56:48 AM
Michelle

If you are not a programmer then I suggest you leave it alone

You will need to create an override in your template for the relevant file.

Is there something stopping you upgrading to the lates version of VM 2.0.21?

Title: Re: price zero and call for price still buy now button
Post by: Milbo on June 14, 2013, 11:36:47 AM
Yes Michellezum, check the date, the post is a year old, I am quite sure the problem is fixed already