It gets the CubicSpace of the entire cart to do the calculations. anything more than that and the "Small Flat Rate Box" option would be removed!Īnd this works with any mixing matching of any product. I would set my dimensions to something like 5x5x1, then exactly 3 of them would fit into the small flat rate box. So if I have a product and 3 of them would fit into a SMALL flat rate box, You would enable any Flat Rate Boxes you want to use, and if you go over the cubic space that box allows, the Flat Rate Box will be REMOVED from the customers list of available shipping methods at checkout. Works for Domestic and International Flat Rate Box Calculations! You only need to mod two files with a few lines of code, and then you have SMART Flat Rate Box calculations! Ok, I just finished a custom Cubic Flat Rate calculator modification, it WORKS GREAT!! Looks like a pretty easy feature to add though. So it is using the info from the USPS config, and not my actual product sizes, I think I'm going to customize the module for my needs, but I'd rather not re-invent the wheel, if you want to get on this with me let me know, you seem very knowledgeable on this opencart stuff. I'm looking at the code in "catalog\model\shipping\usps.php". I notice there are dimensions you can enter directly in the USPS module,īut what I want to do is use the dimensions in my products, so I left the dimensions in the USPS module blank. That would be good enough, but it does not seem to do that. The way that it is done now is to pass the MAX dimensions of your biggest box.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |