Guest Posted September 21, 2002 Posted September 21, 2002 I just installed yesterdays snaphot of version 2.2 and noticed something weird: all the prices of the sample products are displayed as 0. I checked the DB and there the normal prices are in the records. For example, I checked product_info.php and noticed the $currencies->display_price(... lines. The parameters there seem to OK, the correct price is there and the correct tax % is given to the function 'tep_get_tax_rate'. However, 0 keeps being displayed. I don't find a solution. Does anyone of you have a clue of where it could go wrong? Thanks Kristof
Guest Posted September 21, 2002 Posted September 21, 2002 Is there an easy way to debug and see what's going on in all the variables? Maybe I can spot the problem there?
Mark Evans Posted September 21, 2002 Posted September 21, 2002 I don't find a solution. Does anyone of you have a clue of where it could go wrong? Have you changed the default currency or removed a currecny??? If so make sure you close all of your browser windows then click on update currencies in the admin tool Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds)
glitter Posted September 22, 2002 Posted September 22, 2002 I had the same problem. I fixed it by going into admin, then currency. I had decimal points set at two when it was supposed to be blank, (making my prices $0). When I moved the 2 to decimal places it showed my prices correctlly ($2.39, $89.87, etc) I hope this helps some www.touchofglitter.ca
Guest Posted September 22, 2002 Posted September 22, 2002 First of all, thanks guys for your suggestions. I tried the update currencies trick but unfortunately that doesn't work for me. I did indeed remove all currencies except Euro, and changed the ratio to 1,0000. I think my currency setup is allright for Belgian standards: Title: Euro Code: EUR Symbol Left: ? Symbol Right: Decimal Point: , Thousands Point: . Decimal Places: 2 Last Updated: 09/22/2002 Value: 1.00000000 Example Output: ?30,00 = ?30,00 Any other suggestions? I'm near the point where I want to rebuild the complete database, because I skipped some of the inserts that (I thought) were of no importance to me. Maybe some of them were :? I'll take a backup and see what happens ... Thanks for the help !! Kristof
Guest Posted September 22, 2002 Posted September 22, 2002 OK, I backup'ed my database and dropped all tables. Then I rebuilt the entire catalog with all defaults and sample data and tadaaaah !!! The prices are shown perfectly now !!! I still don't get it what went wrong, so it was a mistake not to install this product 'by the book'. I'm outta here, gotta fill some tables with products ;-) Greetings Kristof
Guest Posted September 22, 2002 Posted September 22, 2002 Believe it or not, but after a complete rebuild of the database, the problem came back !! But I found what was causing the problem: yesterday I downloaded a Dutch translation from the contribution page. When I define that I only want the Dutch language, all products are displayed with price 0. When I recreate English and switch back to it, prices are displayed correctly. I'm going to translate myself I guess, as no complete Dutch translations are available. Cya !
CC Posted September 22, 2002 Posted September 22, 2002 That just goes to show why you need to give us all the information in the first place. Remember for next time m8. CC.
Guest Posted September 22, 2002 Posted September 22, 2002 After adjusting the localisation to what I need, I found I had the same problem. An 'update currency' didn't work either. It turned out that I didn't have a 'default' currency selected ! The update worked fine after that. Silly mistake, but there you go.
Akazukin_chacha Posted September 27, 2002 Posted September 27, 2002 Hello, I try to change the currency from USD to Euro... So I delete all the currency except the euro (code EUR). In the application_top.php, I put the DEFAULT_CURRENCY to EUR but when I try to see an item, it set the price to ?0.00 :( I didn't find the "update currency". Someone could help me ? I work with the 2.1 version of OsCommerce. Thanks in advance Chacha
Recommended Posts
Archived
This topic is now archived and is closed to further replies.