Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All prices displaying as 0 in main cart but ...


Guest

Recommended Posts

I have entered some products into my shopping cart and in the admin area everything looks fine however when I go to the the main cart all the products are showing a price of 0

 

I have removed all countried from the cart as I only want New Zealand and also removed all currencies and added NZ as the default. From what I can see everything looks right so I dont know why its showing 0

 

Can someone please give me some suggetions to check

 

Thanks

Link to comment
Share on other sites

In Admin ~ Configuration ~ My store, what is the setting for Switch to Default Language Currency?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Its set to True at the moment. Country and Zone are both set to New Zealand. Ive changed it to false and seems to be ok now... Thanks :-)

Link to comment
Share on other sites

Glad to help out. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Hello I am having the same problem as the original post. I have set up my store in English, the default currency is (GBP) United Kingdom pounds. Everything looks fine in admin but in the store everything costs ?0.

 

My country is set to United Kingdom, and the Switch to default language currency is set to false. I have gone in to update zones, but the popup list doesn't have anything in it for me to select.

 

I am using 2.2 and I have added mods. Everything was working fine until I switched the currency to UK pounds and deleted US dollars.

 

I am using this in the value field:1.00000000

 

If you guys could help it would be greatly appreciated.

 

Thanks

 

Anil.

Link to comment
Share on other sites

  • 4 weeks later...

I'm having exactly the same problem, but it hasn't just fixed itself for me :(

 

I removed all other currencies except GBP, and made that the default. I have removed all other languages such that English is the default, and unfortunately, like Anil all prices are displayed as 0 (the problem occurred as soon as i deleted dollar currency).

 

I found a short term fix for it by going into includes/classes/currencies.php and inserting GBP into the line

// class methods

function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {

 

so that it looks like this

 

// class methods

function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = 'GBP') {

 

Although this seemed to work, i then noticed that in the pament stage, the sub total, tax and total were all 0, so i have reverted the code back the original.

 

Can anyone help me?

 

Kind regards,

 

Tim

Link to comment
Share on other sites

Right, i got it working! /me pats me back :)

 

I think the problem may have been due to one of the following:

 

I had been testing the shop in dollars before i changed to pounds. Thus, there were some prices in the order processing that for some reason where still in dollars... i only just noticed this.

 

So i deleted all orders, and then prices and customers aswell to be sure!

 

Or perhaps it was setting the use currency of language to false, however I'm sure i tried true and flase countless times in roatation. It never worked when i hit refresh, but just now, I closed down the browser and opened it up again and it worked.

 

Who knows...

 

kind regards,

 

Tim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...