VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: paulmorrislrd on January 28, 2015, 18:18:22 PM

Title: Select Payment Method View Being Shown When Only One Payment Method Setup
Post by: paulmorrislrd on January 28, 2015, 18:18:22 PM
Hi,

JOOMLA VERSION: 2.5.28
PHP VERSION:5.5.20
VIRTUEMART VERSION:2.6.14

we are using the Secure Trading "VM Payment - Secure Trading Payment Pages" to handle payment on our site. We only have one Payment Method set up in the VirtueMart admin, which uses this plugin and payment method. However, in our cart when we hit "Proceed to Checkout" a screen is being shown asking the user to "Select the payment method" with only one in the list pre-selected - this is of course the one we have in there.

It wasn't doing this this morning. It was going straight to the Payment Page with Secure Trading and just taking the single Payment Method as the merchant to use for payment. What's worse is that when we hit "Save" on that select payment page it just gets stuck in a loop and can never recover. Saving takes you back to the cart page. Hitting proceed takes you to the select payment page and so on and so on in that horrible loop.

As far as we can tell nothing has changed back-end, it just seems to have started doing this. We have tried removing the payment method and adding. Disabling the plugin and reenabling. Changing the order ID of the payment method from 0 to 1, and 1 to 0 etc. We've made sure that "Enable automatic selected payment?" is ticked in the configuration. Nothing changes this horrible loop.

Any ideas?
Title: Re: Select Payment Method View Being Shown When Only One Payment Method Setup
Post by: GJC Web Design on January 28, 2015, 18:57:04 PM
afraid I have no ideas apart from the old adage that code can't write its self..  something has changed...

updates?, new ext.? look at file dates etc etc-- ask the host
Title: Re: Select Payment Method View Being Shown When Only One Payment Method Setup
Post by: paulmorrislrd on January 28, 2015, 19:09:46 PM
Quote from: GJC Web Design on January 28, 2015, 18:57:04 PM
afraid I have no ideas apart from the old adage that code can't write its self..  something has changed...

updates?, new ext.? look at file dates etc etc-- ask the host

I happen to agree with you. Unfortunately, it's my remote web developer who has developed the site (i'm a mobile app developer so this code base is entirely foreign to me). All I know is that it worked, then he made some changes to the plugin to be able to extract the "authcode" from the redirect notification that comes back from the Payment Provider, and then it suddenly doesn't work. He swears no changes have been made but I don't even know where to begin looking in this huge file structure and he's gone awol.

Title: Re: Select Payment Method View Being Shown When Only One Payment Method Setup
Post by: GJC Web Design on January 28, 2015, 22:48:28 PM
hard to believe changes to the payment plugin return (the functions in the payment plugins are all separate) could cause this

but

if that is the time that this started then draw your own conclusion...

needs debugging.. cart.php, vmsplugins.php and the payment plugin
Title: Re: Select Payment Method View Being Shown When Only One Payment Method Setup
Post by: paulmorrislrd on January 29, 2015, 14:45:53 PM
The problem was solved at 2am in the morning by deleting the Secure Trading Plugin and re-installing. Effectively the equivalent of turning it off and turning it back on.

Have a new problem now but this whole Joomla and VirtueMart thing has beaten me down.
Title: Re: Select Payment Method View Being Shown When Only One Payment Method Setup
Post by: GJC Web Design on January 29, 2015, 17:14:23 PM
Quotedeleting the Secure Trading Plugin and re-installing

so putting it back how it was before your developer got at it?