Cart Payment option - auto select set, unchecked radio button showing 2.0.21C

Started by rayge, May 30, 2013, 20:35:56 PM

Previous topic - Next topic

rayge

Even though there's only 1 payment method enabled
Automatic Selected Payment enabled
Radio button for authorize.net still shows

Can anyone tell me how to debug and or fix this?
I Use: Joomla 3.4.1 & VM 3.0.9

AH

#1
Confirmed

If I enable only authorize.net

Cart still expects me to select a payment option
I see only payment option in the cart and an unchecked  radio button.

Consequently the auto select payment option appears not to be functioning

If I enable only Paypal then auto selection works!?


VM 2.0.21C

Regards
A

Joomla 4.4.5
php 8.1

rayge

Ok now that its been confirmed does anyone know where we might fix the code to repair it? Ive looks around but haven't found the correct place yet.
I Use: Joomla 3.4.1 & VM 3.0.9

rayge

Here is what ive found

in the plugin for authorizenet.php line 146
$html = $this->getPluginHtml ($method, $selected, $methodSalesPrice);
this is what shows the radio button. so the function getPluginHtml I am assuming is the issue.

The other plugins are Using displayListFE to display where authorizenet is not using the same coding structure.

If i replace
$html = $this->getPluginHtml ($method, $selected, $methodSalesPrice);
WITH
$html = $this->displayListFE ($cart, $selected, $htmlIn);

it is showing a 1.
when i look at vmplugin.php function displayListFE
Line 166 has return TRUE which is why its showing a 1 in this current coding configuration for auth.net
if i comment it out it then the 1 goes away.

Is there a reason its returning TRUE? I am not sure that commenting it out is Okay yet.

It also still isnt autoselecting still so all of this may have been for nothing.

The only bandaid i can use as of this moment is in authorizenet.php line 122 right after the beginning of the function add
$selected=1;
then atleast it is selected.

I Use: Joomla 3.4.1 & VM 3.0.9

AH

Regards
A

Joomla 4.4.5
php 8.1

rayge

WHere can I pass to to a coder to have it fixed?
I am a developer but i don't have the kind of time required to fix this.
I Use: Joomla 3.4.1 & VM 3.0.9

Milbo

advertise it on the commercial board? No, the correct board is here http://forum.virtuemart.net/index.php?board=136.0,

but the momentan board is also not really wrong. I sent the link to valerie, she will take a look.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alatak

Hello

At the moment, it is done like that:
when a payment requires some input (like in Authorize.net), the automatic selection of the payment does not work.

I am checking if it is possible to change that.

rayge

I Use: Joomla 3.4.1 & VM 3.0.9

romatvirtue

Hello. I am having exactly the same issue and would like to get this resolved. Any updates so far? :)

Thanks.

alatak

Hello
To do this requires some change in the code.
Meanwhile you can use some OPCs that will solve this issue.

romatvirtue

Quote from: alatak on June 14, 2013, 09:23:27 AM
Hello
To do this requires some change in the code.
Meanwhile you can use some OPCs that will solve this issue.
Hello.Thanks for getting back.

So why do we have an option of setting it to be automatically set in VM back end?

jenkinhill

Quote from: romatvirtue on June 14, 2013, 15:06:26 PM
So why do we have an option of setting it to be automatically set in VM back end?

Because for all of us who use ship/payment plugins that require no user input the autoselection works perfectly.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

AH

Regards
A

Joomla 4.4.5
php 8.1