Hide Shipping class option
-
We have created several shipping classes for specific products. However when a customer puts any product in the cart, all of the classes are shown at checkout. How can we restrict the display so that Product A displays only Shipping Class A and Product B displays only Shipping Class B?
-
Hey there, @albertandbrown! Thanks for contacting us. I’m happy to help you.
Just to confirm, when you say all shipping classes show on the cart, do you mean that all the shipping options show to every product?
Can you please share screenshots of all your shipping zones, all shipping methods (by clicking on edit to see the settings of each method), all shipping classes and Product Data > Shipping of two products on different classes so we can check it?
I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.
Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.Looking forward to your reply.
Have a wonderful day!
This is very likely the same as the issue I am facing. See https://www.ads-software.com/support/topic/separate-shipping-classes-not-shown-in-cart-or-checkout/#post-17461501
There is something very strange going on with shipping in v8.6.1 ..
I have one delivery method Standard contained in two shipping zones, USA and Canada, and each method contains two shipping classes small-item and large-item.
Standard for USA and Canada has default cost blank — not defined and NOT zero.
Standard for USA has small-item $1 and large-item $2
Standard for Canada has small-item $4 and large-item N/A (not defined)
I put 1 x small-item and 1 x large-item in cart.
On checkout for CANADA I get shipping Standard = $4 !!!!!!!!!! So the shipping calculation is $0 for the large item, even though I have not defined shipping to Canada for this class!
Selecting a large-item for Canada should invalidate the shipping calculation – not provide free shipping for that item!
- This reply was modified 7 months, 3 weeks ago by gregorybuck.
?? hey @albertandbrown
Just to add, WooCommerce’s core behavior is to show all the valid shipping methods from the shipping zone that matches a given address. If you would like to customize this behavior further, you can use the?Conditional Shipping and Payments?extension to hide shipping methods when the cart reaches a minimum amount or if it contains products from a specific?shipping class. Reference, in the?official documentation, linked here.
I trust that clarifies things further, but if you have more questions, let us know.
We’re happy to help.
—
?? hi there @gregorybuck
There is something very strange going on with shipping in v8.6.1 ..
I’m not able to find anything related reported on GitHub, currently.
Just to clarify, if you are noticing a behavior change with WooCommerce version 8.6.1 active, with regard to shipping option’s behavior, which was different with earlier versions, feel free to create an issue here.
For anything further, kindly maintain the correspondence in the forum thread linked here.
Thank you.
Let me try again.
I have two products. Product A and Product B. I have created two shipping classes named Class A and Class B. Items named Product A have Shipping class A set in the product detail and items named Product B have Shipping Class B
I then created two Flat Rate Shipping methods names Method A and Method B.
In the cost field for method A I have entered $50* [qty] and for method B $200 * [qty]. The calculation method is set to ‘per class’
When the customer puts Product A into the cart they go to checkout and are given both shipping methods A and B.
In addition if they customer increases the quantity the shipping fee remains as a single fee, it is not multiplied by quantity.
Can I show only one shipping method based on product class without the add-in you suggest?
Hi @albertandbrown,
I have two products. Product A and Product B. I have created two shipping classes named Class A and Class B. Items named Product A have Shipping class A set in the product detail and items named Product B have Shipping Class B
I then created two Flat Rate Shipping methods names Method A and Method B.
In the cost field for method A I have entered $50* [qty] and for method B $200 * [qty]. The calculation method is set to ‘per class’
When the customer puts Product A into the cart they go to checkout and are given both shipping methods A and B.
In addition if they customer increases the quantity the shipping fee remains as a single fee, it is not multiplied by quantity.
Thank you for the detailed breakdown of your shipping class and costs. Could you please share a screenshot of your settings to further review this? From what you describe, it should be working as expected (https://woo.com/document/flat-rate-shipping/#shipping-classes), especially the multiply by quantity. So maybe there’s a mistake in the settings.
All the best,
OmarHi there ?? ,
We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.
All the best,
Omar
- The topic ‘Hide Shipping class option’ is closed to new replies.