• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Issue: Pricing places and rounding throughout

LEGEND ,
Sep 14, 2016 Sep 14, 2016

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.

Screenshot 2016-09-15 12.13.17.png

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:

Screenshot 2016-09-15 12.24.51.png

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.

Screenshot 2016-09-15 12.30.08.png

Pricing is rendering crazy decimal placement values.

TOPICS
Developer

Views

164

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines