Hide Shipping Options when using a shipping class
-
Hello, I am new to WordPress and am trying to figure out the shipping options. I have looked at different codes, but its quite a complex code that I am not sure what to do to make it work for what I need. I essentially have done this.
1. I have set up three shipping methods:
a) flat rate standard shipping
b) flat rate express shipping
c) flat rate large letter
2. I have set up a Shipping Class for the large letter rate and when adding products for this shipping class I have changed the Shipping Class from ‘Same as Parent’ to shipping class Large Letter. (I am not sure if I need to set up a Shipping Class for the other two options or not or leave them just as a shipping method).
When I go to add the product to the cart that should go as a large letter it shows the two other shipping options, which is not what I want. Essentially I can send 10 items from the Shipping Class Large Letter at a large letter rate and then it would have to go to standard or express shipping (and hide the large letter option) or if they have a large letter item then add something not in that shipping class it would need to do the same i.e. show standard and express and hide the large letter option). Right now if an item that is not a large letter is added by itself in the cart it shows the large letter option and I may have customers pick that because its the cheapest but is not able to be shipped that way.
I hope that makes sense. I am not sure what the point in being able to set up a shipping class if all options show. I would prefer a code if possible as most of the plugins you have to pay to do anything substantial and from what I have seen some forum members have worse shipping issues than mine and they have code :)))) Thank you in advance for your response. Robyn
- The topic ‘Hide Shipping Options when using a shipping class’ is closed to new replies.