Hikashop restricted payment method not working ok

  • Posts: 4
  • Thank you received: 0
9 years 2 months ago #214678

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.4.3

Hi,

I have this setup configured:

Product 1 belongs to Warehouse 1
Product 2 belongs to Warehouse 2

Shipping 1 restricted to Warehouse 1
Shipping 2 restricted to Warehouse 2

Payment method 1 restricted to Shipping 1
Payment method 2 restricted to Shipping 2


I add to my cart the product 1 and the product 2 and in the checkout page when I get to the payment method's page it only shows the payment method of the first product added to the cart. If the first added is the product 1 it only shows the payment method 1 and when the first product added is the product 2 it only shows the payment method 2.

Why is this happening? It show show both payments, isn't it?

Regards,

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #214691

Hi,

Because the payment restriction of the shipping can't work properly when you have multiple shipping groups.
The restriction is then done only on the first shipping group.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 4
  • Thank you received: 0
9 years 2 months ago #214910

Ok, I don't understand why you allow this type of restriction in the back-end when it won't work correctly in the frontend. It feels very buggy.
Can you please point me to the source file which contains this logic? I will try to do it myself.

Regards.

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
9 years 2 months ago #214943

Hi,

It's not meant to be supported since you can't have several payment methods at the same time for an order.
If you want to change that, you can look at the function getMethods of the file administrator/components/com_hikashop/classes/payment.php and the function getMethods of the file administrator/components/com_hikashop/classes/plugins.php

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

  • Posts: 4
  • Thank you received: 0
9 years 2 months ago #215065

Why can't you have several payment methods to choose from at the same time? Where do you say you can't have it?
You should really write this in the documentation, you don't say it anywhere and I was expecting this to work when I bought your product.

The documentation is an incomplete mess and I don't want to talk about the source code.
Thank you for your help anyway.

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
9 years 2 months ago #215079

Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole order and then you're redirected back to the website.
If you were to select different payment methods for different groups of products in the order, it could mean that half of the order would have to be paid for example on PayPal and the other half on Authorize.net. But that's not something you want as it is not user friendly. So we didn't implement that possibility.
That's why I'm saying that you can't have that.
That's the way all ecommerce solutions and ecommerce websites I know about work so I didn't feel necessary to write that anywhere. In fact, you're the first person trying to do that in 5 years with Hikashop as far as I know.

Last edit: 9 years 2 months ago by nicolas.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum