Problem with Payment Method Selection

  • Posts: 41
  • Thank you received: 1
10 years 9 months ago #145612

-- url of the page with the problem -- : www.sane.org/new/bookshop
-- HikaShop version -- : 2.2.3 Business
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 27.0.1
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi there,

I've come across a strange problem with Payment Method selection that my client has found while testing the checkout process.

We have two payment methods set up, the Eway payment gateway and PayPal, with Eway appearing first on the checkout page and being selected as the default.

The client did the following:

1. Filled out their credit card details in the Eway fields - all good.

2. Then, just because she thought a customer might do it, she then clicked on the Eway button which selects it as a payment method. When she did this the credit card details fields disappeared as if she had clicked on the PayPal payment method and there was no way of getting them back.

I've attached 2 screenshots that show the before and after of doing this, with test credit card details of course.

Is there something we can do to stop this from happening if a customer accidentally clicks on the button after entering the card details?

Thanks

Nathan



Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #145650

Hi Nathan,
The solution will probably be to set the "Auto submit shipping and payment methods selection" option to NO through "Hikashop->System->Configuration->Checkout"

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 1
10 years 9 months ago #145686

Hi Mohamed,

Thanks for the reply. While your suggestion does get rid of the problem as such, it's not exactly how we were hoping that the Checkout would work.

Now the customer has to click on the Eway button to fill out their credit card details and we were hoping that it could be selected as the Default payment method.

We're upgrading from a Joomla 1.5 site running Virtuemart to Joomla 3.2 with Hikashop and we know from the orders history that the vast majority of the customers will use Eway as the payment method and we want it selected as the default but we'd like to have PayPal as an "option".

Is there any way that we can achieve this?

Thanks

Nathan

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 1
10 years 9 months ago #145974

Hi Mohamed,

Wondering if you or any of the developers have had any further thoughts on this this? We're hoping to go live in a few days and would love to get this sorted first.

I'm thinking the solution is to have it set back on "Auto Select Payment Method" with a modification to the javascript to prevent the selected Eway payment method from disappearing and wiping the previously entered details if it's button is clicked on, but I'm not quite sure where to start looking at this.

Some help would really be appreciated.

Thanks

Nathan

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 8 months ago #146965

Hi Nathan,

I just looked at it and it was really easy.
What you have to do is edit the file view.html.php in components/com_hikashop/views/checkout/ and add this line:

if(this.defaultChecked) return;

after these lines
	if(typeof document.id == 'function' ){
		document.id('radio_".$method->payment_type.'_'.$method->payment_id."').addEvent('click', function(e){

Thus, the eway fields will be displayed when you arrive on the checkout but they won't disapear if you click on the button.
I hope this behaviour is ok for you!

The following user(s) said Thank You: nathan

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 1
10 years 8 months ago #147015

Thank you Eliot, that has worked perfectly.

Cheers

Nathan

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum