Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Price stuck at Zero (0)????


blaircampbell

Recommended Posts

Have you recently changed default language or currencies

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Yes as a matter of fact I have???

 

I just had a look and I changed the US defaul currency to Canadian. Now I have fooled around and added a second canadian currency that is by mistake also set to default.. now I can't delete either and its not showing me the set as default check box.

Link to comment
Share on other sites

You must make sure that the default language has the correct currency applied to it.

 

Assuming english as main language, and Can$ as your currency.

 

1. Open up includes/languages/english.php

2. Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'CAD');

3. Change "USE_DEFAULT_LANGUAGE_CURRENCY" to true in your Shop Admin.

Link to comment
Share on other sites

  • 10 months later...
You must make sure that the default language has the correct currency applied to it.

 

Assuming english as main language, and Can$ as your currency.

 

1.  Open up includes/languages/english.php

2.  Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'CAD');

3.  Change "USE_DEFAULT_LANGUAGE_CURRENCY" to true in your Shop Admin.

 

How will i solve this problem as i have chnaged from the usd to Pound sterling and have zero prices

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
You must make sure that the default language has the correct currency applied to it.

 

Assuming english as main language, and Can$ as your currency.

 

1.  Open up includes/languages/english.php

2.  Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'CAD');

3.  Change "USE_DEFAULT_LANGUAGE_CURRENCY" to true in your Shop Admin.

 

Great stuff, thanks a lot for that one aswell, i had the same problem :thumbsup:

Link to comment
Share on other sites

I am having this currency problem too! Everything is ending with '.00'

This is only happening after exporting the list from the kelkoo contribution.

 

Could anyone reading this code below please tell me what I am doing wrong?

 

// Prix du produit (price)
 if ($new_price = tep_get_products_special_price($products['products_id'])) {
   $kelkoo_list .= number_format((tep_round($new_price, $currencies->currencies[DEFAULT_CURRENCY]['decimal_places'])) + (tep_calculate_tax($new_price, tep_get_tax_rate($products['products_tax_class_id']))), 2, '.', '') . "\t";
 } else {
   $kelkoo_list .= number_format((tep_round($products['products_price'], $currencies->currencies[DEFAULT_CURRENCY]['decimal_places'])) + (tep_calculate_tax($products['products_price'], tep_get_tax_rate($products['products_tax_class_id']))) , 2, '.', '') . "\t";
 }

Link to comment
Share on other sites

Blair,

 

Are you using Easy Populate? If so, when you upload your file, make sure your excell spread sheet has the cells formatted to a number with 2 decimals and should not have a "$".

 

I had a similar problem like you described, and reuploaded as a number and everything works fine now.

 

I hope this helps!

 

Skate

 

 

I was making changes in the admin an at some point I noticed that the prices were all ZERO.. I have looked over every setting and can't see where I change it so my prices will appear again?

 

They are 0 on the front end and the backend.

 

Help!!

 

Blair

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
You must make sure that the default language has the correct currency applied to it.

 

Assuming english as main language, and Can$ as your currency.

 

1.  Open up includes/languages/english.php

2.  Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'CAD');

3.  Change "USE_DEFAULT_LANGUAGE_CURRENCY" to true in your Shop Admin.

 

OH~ I LOVE YOU~

THANKS A LOT~

Link to comment
Share on other sites

Just tried this fix but it now displays the wrong amount on the front end?

It should read 9.99 but it reads 10.00.

 

I dont know if this is the answer as I too am a novice, but I tend to apply logic to all I do so, does your 10 come up as 10.00 or is it 1000 if it is the latter check your Administration > Localization > Currencies and make sure you have set it up like this:

 

Decimal Point: .

Thousands Point: ,

Decimal Places: 2

 

Last Updated: xx/xx/xxxx

Value: 1.00000000

 

Example Output:

30 = $30.00

 

If you dont specify a decimal point your price amount will be automatically rounded up, and if you dont show a , or ; for thousands you will get 100000000 instead of 1,000,000.00

 

Hope it helps!

I get frustrated too.

Who was it said "Learning is fun" they obviously never battled with PHP

 

I get this message in my Administration Panel > Catalog

Error: Catalog images directory does not exist: /images/

 

If you can help send me a message.

 

Kind Regards,

Michelle

Link to comment
Share on other sites

  • 1 year later...
1. Open up includes/languages/english.php

2. Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'GBP');

 

Vger

 

Thanks!! Vger, once again youve come to the rescue!

Link to comment
Share on other sites

1. Open up includes/languages/english.php

2. Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'GBP')

 

I did that but the price is still ZERO.

The price is displayed correctly in the admin area.

 

I have recently moved the site to another server and imported the database backup file.

 

HELP!!!!!!!!!!!!!

Link to comment
Share on other sites

  • 3 weeks later...
I did that but the price is still ZERO.

The price is displayed correctly in the admin area.

 

I have recently moved the site to another server and imported the database backup file.

 

HELP!!!!!!!!!!!!!

 

 

I've also done everything in the above posts, and still have the same problem. Prices are still 0, but display

correctly in the admin.

 

Please help...

Charene

Link to comment
Share on other sites

  • 3 months later...
You must make sure that the default language has the correct currency applied to it.

 

Assuming english as main language, and Can$ as your currency.

 

1. Open up includes/languages/english.php

2. Change the define('LANGUAGE_CURRENCY', 'USD'); to define('LANGUAGE_CURRENCY', 'CAD');

3. Change "USE_DEFAULT_LANGUAGE_CURRENCY" to true in your Shop Admin.

 

Thanks that worked for me. :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...