information on payment method

  • Posts: 2
  • Thank you received: 0
10 years 3 months ago #180895

-- HikaShop version -- : 2.5.x
-- Joomla version -- : 3.2.x

Good morning, I would like to know if it is possible to limit to a method of payment based on the characteristic selected.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #180902

No, but a solution can be to restrict a shipping method to a product, and then restrict your payment method to that shipping method.

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

  • Posts: 2
  • Thank you received: 0
10 years 3 months ago #181071

Thanks for the answer, the problem is that it is not about physical products with shipping, as it comes to touristic tours that vary in price based on selected characteristics(number of people / payment method).
Is there another way to limit the payment methods, so that during checkout it appears only one?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #181075

Hi,

It will require to create a little PHP plugin based on the function "onPaymentDisplay(&$order,&$methods,&$usable_methods)".
Here check the content of the order, and based on the products you can edit the $methods variable in order to restrict to the desired methods.
www.hikashop.com/support/support/documen...tml#onPaymentDisplay

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

Time to create page: 0.079 seconds
Powered by Kunena Forum