Author Topic: Cart Payment option - auto select set, unchecked radio button showing 2.0.21C  (Read 10797 times)

rayge

  • Jr. Member
  • **
  • Posts: 189
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3295
  • VirtueMart Version: 3.8.4
Re: One Payment option. radio still showing
« Reply #1 on: May 30, 2013, 21:31:02 pm »
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 3.9.22
php 7.3

rayge

  • Jr. Member
  • **
  • Posts: 189
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

  • Jr. Member
  • **
  • Posts: 189
Here is what ive found

in the plugin for authorizenet.php line 146
Code: [Select]
$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
Code: [Select]
$html = $this->getPluginHtml ($method, $selected, $methodSalesPrice);WITH
Code: [Select]
$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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3295
  • VirtueMart Version: 3.8.4
I am not a coder so cannot really help in this.
regards
A

Joomla 3.9.22
php 7.3

rayge

  • Jr. Member
  • **
  • Posts: 189
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10073
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
    • alatak.net
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

  • Jr. Member
  • **
  • Posts: 189
Thanks for helping on this!
I Use: Joomla 3.4.1 & VM 3.0.9

romatvirtue

  • Jr. Member
  • **
  • Posts: 91
Hello. I am having exactly the same issue and would like to get this resolved. Any updates so far? :)

Thanks.

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
    • alatak.net
Hello
To do this requires some change in the code.
Meanwhile you can use some OPCs that will solve this issue.

romatvirtue

  • Jr. Member
  • **
  • Posts: 91
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27937
  • Always on vacation
    • Jenkin Hill Internet
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.6 10373 on Joomla 3.9.22 PHP 7.4.11

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3295
  • VirtueMart Version: 3.8.4
Yep works fine for my Paypal Pro hosted iframe solution!
regards
A

Joomla 3.9.22
php 7.3

romatvirtue

  • Jr. Member
  • **
  • Posts: 91
Well, this doesn't work with Authorize.net... :(