Shipping by Pallet Space Required

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
10 years 4 months ago #162372

Hi,

I have a requirement where a product takes up x pallet spaces (0.1 to 8). Using weight for this in shipping methods works fine to calculate the shipping per pallet for cases where weight < 1 or product takes up multiple spaces and cant be stacked.

A problem arises when a product takes up > 1 pallet spaces and can be stacked i.e. product A (2 pallet spaces width), can stack up to 7 high thus quantity 1-7 weight would be 2, 8 would be 4 and so on. Volume cannot be used as products can be stacked depending on product and not volume. I was thinking could have a custom field STACK indicating how many stack to fill the space which would then modify the weight by product in the shipping method. Thus weight = weight * round(Quantity/STACK).

Does this sound feasable? And if so where would I find the code to modify? If not do you have any other ideas?

Thank you in advance,

David Mayne.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 months ago #162377

Hi,

Yes it sounds to be feasible.
You have to create this custom field in the product table, then fill it with the desired value in the product edition page.
And finally have to create a plugin which will make your custom calculation in order to set the correct weight when adding the product in the cart.

You can see how the plugin "hikashop_quantity_weight" work and adapt it to your needs.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum