Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zero '0' in my price


Guest

Recommended Posts

Been trying to get my prices to show the correct value without much success. I've searched the forums and tried the suggestions without any luck. I have my price showing up in the admin side, with the correct currency (GBP set to default and updated, value 1.00000) it also shows in admin with the correct nett and gross for the tax. But for some reason when I view the site all I get is zeros. For some reason I noticed that they had changed to $ so I deleted the Euro and Dollar to leave only GBP thats when it went to zero price.

I have two taxes standard and exempt and the zone classes are europe and outside europe. I'm pretty sure they are set right. Any help?? Can't realy have a store they sells everything at ?0 now can I. :rolleyes:

Link to comment
Share on other sites

For some reason I noticed that they had changed to $ so

 

Thanks for that clue Rochdalemark

 

is this going to be a uk based site

 

you will need to set the default to gbp as follows

 

catalog/includes/languages/english.php around about line#37

 

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'GBP');

however you may wish to take it a couple of stages further with the following

 

English Default

catalog/includes/languages/english.php line# 19-45

 

@setlocale(LC_TIME, 'en_UK.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%d/%m/%Y'); ?// this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format dd/mm/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
? return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
? return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'GBP');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

 

then Line# 73

 

define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

 

then line# 186-187

 

define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: DD/MM/YYYY (eg 21/05/1970)');
define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 21/05/1970)');

 

all line numbers are approximates as my code is modified.

 

remember that you will need to make some changes to the admin/includes/languages/english.php as well

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

All I can say is your a diamond geezer :rolleyes: Worked a treat. and thanks for the quick reply to my problem.

All Iv'e got to do now is sort out the bugs that are shown.

i.e

Notice

: A session had already been started - ignoring session_start() in file modules/shop/includes/functions/sessions.php line 67

Notice [php]: A session had already been started - ignoring session_start() in file modules/shop/includes/functions/sessions.php line 67

Notice [php]: Constant FILENAME_AFFILIATE_LOGOUT already defined in file modules/shop/includes/affiliate_application_top.php line 90

Notice [php]: Undefined index: ref in file modules/shop/includes/affiliate_application_top.php line 108

Notice [php]: Undefined index: ref in file modules/shop/includes/affiliate_application_top.php line 108

Notice [php]: Undefined index: affiliate_ref in file modules/shop/includes/affiliate_application_top.php line 150

Notice [php]: Use of undefined constant breadcrumb - assumed 'breadcrumb' in file modules/shop/includes/affiliate_application_top.php line 162

 

I'm trying to find a way to take the affiliates off the store but not having much luck in finding an answer in the forums, they just seem to be about modifying them and not removing it.

 

Once again thank you. :D

Link to comment
Share on other sites

is the last line in catalog and admin includes/configure.php files

define('STORE_SESSIONS', 'mysql');

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

define('STORE_SESSIONS', 'mysql');
yeah I have that line in both those files. The one in admin/includes was blank so I put in 'mysql', logged into my catalogue product description page and got more errors than before.

Notice

: A session had already been started - ignoring session_start() in file modules/shop/includes/functions/sessions.php line 67

Notice [php]: A session had already been started - ignoring session_start() in file modules/shop/includes/functions/sessions.php line 67

Notice [php]: Constant FILENAME_AFFILIATE_LOGOUT already defined in file modules/shop/includes/affiliate_application_top.php line 90

Notice [php]: Undefined index: HTTP_REFERER in file modules/shop/includes/affiliate_application_top.php line 103

Notice [php]: Undefined index: ref in file modules/shop/includes/affiliate_application_top.php line 108

Notice [php]: Undefined index: ref in file modules/shop/includes/affiliate_application_top.php line 108

Notice [php]: Undefined index: affiliate_ref in file modules/shop/includes/affiliate_application_top.php line 150

Notice [php]: Use of undefined constant breadcrumb - assumed 'breadcrumb' in file modules/shop/includes/affiliate_application_top.php line 162

Notice [php]: Undefined index: content in file modules/shop/blocks/categories.php line 43

Notice [php]: Undefined offset: 1 in file modules/shop/blocks/categories.php line 61

Link to comment
Share on other sites

what level of error reporting do you have set in php.ini and is this a nuke install as I see that you have blocks

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

I like the server 404 message very hitch

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

  • 2 weeks later...

I Had the issue, I deleted all currencies and left US dollar as the only currency. I have two languages, English and Spanish; I noticed that when I was using English as the language I was getting the correct prices but when I switched tp Spanish I was getting all zero as the price for all products. I changed the default currency in the espanol.php language file and it worked. I guess you can do the same or check you equivavalency formula between you currency and your euros.

 

Hope this helps..

 

-LG

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...