VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: lukelee on June 04, 2013, 13:06:08 PM

Title: Automatic Selected Shipment & Payment doesn't work
Post by: lukelee on June 04, 2013, 13:06:08 PM
I am running virtuemart 2.0.20b on Joomla 2.5.8, Both Enable Automatic Selected Shipment & Payment are selected.
I am using flat rate shipping and paypal only, but in checkout page, it still ask for Select shipment and Select payment.

Anyone solved this issue?
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: Senadisain on October 18, 2013, 16:33:31 PM
Quote from: lukelee on June 04, 2013, 13:06:08 PM
I am running virtuemart 2.0.20b on Joomla 2.5.8, Both Enable Automatic Selected Shipment & Payment are selected.
I am using flat rate shipping and paypal only, but in checkout page, it still ask for Select shipment and Select payment.

Anyone solved this issue?
Faced with a similar problem, the version of virtuemart 2.0.24, solution:
1 .open: your_site/components/com_virtuemart/helpers/cart.php
2. then find there function: CheckAutomaticSelectedPayment, line 1220
3. in this function, we find the condition: if (isset ($ returnValue)) and change it to if ($ returnValue == true), line 1232
I helped.
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: AH on October 18, 2013, 17:14:30 PM
You should not need to change code for auto select to function when there is only one option and no other plugins enables.

Just disable any other shipment and payment plugins and autoselect should function.

Senadisian - that is not very helpful as it will get overwritten in an update! and should not be required in the first instance.
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: servlet on October 27, 2013, 08:42:32 AM
Quote from: Hutson on October 18, 2013, 17:14:30 PM
You should not need to change code for auto select to function when there is only one option and no other plugins enables.

Just disable any other shipment and payment plugins and autoselect should function.

Senadisian - that is not very helpful as it will get overwritten in an update! and should not be required in the first instance.

Ok, but it doesnt wokr
Autoselected is only shipment method
Payment method is not selected
VM 24
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: AH on October 27, 2013, 11:11:58 AM
Servlet
It depends what payment method you are using.

Works perfectly for paypal.

I just did not want people to read the previous post and go straight to hacking code
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: servlet on October 27, 2013, 13:54:30 PM
Hello
Thank you for replay
I am using standart payment method...

By the way cart doesnt calculate weight and cannt get correct price for shipping.
Do you have problems with this?
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: AH on October 27, 2013, 16:32:21 PM
My weight calc and shipping are fine

Vm 2.0.24
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: servlet on October 27, 2013, 19:49:11 PM
What is  your dimension kg or gram
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: AH on October 27, 2013, 21:49:42 PM
KG
Title: Re: Automatic Selected Shipment & Payment doesn't work
Post by: servlet on October 28, 2013, 09:45:59 AM
Thank you
Strange! It doesnt work in my site.