Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All prices of products displayed as 0


Guest

Recommended Posts

Posted

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

Posted

Is there an easy way to debug and see what's going on in all the variables? Maybe I can spot the problem there?

Posted
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)

Posted

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

Posted

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

Posted

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

Posted

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 !

Posted

That just goes to show why you need to give us all the information in the first place.

 

Remember for next time m8.

 

CC.

Posted

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.

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...