Hi @cubkids,
Your request appears to require a custom solution, either through a custom code snippet or a combination of plugins. Since this falls outside the scope of core WooCommerce support in this forum, I recommend consulting with WooExperts for assistance.
Hello @mosesmedh , thanks for your answer, but I believe it is something simpler that can be solved in this forum. Maybe something like this WooCommerce documentation: https://woocommerce.com/document/setting-up-taxes-in-woocommerce/ But I haven’t found that specific solution yet.
Thanks!
Hi there!
the following documentation refers to configuring shipping rates using postcodes in WooCommerce’s built-in Flat Rate Shipping method. However, it does not allow dynamic calculations like dividing the shipping cost by 0.88 or 0.93 based on zip codes.
To achieve your requirement:
- Using Built-in WooCommerce Settings
- If your shipping company provides fixed rates per postcode, you can manually enter those rates using WooCommerce → Settings → Shipping → Shipping Zones and define different rates for each relevant postcode.
- This method won’t dynamically apply a calculation but allows you to set specific rates per zip code.
- Using Table Rate Shipping Plugin
- With Table Rate Shipping for WooCommerce, you can create rules where the shipping cost varies based on the postcode and apply a custom formula.
- This approach is more flexible without requiring custom code.
- Using Custom Code
- If your rates need to be dynamically calculated based on the zip code, you’ll need to use a custom function hooked into
woocommerce_package_rates to modify shipping costs programmatically.
If you need more in-depth support or want to consider professional assistance for customization, I can recommend WooExperts and Codeable.io as options for getting professional help. Alternatively, you can also ask your development questions in the WooCommerce Community Slack as custom code falls outside our usual scope of support.
Hi @shahzeenfarooq , thank you very much!
Zee
(@doublezed2)
Hello cubkids,
Thank you for your reply.
We are glad to be of your assistance.
Please don’t hesitate to contact us again if you have more questions or concerns.
We are here to help 🙂
Best regards.