Can I set a default payment method

  • Posts: 5
  • Thank you received: 0
12 years 3 months ago #56515

I have 2 payment methods and would like to set the second one as default, but can't figure out how.
Help is much appreciated.
Rob

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
12 years 3 months ago #56560

Go in the joomla plugins manager and change their ordering.

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

  • Posts: 35
  • Thank you received: 0
12 years 2 months ago #61476

This changes the order, but not the default selected option. Is there a quick fix for this?

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
12 years 2 months ago #61479

That will change the default selection too.
Just logout/login in order to clear your user session and see the new default selection.

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #61555

is there a way to select default shipping and payment method for every user?

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
12 years 2 months ago #61622

What do you mean ?

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #61641

for example: i manually made users for my constant buyers. They are buying often and more, so can i make default shipping and payment method for them. Because now they always need to select theirs shipping and payment methods. Now i have 4 shipping and 3 payment methods and every time they need to select them. Other methods is for new users that can register and buy. It will be more easy if i can select these methods for every user in users edit window (index.php?option=com_hikashop&ctrl=user&task=edit&cid[]=281)

I will be happy with some manual changes in files only for these customers :) but need to know exactly what to change, because i'm not programmer.

Last edit: 12 years 2 months ago by arnask.

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
12 years 2 months ago #61781

There are no options for that.

You would have to create a custom field of the table "user" via the menu Display->Custom fields.
Set it as a dropdown and have one value per payment method. In the value field, enter the id of the payment method and in the title, enter its name.

Then, in your users you will be able to select the payment method to become their default.

Finally, in the "payment" file of the view "checkout" via the menu display>Views, you would have to add at the beginning the:
<?php if(empty($this->payment_id)){ $user = hikashop_loadUser(true); $this->payment_id=$user->CUSTOM_FIELD_COLUMN_NAME;} ?>

where CUSTOM_FIELD_COLUMN_NAME needs to be replaced by the actual custom field column name.

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

  • Posts: 174
  • Thank you received: 2
  • Hikashop Business
12 years 2 months ago #61815

is this something that i can expect in next hikashop release by default?

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
12 years 2 months ago #61946

99% of the users don't need it. That's clearly an edge case which that small modification can easily fulfill. I don't see any reason to include it HikaShop.

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

  • Posts: 31
  • Thank you received: 3
11 years 8 months ago #90088

I've followed the instructions in this thread and set the order of my two payment methods via Joomla plug-ins ordering, and that does indeed change the order that they appear on the payment page, but not the default method of payment (even when I log out / refresh etc).

How can I force a default payment method? Do I need to edit checkout / payment.php ?

Thanks

Steve

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
11 years 8 months ago #90121

The default method of payment will be the first one based on the ordering. There is nothing to do for that.
However, if the user session data is not flushed, you will still get selected the one you had selected before.
So I still think that your problem is just temporary. Try with another user account.

The following user(s) said Thank You: SteveEvans

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

  • Posts: 31
  • Thank you received: 3
11 years 8 months ago #90162

Yes - thanks Nicolas. I had done several 'shift-refreshes' but you are right, it now shows the first one as the default.

Many thanks

Steve

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

  • Posts: 10
  • Thank you received: 1
10 years 6 months ago #154017

Hello
I have one payment method and I created one "Customer orders menu". when user click on the menu, the "Orders" page will be open. he could see the order list and as I configured "Payment of orders not paid immediately" to "yes" in the configuration, then he could pay his order from this page now. but my first option in the "peyment dropdown menu" here is "None" and user should change it to "Paypal". is it any way to remove "None" state?

Please note I want to set "Allow customers to change their payment method after checkout" to "No" from "system/configuration/order". but if I set it to "No" user could not pay his order. because the payment drop down will not appear and first default pay method is setting to "None". then in this page user will see "Pay with" button. as I understood, user should see "Pay with PayPal" button. but as I told, the first default payment is "None" and he will see "Pay with" button. if he press that button, he will see "The payment method could not be found" Error Message.

Can you please tell me how I can solve it?
Thanks a lot for reading :)

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
10 years 6 months ago #154032

Hi,

It should not be necessary to enable that dropdown. When the user creates his order through the checkout, the payment method is assigned to the order automatically. So when he goes to his orders listing, he should already see the "pay with paypal" button.
If you don't see it, it means that either you removed the auto selection of the payment method on the checkout or that you created the order from the backend without adding the payment method to it, or that you edited the order created by the user and removed the payment method from it.

The following user(s) said Thank You: reza21681

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

  • Posts: 10
  • Thank you received: 1
10 years 6 months ago #154074

Hi,
Thanks for your quick reply.

Yes you right, I set the "Auto select default shipping and payment methods" to "Yes" and now "Pay with PayPal" will be appear but there is another problem.
see, I want my customer, upload his file with his order without any payment in this progress until now. We will modify the file and we will notify him by email. then, He should come and pay the order to download the file.

I removed the "Payment" from the "System/Configuration/Checkout/Checkout workflow" but still, if I set the "Auto select default shipping and payment methods" to "Yes", after user click the "Finish" button at the last submitting order step, it will force automatically to connect to the PayPal Website. and as I told in my last post, if I set "Auto select default shipping and payment methods" to "No", the "Play with" button will appear again because default payment is "None" I think!

Can you guide me more in this way?
Thanks a lot

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
10 years 6 months ago #154103

Hi,

Then, you should keep that option to "no" and when you notify the user by email via the order details page of the backend, before sending the email, you should just set the payment method of the order to PayPal. That way, the user would also see "Pay with PayPal".

Otherwise, you can leave the dropdown and try to remove the line:

$this->values[] = JHTML::_('select.option', $type.'_'.$id, $name );
from administrator/components/com_hikashop/types/plugins.php so that the "none" value is not added to the dropdown, but that might not work.

The following user(s) said Thank You: reza21681

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

Time to create page: 0.115 seconds
Powered by Kunena Forum