VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: baoquocmt159 on January 02, 2015, 11:08:00 AM

Title: GetPluginInCart error in virtuemart 2.6
Post by: baoquocmt159 on January 02, 2015, 11:08:00 AM
Hi all,

I used VirtueMart 2.6.8 and i have develop an plugin vmcustom.
But in the GetPluginInCart function, $plgParam = $this->GetPluginInCart($product) returned no results, but same plugin on the VM 2.0.24 is ok.
I dont know why, please help me :s

Thank you !
Title: Re: GetPluginInCart error in virtuemart 2.6
Post by: baoquocmt159 on January 05, 2015, 08:28:50 AM
Someone help me :(

Please !!!
Title: Re: GetPluginInCart error in virtuemart 2.6
Post by: AH on January 05, 2015, 13:09:59 PM
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)
Title: Re: GetPluginInCart error in virtuemart 2.6
Post by: baoquocmt159 on January 13, 2015, 11:23:59 AM
Quote from: Hutson on January 05, 2015, 13:09:59 PM
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)

Thank you, but it's not what i can solve.
Can you please specify the code lines that can help me?

And have anyone can help me?

Thank all !
Title: Re: GetPluginInCart error in virtuemart 2.6
Post by: AH on January 13, 2015, 11:47:44 AM
I used VirtueMart 2.6.8 and i have develop an plugin vmcustom.

How can anyone specify the code lines to help you when you developed the plugin!?

If you managed to develop a plugin then you should be able to use the same process to adjust you plugin for VM3

Try this to see if it helps you solve how you need to change YOUR code.

http://kainhofer.com/software/tutorial-vm2-plugin-vm3.html (http://kainhofer.com/software/tutorial-vm2-plugin-vm3.html)



Title: Re: GetPluginInCart error in virtuemart 2.6
Post by: baoquocmt159 on January 14, 2015, 10:41:49 AM
Quote from: Hutson on January 13, 2015, 11:47:44 AM
I used VirtueMart 2.6.8 and i have develop an plugin vmcustom.

How can anyone specify the code lines to help you when you developed the plugin!?

If you managed to develop a plugin then you should be able to use the same process to adjust you plugin for VM3

Try this to see if it helps you solve how you need to change YOUR code.

http://kainhofer.com/software/tutorial-vm2-plugin-vm3.html (http://kainhofer.com/software/tutorial-vm2-plugin-vm3.html)

Hi Hutson,
The first thank for help.
I mean when i use my plugin for VM 2.0.24 it's ok, $plgParam = $this->GetPluginInCart($product) have data, and when i use my plugin for VM 2.6.8 it's not work, because $plgParam = $this->GetPluginInCart($product) not have data.
So i think problem from VM 2.6.8 core.

Thank you !