Title: &#8220;Include optional compensation&#8221; not functioning as expected
Last modified: February 6, 2023

---

# “Include optional compensation” not functioning as expected

 *  Resolved [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/)
 * Hello,
 * Royal mail supports additional compensation for Special delivery services up 
   to £2500 of the order value. However, if “Include optional compensation” is enabled
   and the order value is above £500 they do not appear as available. The service
   by default includes £500 compensation but it is not working for the optional/
   additional amounts of up to £2500.
 * It seems the additional compensation feature is not working, as the services 
   have default caps.
 * Many Thanks

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Support [tograczyk](https://wordpress.org/support/users/tograczyk/)
 * (@tograczyk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16448134)
 * Hi [@devksec](https://wordpress.org/support/users/devksec/), thank you for contacting
   us, I’ll be happy to help.​
   Can you share what Royal Mail service should be available
   and what shipping cost you expect?
 * What is the weight of the cart and the dimensions of the package?
   You can use
   the debug mode available in the plugin settings.
 * ![](https://i0.wp.com/i.vgy.me/iCGVZo.png?ssl=1)
 * The above information will help us further analyse this calculation.
   ​Best regards,​
   Tomek
 *  Thread Starter [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16448215)
 * Hello,
 * This affects all Royal Mail special delivery services
 * The weight we have tried is 1KG & 2KG, with the sizes of 45x35x16cm (Standard
   small parcel size).
 * When using debug, it shows that the enabled toggle is inverted. When it is enabled,
   it disabled it and vise versa.
 * With “Include optional compensation” ticked, the output is “add rate considering
   compensation: no”. However, when left unticked, is is enabled.
 * Is this a bug with that feature toggle? Having it unticked actually enables it.
 *  Thread Starter [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16448298)
 * I’ve reviewed the debug info from a few of the services. The cart price is not
   being picked up and shown within the debug insurance amount.
 * So for the Special delivery services (which have £500 compensation by default),
   they’re always £500 regardless to what the cart value is. When the  “Include 
   optional compensation” is ticked, it then checks the cart value and won’t show
   pricing for orders above the minimum compensation amount.
 * So a few things are an issue:
    1. The debug is showing the Include optional compensation as enabled when its not
       and vice versa
    2. The compensation amounts are static and are not changing with the cart value,
       despite the plugin detecting the value being over the compensation amount
 *  Plugin Support [tograczyk](https://wordpress.org/support/users/tograczyk/)
 * (@tograczyk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16452703)
 * Hi [@devksec](https://wordpress.org/support/users/devksec/), 
   I wanted to let
   you know that I have reproduced what you are reporting on our test environment,
   thank you for the detailed description, it was very helpful.I need to consult
   this with our developers and will get back to you with more information as soon
   as possible.Best regards,Tomek
 *  Thread Starter [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16460362)
 * Thats great news. If I can do anymore to assist with this then please let me 
   know.
 *  Plugin Support [Piotrek Bodera](https://wordpress.org/support/users/nerdontour/)
 * (@nerdontour)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16464799)
 * Hi [@devksec](https://wordpress.org/support/users/devksec/),
 * All good for now. Our developers are looking for the solution. We’ll let you 
   know as soon as we have a fix for that.
 * Kind regards,
 * Piotrek
 *  Plugin Author [Grzegorz Rola](https://wordpress.org/support/users/grola/)
 * (@grola)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16466136)
 * Hi [@devksec](https://wordpress.org/support/users/devksec/),
 * we checked and everything works fine, according to the description of the option:“
   If enabled, the order total value will be considered as a the compensation amount.
   Please mind that some economy services might be not available if the value of
   the purchased goods exceeds a certain limit and therefore they require to be 
   shipped with other services instead.”
 * That is, if the maximum value of compensation for a given service exceeds the
   value of the order, the service will not be available with the selected option.
 * So if you want to use a given service to send orders with a value exceeding the
   compensation, the option must be unchecked.
 * Best regards
    Grzegorz
 *  Thread Starter [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16466257)
 * Hello,
 * Can you test by doing the following and you will see the issue:
   1. Enable the
   compensation option2. Enable debug3. Create an order with £1000 value (over the
   minimum £500 amount) and check the debug output. The debug will show the order
   value & compensation value as £500, not as the cart value of £1000. The service
   has compensation options up to £2500, so when this is enable it should be changing
   accordingly. Here is an output of the “guaranteed_by_one_pm_service.yml” yaml
   file for that service, however it never triggers and changes from the 500 one.
 *     ```wp-block-code
       compensation: 500.00
       tax: 0
       prices:
       100: 6.85
       500: 7.65
       1000: 8.95
       2000: 11.15
       10000: 15.45
   
       20000: 19.45
   
       compensation: 1000.00
       prices:
       100: 7.85
       500: 8.65
       1000: 9.95
       2000: 12.15
       10000: 16.45
   
       20000: 20.45
   
       compensation: 2500.00
       prices:
       100: 9.85
       500: 10.65
       1000: 11.95
       2000: 14.15
       10000: 18.45
       20000: 22.45
       ```
   
 * Key issues which occur:
    1. The compensation amount shown in debug is also the minimum (500) amount, even
       if the service has compensation amounts up to larger amounts. This means its
       either not picking up the cart value correctly or its stuck at the 500 compensation
       value.
    2. Prices are also not changing based on the above YAML file config for different
       compensation amounts, they always show the minimum amount (500) price.
    3. The debug output shows the compensation toggle as enabled “no” when it should
       be “yes”
 *  -  This reply was modified 3 years, 3 months ago by [dev](https://wordpress.org/support/users/devksec/).
 *  Plugin Author [Grzegorz Rola](https://wordpress.org/support/users/grola/)
 * (@grola)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16473558)
 * [@devksec](https://wordpress.org/support/users/devksec/) thanks for the tips.
   We just released version 1.3.3 with fix.
 * Thank you very much
    Best regards Grzegorz
 *  Thread Starter [dev](https://wordpress.org/support/users/devksec/)
 * (@devksec)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16473646)
 * Hello,
 * Thank you.
 * This seems to be working however, is there anyway to have the prices increase(
   Based on the compensation amounts) but not have the service disabled once it 
   hits the compensation amount? 
   Currently if the “additional compensation” is 
   enabled, for special deliveries, it will not be applicable for any order over
   £2500 in value. However if its disabled, the pricing will only show the minimum
   cost price. This means orders between £50-£2500 with “additional compensation”
   disable are incorrectly price.
 * Should the service pricing not increase based on the cart value but not be disabled
   once it hits the cap? 
   Also, are there plans to allow service descriptions + 
   add text for when they’re triggered for being free? Like with flexible shipping.
 *  Plugin Support [tograczyk](https://wordpress.org/support/users/tograczyk/)
 * (@tograczyk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16487435)
 * Hi [@devksec](https://wordpress.org/support/users/devksec/), 
   With the **1.3.3**
   release, we adjusted the cost calculation in the plugin to be consistent with
   Royal Mail’s price list. What you describe does indeed make sense, but we believe
   it should be an additional option in the plugin rather than a replacement for
   the current mechanism.As the implementation of this additional function is a 
   bit more complex, we’ll save this for future consideration. If you want to be
   informed when this option will be available in our solution, please contact us
   directly at [https://octolize.com/support/](https://octolize.com/support/). It
   will be easier for us to email you, as this forum thread, after some time, will
   be closed to new responses.When it comes to the method description and free shipping
   label, currently with the Royal Mail Live Rates plugin you can customize the 
   shipping method name in the _**Services Table**_.
 * ![](https://i0.wp.com/i.vgy.me/ysaSkJ.png?ssl=1)
 * I’ve also saved these additional suggestions to the list of plugin development
   ideas, thanks for the feedback.
 * I hope we have helped at least partially, if you have any additional comments
   please let us know, we are open to new ideas.
   Best regards,Tomek
 *  Plugin Support [tograczyk](https://wordpress.org/support/users/tograczyk/)
 * (@tograczyk)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16509788)
 * As we haven’t got any replies, I’m marking this topic as resolved for now.
 * Best regards,
   Tomek

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘“Include optional compensation” not functioning as expected’ is closed
to new replies.

 * ![](https://ps.w.org/octolize-royal-mail-shipping/assets/icon.svg?rev=2752572)
 * [Shipping Live Rates for Royal Mail for WooCommerce](https://wordpress.org/plugins/octolize-royal-mail-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/octolize-royal-mail-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/octolize-royal-mail-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/octolize-royal-mail-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/octolize-royal-mail-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/octolize-royal-mail-shipping/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [tograczyk](https://wordpress.org/support/users/tograczyk/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/include-optional-compensation-not-functioning-as-expected/#post-16509788)
 * Status: resolved