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

maxispin

  • Jr. Member
  • **
  • Posts: 174
Re: Cart Payment option - auto select set, unchecked radio button showing 2.0.21C
« Reply #30 on: September 20, 2013, 07:19:48 am »
It didn't work for me either, before I inserted the code in the very beginning of the the select_payment.php.

@ 2.0.22c
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3295
  • VirtueMart Version: 3.8.4
Enable Automatic Selected Payment set to Y

VM now asks for input when only one payment method (paypal) exists

2.0.22e  and 2.0.24 worked fine on 2.0.22c (did not check on D)
regards
A

Joomla 3.9.22
php 7.3

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
    • alatak.net
Hello

Yes it is a problem with the new payments. If you do not use them, unpublish the sofort payment plugins in the list  joomla plugins.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3295
  • VirtueMart Version: 3.8.4
Alatak

Thanks for the super quick reply

Yes disbaling the (newly enabled by default) sofort payment plugins has fixed it!

Many thanks for the update.

Not sure that these plugins  should have been enabled by default though  ;)
regards
A

Joomla 3.9.22
php 7.3

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27937
  • Always on vacation
    • Jenkin Hill Internet
If they aren't enabled new users complain that there are no payment options.........
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

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
    • alatak.net
hello
Quote
If they aren't enabled new users complain that there are no payment options.........
Yes exactly
Quote
Not sure that these plugins  should have been enabled by default though
and all payment methods should be disabled when not used for performance reasons

For version 2.1 we are going to think about about a better way to do that

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3295
  • VirtueMart Version: 3.8.4
LOL

2 replies  8)

I agree with the prob of no plugins enabled. 

However this will be an upgrade for many people and we will (no doubt) get lots of people noticing that the auto select fails (if they only have one payment method) and that will be directly because the upgrade enabled the 2 new sofort payment methods in addition to whatever other plugin was enabled. 

Upgraders will be unlikely to utilise these new methods immediately, but they will notice auto select failing.

Then Jenkin will be constantly pointing posts to this thread for the solution.   ;)
regards
A

Joomla 3.9.22
php 7.3

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
    • alatak.net
Hello

It is a bug in the Sofort Ideal Payment plugin, that can be solved by unpublishing the payment in joomla.
I have myself more than 20 payment methods on my test site. i did not notice that problem.

hotrod

  • Jr. Member
  • **
  • Posts: 132
THis worked  for my by Commenting out..  But it created this email error You must provide at least one recipient email address

And The buyer will not get invoices or confirmations.
VirtueMart 3.8.4
Joomla! 3.9.21

rayge

  • Jr. Member
  • **
  • Posts: 189
Wow its been over a year and i installed a new version of the cart TODAY and we still have the SAME ISSUE?
WHY??
My hack doesn't seem to work now either so really we are going backwards?

thanks for any help as to how to resolve this issue yet again. :(


VirtueMart 2.6.6

**UPDATE - 2014-06-02
Here is what i had to do UNTIL there is a more Permanent FIX.
Open the file: plugins/vmpayment/authorizenet/authorizenet.php

after the line
Code: [Select]
foreach ($this->methods as $this->_currentMethod) {add
Code: [Select]
$selected = $this->_currentMethod->virtuemart_paymentmethod_id;
This will set selected to the ID of Auth.net payment method and make the radio be selected.
I Use: Joomla 3.4.1 & VM 3.0.9

cylord

  • Beginner
  • *
  • Posts: 1
Ok i found a solution.

in virtuemart 2.6.6 using the jquery method to auto check the payment method,

the line

$('input:radio:#payment_id_3').attr('checked','true');

remove

 input:radio:

I should look like this :

$document = JFactory::getDocument();
$document->addScriptDeclaration("
   jQuery(document).ready(function($) {
    $('#payment_id_11').attr('checked',true);
   });
");

SCJberry

  • Beginner
  • *
  • Posts: 4
Re: Cart Payment option - auto select set, unchecked radio button showing 2.0.21C
« Reply #41 on: September 11, 2015, 17:41:01 pm »
I know I just resurrected a year old post but I had to thank RAYGE! This worked for me..

Running latest VM3 with OnePage Checkout by PV and using Authorize.net as my only payment option. I was banging my head for hours over this. I couldn't get the radio button checked for anything.

THANK YOU

Wow its been over a year and i installed a new version of the cart TODAY and we still have the SAME ISSUE?
WHY??
My hack doesn't seem to work now either so really we are going backwards?

thanks for any help as to how to resolve this issue yet again. :(


VirtueMart 2.6.6

**UPDATE - 2014-06-02
Here is what i had to do UNTIL there is a more Permanent FIX.
Open the file: plugins/vmpayment/authorizenet/authorizenet.php

after the line
Code: [Select]
foreach ($this->methods as $this->_currentMethod) {add
Code: [Select]
$selected = $this->_currentMethod->virtuemart_paymentmethod_id;
This will set selected to the ID of Auth.net payment method and make the radio be selected.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10073
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Cart Payment option - auto select set, unchecked radio button showing 2.0.21C
« Reply #42 on: September 11, 2015, 20:19:32 pm »
Nice to hear this.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/