Switching between payment option issue

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67148

Hi there,

When I get to checkout and change my payment option (from paypal to bank transfer etc), the page reloads with the error message about accepting the website terms (users have to accept my t&c's on my shop).

When I change my payment option it should not force me to check the 'I have read and understood the terms etc'. The terms are at the bottom of the page (under cart) and only checked when the user wants to pay.

How can I prevent this error message from popping up when users switch between payment options?

Thanks for your time

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67177

Hi,
I think that you should :

- Go to "Hikashop->System->Configuration->Checkout"
- Set the "Auto submit shipping and payment methods selection" option to NO

Hope this will help you.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67188

Hi Mohamed,

That's done the trick. Thank you.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67277

Hi there,

Having looked again this is not a good solution. Users have to click 'next' when their cart has not been updated. From a user point of view, they think there is a mistake in their cart calculation (no shipping fee for example).

Is there any other way I can 'auto submit shipping and payment methods' when the user comes to checkout, but stop the warning message about 'terms' appearing if the user decides to switch to another payment/shipping method. It is not good that the 'terms' warning message pops up as soon as the page refreshes ie if you change payment/shipping method. The 'terms' warning message should only appear once you have selected your shipping/payment methods and want to move to the final payment step.

Your help greatly appreciated.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67295

Another issue is when the user has a login failure (wrong password etc)
I now get the error message about the incorrect password and also the error message telling them to accept my terms. Please see attached.

This seems like a bit of a bug from a user point of view. Is there any fix? I need to have buyers accept my terms at the point of sale.

Thanks in advance

Kind regards

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67313

Ok, so my solution would be to :
- Put ON your "Auto submit shipping and payment methods selection"
- Put your "Terms and conditions" option to a different step than your "Login" "Shipping" "Payment" options.

Hope this will solve your problem.

Last edit: 12 years 1 month ago by Mohamed Thelji.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67321

Thanks for the reply.
The issue is I cant really put it before the selection of a shipping option (people never check terms before selecting shipping/payment options). If I put it anywhere after this then this problem occurs. I only have 1 page for checkout.

Is there any other way around this?

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67336

You should maybe put your "Terms and conditions" option in the same step as your "cart".

Last edit: 12 years 1 month ago by Mohamed Thelji.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67399

Hi again,

My "Terms and conditions" are in the same step as my cart. As said previously, registration, shipping options, payment options and cart are all on the same page. Therefore whenever this page refreshes (whether due to a login error or updating payment options) the "Terms and conditions" error message will always be called.

In summary, even if I put my "Terms and conditions" before or below my cart, the error message will still be called when the page refreshes).

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67412

Did you configured your checkout workflow like this for example ?

Attachments:
Last edit: 12 years 1 month ago by Mohamed Thelji.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67441

Mohamed - a thousand thank yous. I have only just realized you can add a step in and therefore break up the payment process. That has solved my problem.

Last question - Is it possible to have two different buttons at the bottom of my two payment steps? The first button would just say 'next' and the second button would say 'pay now'? At present they both say 'next'.

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67530

If you configured you checkout workflow like I told you to you'll have to edit (through "Hikashop->Display->Views") your coupon and cart file of the checkout view of the front-end's template that you are currently using.

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67543

Yes I configured just as you said.

Could you kindly tell me how I would edit the Coupon and Cart file? I didn't see any reference to the 'next' button in either of these files.

I would be grateful if you could let me know what code I need to add to both the files (and where exactly) to enable me to have a different button on each page of the payment process (2 stages). I can then hopefully adapt this code in one file and use a different PHP tag for the 'Buy Now' rather than 'next' text.

Thoughts appreciated :)

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67547

1. can you give me a link to your website
2. can you exactly tell me what do you want to do with your "pay now" button

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #67550

I sent you the URL by PM.

The buttons have the same function as before (move user to next step). It's just I need one button to say one thing (next) and the last button to say another thing (Buy Now)

Hope that helps!

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67573

Ok, I think that you should edit your "step" file of the "checkout" view of the template that you are currently using and change the code :

echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',$this->params,hikashop_completeLink('checkout&task=step&step='.($this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');
by
if($this->step==1){ 
echo $this->cart->displayButton('Finish','next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false; ','id="hikashop_checkout_next_button"'); 
}else{ 
echo $this->cart->displayButton(JText::_('NEXT'),'next',$this->params,hikashop::completeLink('checkout&task=step&step='.$this->step+1),'document.forms[\'hikashop_checkout_form\'].submit(); return false;','id="hikashop_checkout_next_button"'); 
}

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

  • Posts: 272
  • Thank you received: 7
12 years 1 month ago #68082

Mohamed

That's perfect and works very well. Thank you.
Will I loose that modification I made in the "step" file of the "checkout" view when upgrading to future hikashop versions?

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68174

No. These are saved as overrides in the html folder of your template.

The following user(s) said Thank You: boopoo

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

Time to create page: 0.113 seconds
Powered by Kunena Forum