WP Cost Estimation upgrade to v9.706 breaks form behavior/math

I am using WP Cost Estimation plugin, bundled with X Pro.
I found that upgrading from v9.699 to v9.706 of the plugin breaks the behavior of "Modify a variable” / "Price calculation” or similar calculation boxes on “slider” or “checkbox” type items.

I’ve disabled ALL the other plugins to check this. I also tried it with "Ajax navigation support” on or off (and looks like it doesn’t change the behavior).

Items that are not shown via "Show it depending on conditions ?” and that have "Modify a variable” / "Price calculation” or similar calculation boxes:

  • on v9.699 items that were not shown are not being calculated (expected behavior).

  • on v9.702 / 9.706 not shown items are being calculated (unexpected behavior).

Here is an example:


Upon the page load item "Stock video length, min” (a slider) is being shown via “Show it depending on condition”.

  • on v9.699 upon the page load the math works like this:
    Billed Length = [item-587_quantity] = 1 (that’s the Min size value of this slider, expected behavior )
    I’ve got some more calculation going on afterwards, but the point is that it works and shows the price “150" right away, you can check it here.

  • on v9.702 / 9.706 the math breaks:
    Billed Length = 4
    That comes from another item, “Live video length, min” slider that has "Show it depending on conditions” and is not supposed to be shown and calculated (expected behavior):


    The following calculation doesn’t work, the final price shows as 600 ( wrong, unexpected behavior ), changing the slider doesn’t change the price (wrong).

You can check the same form working with v9.706 here.

I would appreciate if you could share your thoughts. I need some help.
So far I have to refrain from upgrading the plugin, as the math / logic breaks.

Hey Maksim,

For this case, we need to check the setup of E&P in the backend so please give us the following info in a Secure Note.

  • WordPress Login URL of both live and staging
  • Admin level username and password

You can find the Secure Note button at the bottom of your posts.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.