Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping method based on quantity #95

Open
johnj24 opened this issue Nov 17, 2022 · 2 comments
Open

Shipping method based on quantity #95

johnj24 opened this issue Nov 17, 2022 · 2 comments
Labels

Comments

@johnj24
Copy link

johnj24 commented Nov 17, 2022

Question

Hi, Josh. What's currently the best solution for showing and hiding shipping methods based on quantity? We ship magazines and if a customer buys one issue, that one issue can fit in both a USPS First Class Envelope and a USPS Priority Mail Medium Flat Rate Box (which we use for large quantities). How can I limit orders -- i.e., the one magazine issue -- to just the envelope. And only when you hit a quantity, let's say, over 6, then the medium box is triggered.

FYI, we're using 'packingMethod' => 'boxPacking' and have set up one first class envelope size. I don't assume we need to set up sizes for priority mail since those are USPS boxes that come from the provider (is this wrong?).

Thanks.

Additional context

No response

@engram-design
Copy link
Member

Hmm, the only way you could do this is through events where you might check if if matches one shipping method, to remove the others. I suppose the general thinking is that when presenting with multiple options like USPS First Class Envelope and a USPS Priority Mail Medium Flat Rate Box people will pick the cheapest.

As for the box sizes, they're dependant on the "Box Sizes" settings, and nothing is pulled in from USPS automatically. You'll need to define your own box sizes for things. But, not being a USPS expert by any means, we can certainly pre-fill some of these boxes like we do for other providers. The tricky thing with this from what your describing is even if we pre-fill these (check UPS) they're not applicable to every service, maybe just the priority mail services.

@johnj24
Copy link
Author

johnj24 commented Nov 18, 2022

Thanks for the reply, Josh. So, you would recommend we input the size for Priority Mail Medium Flat Rate box?

And just to provide a bit of clarity, USPS provides Priority Mail envelopes/boxes free of charge. These envelopes/boxes have to be used for Priority Mail services. It gets a bit tricky if you wanted to pre-fill, as Medium Flat Rate actually has two box sizes (a top filled box, and a side filled box). As does Large Flat Rate (as seen on this FAQ page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants