AbanteCart Community

Shopping Cart Operations => Support => Topic started by: galaxy77 on May 22, 2016, 05:11:31 PM

Title: Showing 2 Product Prices for 1 Product
Post by: galaxy77 on May 22, 2016, 05:11:31 PM
I have been trying to resolve this issue for hours, and I can find no explanation.  I have added a product that totals £69.99 inc. VAT, but on the product page it shows £69.99 in the main grey box, but a total price of £70.00. Here is the link, enscomputers.co.uk/home-cctv/d-link-eyeon.  There is another product that totals £14.99 which shows the correct price in both places. Here is the link enscomputers.co.uk/apple/usblt2mw

Any ideas why this could be happening?  Any help would be appreciated!  :)
Title: Re: Showing 2 Product Prices for 1 Product
Post by: Basara on May 23, 2016, 02:57:10 AM
Hello.

So your product price is 58.33
you have 20% VAT = 11.666
sum 58.33+11.666 = 69.996  and if round to the 2 digit total = 70.00 (rounded up because higher than 5)
Title: Re: Showing 2 Product Prices for 1 Product
Post by: galaxy77 on May 23, 2016, 08:52:18 AM
Hi,

The problem is the item is showing two different prices, I can't get it is show one price or the other.  See this link - enscomputers.co.uk/home-cctv/d-link-eyeon

Any ideas to the solution?

Jo
Title: Re: Showing 2 Product Prices for 1 Product
Post by: eCommerce Core on May 23, 2016, 09:44:25 AM
This looks like a rounding issue.

What version of Abantecart do you run? I checked on 1.2.7 and I get same 70.00 shown in all places
Title: Re: Showing 2 Product Prices for 1 Product
Post by: galaxy77 on May 23, 2016, 10:27:16 AM
Hi,

I am using 1.2.7, I upgraded last week.

Jo,
Title: Re: Showing 2 Product Prices for 1 Product
Post by: eCommerce Core on May 23, 2016, 11:09:24 AM
Hi,

I am using 1.2.7, I upgraded last week.

Jo,
Can you port your settings? Default currency, tax, product price, etc or can you PM admin access?

Thank you.
Title: Re: Showing 2 Product Prices for 1 Product
Post by: eCommerce Core on May 23, 2016, 11:09:42 AM
Hi,

I am using 1.2.7, I upgraded last week.

Jo,
Can you post your settings? Default currency, tax, product price, etc or can you PM admin access?

Thank you.
Title: Re: Showing 2 Product Prices for 1 Product
Post by: galaxy77 on May 24, 2016, 10:25:51 AM
I have PM'd you more information.

Jo,
Title: Re: Showing 2 Product Prices for 1 Product
Post by: eCommerce Core on May 24, 2016, 01:05:14 PM
Thank you. I am able to replicate this problem.
Issue that you set price to 58.3252. If you put 58.33, it will solve the issue for now.

I will check for code fix
Title: Re: Showing 2 Product Prices for 1 Product
Post by: eCommerce Core on May 24, 2016, 02:31:19 PM
Here is a fix for the rounding issue. Copy file and replace

https://github.com/abantecart/abantecart-src/commit/49c9d9390455b6c930846b3e1c1a8c8ec1a061d5

Title: Re: Showing 2 Product Prices for 1 Product
Post by: galaxy77 on May 25, 2016, 08:17:21 AM
Hi,

I have done what you recommended, and now I can't get it to show £69.99, only £70.00.  Any suggestions?

Jo,