VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: MikUrrey on January 05, 2013, 13:47:34 PM

Title: [Solved] Shipment plugin can't recieve checkout form data
Post by: MikUrrey on January 05, 2013, 13:47:34 PM
Hallo!
My shipment plugin generates some dynamic feilds in the checkout form. This fields must be used to calculate shipment price.
But I can not use its inside method getCosts because $_POST is empty, $_REQUEST don't contains this elements and JRequest::getVar don't returns right values.
What do I do?
Title: Re: Shipment plugin can't recieve checkout form data
Post by: PRO on January 05, 2013, 16:31:11 PM
do the fields have to be dynamic?

could they be fixes user fields?
Title: Re: Shipment plugin can't recieve checkout form data
Post by: MikUrrey on January 05, 2013, 16:58:31 PM
The fields must be dynamic but I can create user fields with similar names and replace its dinamically.
Will this make ones available inside the plugin method?
Title: Re: Shipment plugin can't recieve checkout form data
Post by: PRO on January 05, 2013, 18:34:37 PM
Quote from: MikUrrey on January 05, 2013, 16:58:31 PM
The fields must be dynamic but I can create user fields with similar names and replace its dinamically.
Will this make ones available inside the plugin method?

yes

$cart->

look at the weight countries plugin

You will see how it checks the (zip) etc.

Title: Re: Shipment plugin can't recieve checkout form data
Post by: MikUrrey on January 06, 2013, 08:37:44 AM
Thank you, now the fields available in $cart->BT.