• Resolved cubkids

    (@cubkids)


    Dear all, I use a shipping company that does not include taxes in the prices shown to customers. So I need help to include the result of this calculation in the shipping price shown to customers. The price will vary based on the shipping price without taxes and the destination zip code. The variables are the shipping price without taxes and the destination zip code. Depending on the destination zip code, there are two possible rates. In one, the shipping price without taxes is divided by 0.88 and in the other, the shipping price without taxes is divided by 0.93. In both cases, the result of this division should be the shipping price shown to the customer. How do I do this calculation and put the result as the shipping price shown to the customer? Remember that I use other shipping companies that already show the final shipping price with taxes. I only need to do this for one shipping company. Thank you very much!

    • This topic was modified 1 week ago by cubkids.
    • This topic was modified 1 week ago by cubkids.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    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.

    Thread Starter cubkids

    (@cubkids)

    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!

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    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:

    1. 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.
    2. 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.
    3. 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.

    Thread Starter cubkids

    (@cubkids)

    Hi @shahzeenfarooq , thank you very much!

    Plugin Support Zubair Zahid (woo-hc)

    (@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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.