Jump to content

Price range behavior with 3+ decimals


Recommended Posts

PS 1.4.4.1.

 

I am seeing some weird behavior of the price range system for carriers. Example:

I have a carrier called PostNL.

There are 3 price ranges defined:

0 - 24.99 - 6.75

25 - 98.99 - 3.95

99 - free shipping.

 

When i enter the price ranges with 2 decimals (like 24.99) AND when a product has a price of 24.99 the shipping costs disappear from the cart and are essentialy 0 euro.

BUT when i enter a price range with 3+ decimals (like 24.999) then the correct carrier costs are displayed.

 

It seems that a conditial IF statement in the Cart.php class is responsible for this.

Is anybody experiencing the same behavior and knows where to look in the php Class?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...