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

#   Flat Rate Domestic Shipping Issues

##

- **[Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")**
- [![Dragon41673's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9651.png)](/forum/user/9651-dragon41673 "View Dragon41673's Profile") Topic Author
- [ Offline](/forum/user/9651-dragon41673)

Less More

- Posts: 713
- Thank you received: 37
-
- [](https://www.ariesgamesandminis.com)
-

7 years 4 months ago [\#308195](#308195) by [Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")  *[Flat Rate Domestic Shipping Issues](/forum/28-shipping-methods/897789-flat-rate-domestic-shipping-issues#308195 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Mohamed, or anyone else that can help with this...  I've been asked for a while, and I really want to do this...setup Flat Rate Mailing Boxes for the USPS. I followed this thread:    www.hikashop.com/forum/shipping-methods/...rity-boxes-only.html  In getting them setup, but I'm having the following issues:  If I use the Product Dimensions, I know I can fit 5 of a certain line of items into a Small Flat Rate Box...but when adding them to the cart, the Small Flat Rate Box disappears after I add 2 of the item to my cart. I checked the measurements, and they are all correct. So I don't know what is going on here.  So I tried setting minimum as well as maximum items for the box, and that did not resolve the issue either.  If I do NOT use the Product Dimensions, then other products that are WAY bigger than the box show up in the cart with the option to ship using the Small Flat Rate Box.  So in looking more &amp; more...I am hoping there is a way to specify using Small Flat Rate on specific products or categories. Any help would be appreciated.  I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.  Thank you!")* was created by *[Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")*

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Chrome

Mohamed, or anyone else that can help with this...

I've been asked for a while, and I really want to do this...setup Flat Rate Mailing Boxes for the USPS. I followed this thread:

[ www.hikashop.com/forum/shipping-methods/...rity-boxes-only.html](https://www.hikashop.com/forum/shipping-methods/876244-how-to-setup-usps-flat-rate-priority-boxes-only.html)

In getting them setup, but I'm having the following issues:

If I use the Product Dimensions, I know I can fit 5 of a certain line of items into a Small Flat Rate Box...but when adding them to the cart, the Small Flat Rate Box disappears after I add 2 of the item to my cart. I checked the measurements, and they are all correct. So I don't know what is going on here.

So I tried setting minimum as well as maximum items for the box, and that did not resolve the issue either.

If I do NOT use the Product Dimensions, then other products that are WAY bigger than the box show up in the cart with the option to ship using the Small Flat Rate Box.

So in looking more &amp; more...I am hoping there is a way to specify using Small Flat Rate on specific products or categories. Any help would be appreciated.

I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.

Thank you!

---

**Owner** - [ Aries Games &amp; Miniatures](https://www.ariesgamesandminis.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk3Nzg5LWZsYXQtcmF0ZS1kb21lc3RpYy1zaGlwcGluZy1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

7 years 4 months ago -  7 years 4 months ago [\#308214](#308214) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Flat Rate Domestic Shipping Issues](/forum/28-shipping-methods/897789-flat-rate-domestic-shipping-issues#308214 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Mohamed, or anyone else that can help with this...  I've been asked for a while, and I really want to do this...setup Flat Rate Mailing Boxes for the USPS. I followed this thread:    www.hikashop.com/forum/shipping-methods/...rity-boxes-only.html  In getting them setup, but I'm having the following issues:  If I use the Product Dimensions, I know I can fit 5 of a certain line of items into a Small Flat Rate Box...but when adding them to the cart, the Small Flat Rate Box disappears after I add 2 of the item to my cart. I checked the measurements, and they are all correct. So I don't know what is going on here.  So I tried setting minimum as well as maximum items for the box, and that did not resolve the issue either.  If I do NOT use the Product Dimensions, then other products that are WAY bigger than the box show up in the cart with the option to ship using the Small Flat Rate Box.  So in looking more &amp; more...I am hoping there is a way to specify using Small Flat Rate on specific products or categories. Any help would be appreciated.  I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.  Thank you!")*

Hello,

> I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.

Of course, it will help us understand and find out from where it's coming. Thank you!

Kind regards,
Mohamed Thelji.

Last edit: 7 years 4 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk3Nzg5LWZsYXQtcmF0ZS1kb21lc3RpYy1zaGlwcGluZy1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")**
- [![Dragon41673's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9651.png)](/forum/user/9651-dragon41673 "View Dragon41673's Profile") Topic Author
- [ Offline](/forum/user/9651-dragon41673)

Less More

- Posts: 713
- Thank you received: 37
-
- [](https://www.ariesgamesandminis.com)
-

7 years 4 months ago [\#308242](#308242) by [Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")  Replied by *[Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")* on topic *[Flat Rate Domestic Shipping Issues](/forum/28-shipping-methods/897789-flat-rate-domestic-shipping-issues#308242 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Mohamed, or anyone else that can help with this...  I've been asked for a while, and I really want to do this...setup Flat Rate Mailing Boxes for the USPS. I followed this thread:    www.hikashop.com/forum/shipping-methods/...rity-boxes-only.html  In getting them setup, but I'm having the following issues:  If I use the Product Dimensions, I know I can fit 5 of a certain line of items into a Small Flat Rate Box...but when adding them to the cart, the Small Flat Rate Box disappears after I add 2 of the item to my cart. I checked the measurements, and they are all correct. So I don't know what is going on here.  So I tried setting minimum as well as maximum items for the box, and that did not resolve the issue either.  If I do NOT use the Product Dimensions, then other products that are WAY bigger than the box show up in the cart with the option to ship using the Small Flat Rate Box.  So in looking more &amp; more...I am hoping there is a way to specify using Small Flat Rate on specific products or categories. Any help would be appreciated.  I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.  Thank you!")*

> Mohamed Thelji wrote: Hello,
>
> > I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.
>
>
> Of course, it will help us understand and find out from where it's coming. Thank you!
>
> Kind regards,
> Mohamed Thelji.

Info sent! Thank you

---

**Owner** - [ Aries Games &amp; Miniatures](https://www.ariesgamesandminis.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk3Nzg5LWZsYXQtcmF0ZS1kb21lc3RpYy1zaGlwcGluZy1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

7 years 4 months ago [\#308252](#308252) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Flat Rate Domestic Shipping Issues](/forum/28-shipping-methods/897789-flat-rate-domestic-shipping-issues#308252 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Mohamed, or anyone else that can help with this...  I've been asked for a while, and I really want to do this...setup Flat Rate Mailing Boxes for the USPS. I followed this thread:    www.hikashop.com/forum/shipping-methods/...rity-boxes-only.html  In getting them setup, but I'm having the following issues:  If I use the Product Dimensions, I know I can fit 5 of a certain line of items into a Small Flat Rate Box...but when adding them to the cart, the Small Flat Rate Box disappears after I add 2 of the item to my cart. I checked the measurements, and they are all correct. So I don't know what is going on here.  So I tried setting minimum as well as maximum items for the box, and that did not resolve the issue either.  If I do NOT use the Product Dimensions, then other products that are WAY bigger than the box show up in the cart with the option to ship using the Small Flat Rate Box.  So in looking more &amp; more...I am hoping there is a way to specify using Small Flat Rate on specific products or categories. Any help would be appreciated.  I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.  Thank you!")*

Hi,

As I'm not familiar with inches (never used and don't understand what is 5-3/8, etc), I've converted everything to centimeters. Sorry for that but I want to be accurate and not make mistakes.

On this page ( [ store.usps.com/store/product/shipping-su...rate-box-P\_SMALL\_FRB](https://store.usps.com/store/product/shipping-supplies/priority-mail-small-flat-rate-box-P_SMALL_FRB) ), I find that the Small Flat Rate Box size is: 5-3/8 in x 8-5/8 in x 1-5/8 in
This corresponds to a size of : 13.6 cm * 22 cm * 4.1 cm

On your test website, the product Agrotera AGT-1A has a size of: 5 * 3 * 1.25 in.
This corresponds to a size of: 12.7cm * 7.6cm * 3.2cm

To calculate the limitations on the size, we use the length + girth calculation from USPS: ( width + height ) * 2 + length.

The Small Flat Rate Box has a length girth of (13.6+4.1) * 2 + 22 = 57.4
Your product has a length girth of (7.6+3.2) * 2 + 12.7 = 34.3
As 34.3 * 2 &gt; 57.4, once you add two items of that product in the order, it goes over the length girth of the package and thus it requires a second Small Flat Rate Box.

Now, the fact that you can pack more items in the Small Flat Rate Box than what is calculated sounds strange to you but packing is a complex matter:
[ en.wikipedia.org/wiki/Bin\_packing\_problem](https://en.wikipedia.org/wiki/Bin_packing_problem)
The solution we use is a simple, crude, one which roughly works but could definitely be optimized to reduce the calculated number of packages necessary for the cost estimations.

I actually looked further into it and I think it could be interesting to implement such library to calculate the packing in the future:
[ github.com/dvdoug/BoxPacker](https://github.com/dvdoug/BoxPacker)
In the short term however, that's not something you or we could fix by changing a few lines of code in the USPS plugin or in HikaShop's shipping system.

The following user(s) said Thank You: [Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk3Nzg5LWZsYXQtcmF0ZS1kb21lc3RpYy1zaGlwcGluZy1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")**
- [![Dragon41673's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9651.png)](/forum/user/9651-dragon41673 "View Dragon41673's Profile") Topic Author
- [ Offline](/forum/user/9651-dragon41673)

Less More

- Posts: 713
- Thank you received: 37
-
- [](https://www.ariesgamesandminis.com)
-

7 years 4 months ago [\#308267](#308267) by [Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")  Replied by *[Dragon41673](/forum/user/9651-dragon41673 "View Dragon41673's Profile")* on topic *[Flat Rate Domestic Shipping Issues](/forum/28-shipping-methods/897789-flat-rate-domestic-shipping-issues#308267 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Mohamed, or anyone else that can help with this...  I've been asked for a while, and I really want to do this...setup Flat Rate Mailing Boxes for the USPS. I followed this thread:    www.hikashop.com/forum/shipping-methods/...rity-boxes-only.html  In getting them setup, but I'm having the following issues:  If I use the Product Dimensions, I know I can fit 5 of a certain line of items into a Small Flat Rate Box...but when adding them to the cart, the Small Flat Rate Box disappears after I add 2 of the item to my cart. I checked the measurements, and they are all correct. So I don't know what is going on here.  So I tried setting minimum as well as maximum items for the box, and that did not resolve the issue either.  If I do NOT use the Product Dimensions, then other products that are WAY bigger than the box show up in the cart with the option to ship using the Small Flat Rate Box.  So in looking more &amp; more...I am hoping there is a way to specify using Small Flat Rate on specific products or categories. Any help would be appreciated.  I also have this setup on a test site &amp; am willing to send over login info if needed to any of the HikaShop team.  Thank you!")*

Understood...thank you all for looking into this matter. I definitely appreciate it. I'm going to toy around on the test site for some time and see if there's a way to make this work for me on JUST this one line.

Thank you!

---

**Owner** - [ Aries Games &amp; Miniatures](https://www.ariesgamesandminis.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk3Nzg5LWZsYXQtcmF0ZS1kb21lc3RpYy1zaGlwcGluZy1pc3N1ZXM/dG1wbD1tYXJrZG93bg==) 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.056 seconds

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