Hello,
So the first item from "A" would be $10, and no matter how many additional items from cat "A" would be added the price would still be $10. If one, or many items from cat "B" is added, the price is $40. If multiple items from cat "A" and cat "B" are added , the price would be $50.
Ok so in that case using Warehouses will be the solution, however Warehouses has been developed so that shipping method from different warehouses will be displayed separately on the checkout. So to do what you want you can :
- Customize the code of the Hikashop "shipping" file of the "checkout" view of your front-end template via "Hikashop->Display->Views"
- Directly develop a custom shipping plugin which will calculate shipping prices based on your "product category".
Both case will require development skills.