close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Total price of order rounds decimals

Thread began 1/23/2010 9:53 am by fraskos393357 | Last modified 1/29/2010 3:45 pm by Eric Mittman | 935 views | 7 replies |

fraskos393357

Total price of order rounds decimals

hello
I have the following problem. The total price rounds the decimals.
I Have "force decimals" unchecked at the e-cart object. And the allowed decimals are four.
For example when the price of a product is 80.9 euros, the total price at the Order review is 90 euros.

Any ideas?

I attach the files also...
the cart is located at: cart.php?

Thanks

Attached Files
files.zip
Sign in to reply to this post

Eric Mittman

I'm doing some testing with this and was curious if you noticed this after upgrading to the latest eCart, or if the problem happened after you crafted some of your charge rules?

I'm able to reproduce the result you are getting and need to do some more investigating to discover the problem but this info would help.

Sign in to reply to this post

fraskos393357

Hello Eric
I didn't make an upgrade, i just purchased the latest version of e-cart.
And it rounds decimals with or without the shipping rules applied...

Thanks

Sign in to reply to this post

Eric Mittman

I have been doing some testing of this and it seems that there is a problem with the force decimals option. In the files that you sent on line 278 of the cart page you have this for the definition:

php:
$WA_Store_Cart = new WA_Store_Cart_Definition("WA_Store_Cart", 0, "€", "", false, 4, 0, "kg", false, 4, 1, 0);



In this code it is the false after the "", that is the setting for force decimals. When you check your eCart object what do you see in the interface? Make sure that the box for force decimals is checked. It should update this code to include decimals out to 4 places. Please give this a try and let us know what you experience.

Sign in to reply to this post

fraskos393357

Hello,
I have enabled the force decimals option and put the decimals places to 2 and it works. It didn't work before maybe because it was at 4.
Thanks

Sign in to reply to this post

Eric Mittman

I have done some further testing of this and I have been able to reproduce and overcome the problem within the PowerStore. What I noticed was that the parameters did not seem to be matching when I was changing them manually in the store cart file where the cart is created. This lead me to look at the way the cart function was defined. This occurs at the top of this store cart page. I then checked into the eCart definition file and found that the definition there differs from the one in the store cart. When I updated this with the latest version of eCart I was able to create a new cart definition file that had the missing parameter.

I'm posting a copy of my new cart definition file for you. Please backup your current file with the same name then save this one into your WA_eCart folder. Let us know the result you get when you use this file.

Attached Files
WA_eCart_Definition_PHP.zip
Sign in to reply to this post

fraskos393357

hello eric.

It doesn't work. Maybe i'm missing something but i think i have done everything right. I uploaded the file you attached at the WA ecart folder and the total cost is rounded again. Also, it didn't correct the other issue with the cart update. Do you think it would be a good idea to send you the files with the delete checkbox that doesn't work, the cart definition file and the store cart file? So you can check them and provide a solution? If you think so, i have already attached them. I'm really in a dead-end here and the client's pushing for project delivery.

Thanks

Sign in to reply to this post

Eric Mittman

I thought the cart file might be the problem but it seems that it is not. I have opened a ticket for you on this issue. To check the status of a ticket or update it login to webassist.com and visit your support history.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...