VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: roooxanne on October 01, 2018, 18:22:52 PM

Title: Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()
Post by: roooxanne on October 01, 2018, 18:22:52 PM
www.4body.it is running on a 3.812 with VM 3.4.0 and PHP 7.2.
After updating platform, components and plugins the website went down with this error:

Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()

I've seen this topic --> http://forum.virtuemart.net/index.php?topic=140960.msg496209#msg496209
but the solution doesn't work for me (db tables ok) :(

I need some help please...

Thanks in advance,
Max
Title: Re: Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()
Post by: GJC Web Design on October 01, 2018, 22:04:40 PM
and this in your template?


$price = VirtueMartModelCustomfields::_getCustomPrice($productCustom->customfield_price, $currency, $calculator);

and is now

$price = VirtueMartModelCustomfields::renderCustomfieldPrice($productCustom, $product, $calculator);

have u tried with Beez or protostar template?
Title: Re: Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()
Post by: MalcolmTrotter on October 05, 2018, 14:40:55 PM
Hi
Where will I find this code
Thanks
Malcolm
Title: Re: Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()
Post by: MalcolmTrotter on October 05, 2018, 15:14:25 PM
Think I have found it but it is as it should be!
Title: Re: Call to undefined method VirtueMartModelCustomfields::_getCustomPrice()
Post by: MalcolmTrotter on October 05, 2018, 15:20:53 PM
Sorted