[Skip to main content](#vessel-content)

#   Shipping by Pallet Space Required

##

- **[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")**
- [![davidmayne's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32800-davidmayne "View davidmayne's Profile") Topic Author
- [ Offline](/forum/user/32800-davidmayne)

Less More

- Posts: 21
- Thank you received: 0
-
-

12 years 4 months ago [\#162372](#162372) by [davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")  *[Shipping by Pallet Space Required](/forum/28-shipping-methods/869384-shipping-by-pallet-space-required#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 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 &#42; 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.")* was created by *[davidmayne](/forum/user/32800-davidmayne "View davidmayne's Profile")*

Hi,

I have a requirement where a product takes up x pallet spaces (0.1 to ![8)](/media/kunena/emoticons/9.png "8)"). Using weight for this in shipping methods works fine to calculate the shipping per pallet for cases where weight &lt; 1 or product takes up multiple spaces and cant be stacked.

A problem arises when a product takes up &gt; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY5Mzg0LXNoaXBwaW5nLWJ5LXBhbGxldC1zcGFjZS1yZXF1aXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 4 months ago [\#162377](#162377) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Shipping by Pallet Space Required](/forum/28-shipping-methods/869384-shipping-by-pallet-space-required#162377 "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 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 &#42; 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODY5Mzg0LXNoaXBwaW5nLWJ5LXBhbGxldC1zcGFjZS1yZXF1aXJlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
