VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: motybz on January 19, 2015, 12:31:24 PM

Title: error in cart plugins after migration from vm2.6 to vm3.0.2
Post by: motybz on January 19, 2015, 12:31:24 PM
I try to adjust the plugin to the new system but some functions have changed or do not exist.
There is a doc detailing the changes between vm2.6 to vm3 in the shopping cart functions?
like this "Fatal error: Call to undefined method VirtueMartCart::prepareCartViewData() in C:\xampp\htdocs\joomla3\plugins\system\vponepagecheckout\cart\cartview.html.php on line 1118"
Title: Re: error in cart plugins after migration from vm2.6 to vm3.0.2
Post by: AH on January 19, 2015, 12:37:34 PM
This may help

http://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html (http://docs.virtuemart.net/tutorials/development/175-code-adjustments-for-virtuemart-3.html)

and this

http://kainhofer.com/software/tutorial-vm2-plugin-vm3.html (http://kainhofer.com/software/tutorial-vm2-plugin-vm3.html)
Title: Re: error in cart plugins after migration from vm2.6 to vm3.0.2
Post by: baoquocmt159 on March 16, 2015, 15:21:50 PM
Hi Hutson,

I have same problem, i did search and readed links you gave, but it useless for me :(
I can't find solution to replace prepareCartViewData function. Can you explain more for me? or someone can help me?

if (!class_exists('VirtueMartCart')) require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php');
$cart = VirtueMartCart::getCart();
and
$cart->prepareCartViewData(); // this is error line

Thank so much !
Title: Re: error in cart plugins after migration from vm2.6 to vm3.0.2
Post by: GJC Web Design on March 16, 2015, 22:03:44 PM
surely it is simpler to get the VM3 version of vponepagecheckout?
Title: Re: error in cart plugins after migration from vm2.6 to vm3.0.2
Post by: baoquocmt159 on March 17, 2015, 02:42:40 AM
Quote from: GJC Web Design on March 16, 2015, 22:03:44 PM
surely it is simpler to get the VM3 version of vponepagecheckout?

Yes can you help me?

Thank so much !
Title: Re: error in cart plugins after migration from vm2.6 to vm3.0.2
Post by: jenkinhill on March 17, 2015, 12:04:23 PM
Here:  http://www.virtueplanet.com/vp-one-page-checkout-detail