Copy link to clipboard
Copied
Hello BC team.
Pricing rendering has a number of issues at the moment and I have issues with the available filters.
If you have a product with Tax You can see at the bottom the totaldiscounted price and total price are rendering to 3 decimal places not 2 as it should.
If you try to attempt to fix this with filters you run into issues.
round: 2 - will round down to 8.08 and the expected value should be 8.09
ceil - will round the int not the float value
money - returns correct price but adds the currency character in place where you may not want this.
| number: "F2" seems to be the one that solves this.
This is for the small and large layouts for products. Would it not be just right to fix the raw values themselves or use cases etc to keep the 3 decimal placed values? If there is that then why do the other prices only go 2 decimal places?
It does not end there...
Shopping cart summary:
Total Amount - Correct, Inclusive of GST but there is no ex GST option so this would have to be formed manually by a dev
Price - This is incorrect, this is Price Excluding GST not inclusive
Total Price - This being quantity times GST price - this appears to be correct but again 3 decimal places.
Shopping cart summary | Business Catalyst Developers
The doc's say things should be 2 decimal places.
But the output here is very basic and just not correct.
Pricing for the items should reflect the same as sorts of options as they do in the cart where they have better tax options
I am of course working all around these but can they not just be correct?
Checkout:
Checkout suffers similar issues with the items.
Pricing is rendering crazy decimal placement values.