VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: JediG on September 20, 2013, 07:34:43 AM

Title: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: JediG on September 20, 2013, 07:34:43 AM
Joomla! 2.5.14
VM 2.0.22c
default_addtocart.php from VM 2.0.22c as it is recommended in http://forum.virtuemart.net/index.php?topic=118482.msg402305#msg402305

Now, when I press "add to cart", I have a Fatal error:
Call to undefined method plgVmPaymentStandard::convert_condition_amount() in /home/modlife/saltaim.ru/docs/plugins/vmpayment/standard/standard.php on line 208

on www.saltaim.ru
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: alatak on September 20, 2013, 08:10:35 AM
Hello

Check that you have updated both virtuemart and virtuemart aio
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: JediG on September 20, 2013, 11:49:57 AM
Thanks!

But now when I press "Add to Cart" redirect to a Cart, but the Cart is empty.

Quote from: alatak on September 20, 2013, 08:10:35 AM
Hello

Check that you have updated both virtuemart and virtuemart aio
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: Maxim Pishnyak on September 20, 2013, 12:17:47 PM
Turn off jquery.js in mod_sj_vm_categories_ii
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: JediG on September 20, 2013, 14:23:16 PM
Wow! Thanks!
I already forgot that added this module which can too can have impact.

Quote from: Maxim Pishnyak on September 20, 2013, 12:17:47 PM
Turn off jquery.js in mod_sj_vm_categories_ii

Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: Maxim Pishnyak on September 21, 2013, 13:07:55 PM
You're welcome!
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: Guillermo_vm on October 22, 2013, 05:39:09 AM
Quote from: Maxim Pishnyak on September 20, 2013, 12:17:47 PM
Turn off jquery.js in mod_sj_vm_categories_ii

Hi, i've been having trouble with the same issue, and i cant find this module " mod_sj_vm_categories_ii" where i should turn it off , i would appreciate some help.
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: Limonbay on October 29, 2013, 23:21:51 PM
I have the same issue. How can that module be turned off? Thanks!
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: jenkinhill on October 30, 2013, 10:41:54 AM
mod_sj_vm_categories_ii  is this extension:  http://forum.virtuemart.net/index.php?topic=118317.0
Title: Re: Add To Cart Fatal error: Call to undefined method plgVmPaymentStandard::convert_
Post by: Limonbay on October 30, 2013, 19:24:58 PM
After some research I solved by the hint given by Alatak:

Check that you have updated both virtuemart and virtuemart aio

I have updated it to 2.0.24 using de AIO, but later I found that VM recommends download the new version and installing in the Extension Manager in Joomla. It seems that all the VM components were 2.0.24 but VM core was 2.0.22. After doing it as suggested everything went back to normal.

Now, the new problem with 2.0.24 is that the stock of variants is not controlled properly. If you have 2 blue sweaters and add 3, the cart will only show 2 (which is fine), but if you press Add to cart again, it will add another 2. I guess that with new versions come new problems...