-- HikaShop version -- : 2.6.1
Hi there,
I've looked around the forum and i believe the following is possible but i've been unable to see how it has actually been done.
We have products that at the moment can only be taken by certain couriers, as it stands, it works in a hierarchy, for example:
Courier A will only take products in group 1
Courier B will take products in group 1 and 2
Courier C will take all products, in group 1, 2, or 3.
I would like to add a custom field to the backend to set a packaging group for each product, and a custom field to the manual shipping plugin for "maximum packing group" then edit the manual shipping plugin to check what packaging groups products are in before presenting the available shipping options at the checkout.
I believe this could be achieved in the code that checks product weights and volumes before showing available shipping methods at the checkout.
An example of an order would be as follows:
Customer 1 purchases 3 products from packaging group 1, at checkout they are presented with all couriers, A, B, and C.
Customer 2 purchases 3 products from packaging group 1, and 1 product from packaging group 2, at the checkout they are presented with couriers B, and C, as courier A will not take anything from packaging group 2.
I do not wish to do this by manipulating product weights and volumes as we currently use both of them to calculate shipping costs.
Any help in pointing me in the right directions for the files to edit to achieve this would be most appreciated.
Oli