AlegroCart open source E-commerce
Web hosting by Host1Plus

Trouble in calculating the total cost

Enter AlegroCart Bugs Here, but if you're not certain, post in General support first.

Trouble in calculating the total cost

Postby vijaya6jun » Wed Feb 17, 2010 5:38 am

Hi,
Vijayalakshmi here
Have a problem

In currency options
on converting to India currency
example
1USD=Rs45.96/-

calculating the cost using options

the regular price is 45.96 rupees, with a option depending on size the cost is 4,044.48 rupees(just an example)
the calculation in Alegrocart is "Price with Options = Rs.49.96 /-"
but it should be Rs4,090.44/-

the cost is correct in the cart, but has some prob in display of Price with Options = Rs."........." /-
Could you please check and help me to rectify it,.................

regards,
Vijayalakshmi
vijaya6jun
 
Posts: 14
Joined: Wed Feb 17, 2010 5:12 am

Re: Trouble in calculating the total cost

Postby Brent » Wed Feb 17, 2010 8:52 am

I will have a look.
The price calculation you see in the price with options is all done by Javascript.
I didn't do the rupees.
(ps) what version do you have installed.

Can you post your currency set-up so I can recreate it.

edit: The problem is the comma in the option price. I'll add the code to strip commas and post tomorrow.
User avatar
Brent
Site Admin
 
Posts: 4388
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Trouble in calculating the total cost

Postby vijaya6jun » Wed Feb 17, 2010 10:00 am

Hi,
Thanks for your reply.......

You have provided three options for currency
->Canadian dollar
->USD
->British Pound

I added another option with the code for India(INR) and a default value of 1.0000 which was updated automatically to the currency value of 45.00

I am using Alegrocart 1.1

Things are working fine, the prob is only when it displays the price with options......

its calculating in this way
A+B=C
Rs45.26+Rs3,100=48.26

Its taking only the first digit of B.
vijaya6jun
 
Posts: 14
Joined: Wed Feb 17, 2010 5:12 am

Re: Trouble in calculating the total cost V1.1

Postby Brent » Thu Feb 18, 2010 4:04 am

Attachment includes modification to product options for select or radio. Fix for Version 1.1

Upload these 2 files
Attachments
Product Options.zip
For Version 1.1
(2.58 KiB) Downloaded 421 times
User avatar
Brent
Site Admin
 
Posts: 4388
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Trouble in calculating the total cost

Postby vijaya6jun » Thu Feb 18, 2010 10:46 am

The bug is fixed
Really it was a fast reply.....
Happy about it
Thank you so much
vijaya6jun
 
Posts: 14
Joined: Wed Feb 17, 2010 5:12 am


Return to Bug Reports

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron