Assign a category to specific payment & shipping method

  • Posts: 917
  • Thank you received: 9
  • Hikashop Business
1 month 3 weeks ago #348717

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.11

Hello,

Is there a way to assign a category to a specific payment & shipping method?

Thank you

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

  • Posts: 78215
  • Thank you received: 12358
  • MODERATOR
1 month 3 weeks ago #348719

Hi,

Not directly.
You can use the warehouse system to have different shipping methods for different groups of products. And if you want to match warehouses and categories, you can do it with mass actions.
And once you have different shipping methods for different warehouses, you can use the "shipping methods" restriction of payment methods to restrict payment methods to different shipping methods and thus different warehouses.

The following user(s) said Thank You: verzevoul

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

  • Posts: 917
  • Thank you received: 9
  • Hikashop Business
1 month 3 weeks ago #348748

Hi,

Can you tell me how to use the mass action for that? I need 1 warehouse for all the categories except the one that will have different warehouse.

Thank you

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

  • Posts: 78215
  • Thank you received: 12358
  • MODERATOR
1 month 3 weeks ago #348755

Hi,

Sure, create two mass actions:
- one with a trigger "after a product is updated", a filter on the category column category_id equal to the id of the category with a different warehouse, and an action "update the values" on the column "product_warehouse_id" with the mode "int" and the value being the id of the different warehouse
- one with a trigger "after a product is updated", a filter on the category column category_id different to the id of the category with a different warehouse, and an action "update the values" on the column "product_warehouse_id" with the mode "int" and the value being the id of the main warehouse
You can manually process the mass actions once to process the products already entered in the shop. And then, whenever you save the settings of a product, the mass actions system will run the appropriate action based on the filters and thus automatically set the warehouse when you change the categories of the products.

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.059 seconds
Powered by Kunena Forum