VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: surfthespot on June 08, 2012, 04:23:13 AM

Title: Errors with shopping cart variant
Post by: surfthespot on June 08, 2012, 04:23:13 AM
Hi, I am using Virtuemart 2.0.6 w/ Joomla 2.5.4

My website is a photography site. I want to sell prints of my work. I made some cart variants for print sizes and once I got things sort of working. I got this error on the Cart Page --- Warning: Missing argument 4 for plgVmCustomTextinput::plgVmOnViewCart() in /home/......./plugins/vmcustom/textinput/textinput.php on line 100

And this error on the cart module

Warning: Missing argument 4 for plgVmCustomTextinput::plgVmOnViewCartModule() in /home/......./plugins/vmcustom/textinput/textinput.php on line 91

website is www.surfthespot.com
Title: Re: Errors with shopping cart variant
Post by: patrik60 on June 26, 2012, 16:55:24 PM
I get the same error messages (using the download plugin 1.0.6). May be this is a php problem: I did copy the whole Joomla configuration (files, database) to my local environment. There it works fine.
The php version on my local environment is 5.3.6, on the not working live server it is 5.3.10

The problem started with VM 2.0.7. I am on rev 6164 now.
Title: Re: Errors with shopping cart variant
Post by: VM_Fans on June 27, 2012, 14:54:05 PM
Try to check this post.

http://forum.virtuemart.net/index.php?topic=95688.0
Title: Re: Errors with shopping cart variant
Post by: patrik60 on June 27, 2012, 15:41:01 PM
Thank you for the hint. I have seen this topic also. But the problem started with revision 6004:

"changed all fields using the virtuemart_customfield_id and not the virtuemart_custom_id anylonger
removed in foreach ($this->products as $cart_item_id=>&$product){ the & is now foreach ($this->products as $cart_item_id=>$product){
changed textinput using now also the parameter $productCustom
adjusted template of textinput now also using virtuemart_customfield_id"