johnnyzmodz Posted December 22, 2004 Share Posted December 22, 2004 alright my webpage shows 0 dollars for everything www.johnnyzmodz.com and on the side where it says currency it shows U.S and when u change that currency to canadian then it shows the prices.. then when you switch it back to u.s it shows the u.s prices but not when the page first loads?? any ideas? i want canadian to be the default currency too.. someone help because my website is unusable until i fix this problem. THANX! Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 23, 2004 Author Share Posted December 23, 2004 bump please people this is like 2 weeks now without an answer? Link to comment Share on other sites More sharing options...
♥Vger Posted December 23, 2004 Share Posted December 23, 2004 Okay, when you set up your site US Dollars was the default currency. Have you changed this without clicking the 'Update' link in Currencies? As you have US Dollars as the default currency in your control panel, do you have it as the default in your includes/languages/english.php file? It should read 'USD' If you want Canadian Dollars as your default currency then make it so in your control panel, update currencies (so that canadian dollars is 1.0 against whatever the us dollar rate to the canadian dollar is), and then make sure that in includes/languages/english.php that the default currency is set to 'CAN' (I think this is the three letter code for canadian dollars). Vger Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 24, 2004 Author Share Posted December 24, 2004 alright i just have the english.php set as CAD as the canadian dollar as i think thats the 3 letter symbol... and i dunno about the other thing ill check.. i did click update though. Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 24, 2004 Author Share Posted December 24, 2004 alright i clicked update and it says primary sever failed or whatever.. then it says trying secondary server.. secondary server failed... are you sure USD and CAD is a valid currency code?? i dont get this because it is the valid currency code... please help! Link to comment Share on other sites More sharing options...
♥Vger Posted December 24, 2004 Share Posted December 24, 2004 I just checked, and CAD is the valid currency code for Canadian Dollars. Seems like you have a problem connecting to the two sites for updating currencies. The first is OANDA, and can't remember what the second one is. Do a search on these forums for '+connect+oanda' Vger Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 24, 2004 Author Share Posted December 24, 2004 but even so why are the prices only showing 0 dollars for all the products unless you chose a category? its like its not going to a default category, even tho on the right hand side usd is selected default the prices are 0 until you pick CAD or USD again Link to comment Share on other sites More sharing options...
peterr Posted December 25, 2004 Share Posted December 25, 2004 Hi, I don't know if it will do anything, but as your layout is not the std osCommerce layout (nice website though, looks good), your form named 'currencies' has the language field name in the same form. The languages only usually need to be a link and not part of a form submision. So, try taking the field named 'language' out of the form named 'currencies'. From memory, these are somewhat linked, especially if you have the admin setting to state 'change to default currency when language selected' or something like that ?? In summary, it currently needs that form submission for prices to show. Peter Link to comment Share on other sites More sharing options...
Guest Posted December 26, 2004 Share Posted December 26, 2004 Hi, I don't know if it will do anything, but as your layout is not the std osCommerce layout (nice website though, looks good), your form named 'currencies' has the language field name in the same form. The languages only usually need to be a link and not part of a form submision. So, try taking the field named 'language' out of the form named 'currencies'. From memory, these are somewhat linked, especially if you have the admin setting to state 'change to default currency when language selected' or something like that ?? In summary, it currently needs that form submission for prices to show. Peter <{POST_SNAPBACK}> I am in Canadian and had a problem with OANDA. I found the CND did NOT work but Can$ DID. OANDA returned a value of $1.00 so I just changed it to 1.235 ( my site will have US$ as the default( but you can make Can$=1.00 and US$=0.84) Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 28, 2004 Author Share Posted December 28, 2004 alright i need the post before the last one explained to me in english thanks tho.. atleast someones trying to help me.. i didn't do the site i paid some kid to do it and then all these problems are happening so he just ran away.. so im trying to fix it.. so can that be explained exactly what i have to do?? thankyou, cheers, Link to comment Share on other sites More sharing options...
peterr Posted December 28, 2004 Share Posted December 28, 2004 Jonathan, If your site is the one mentioned in post #1, I can't reach it at present, ..timeout ?? Peter Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 30, 2004 Author Share Posted December 30, 2004 yes sorry, the hosting is being upgraded it should work alright now. thankyou, Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 30, 2004 Author Share Posted December 30, 2004 well i think someone on here was somehow playing with my website because now its wide like it should be but my themes are gone.. i dont know how anyone did this but whoevers changing it go ahead :) as long as the theme works afterwords.. thankyou Link to comment Share on other sites More sharing options...
♥Vger Posted December 30, 2004 Share Posted December 30, 2004 You have to get your 'admin' folder both renamed and password protected immediately. If you then want to give one person access to it to help you that's fine - but at the mo' anyone can go in there and trash it. And, unfortunately, even on these forums, there are idiots who will do that. Vger Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 30, 2004 Author Share Posted December 30, 2004 alright, because it looks like someone went in there and "trashed" it.. but atleast i have a backup... i just wish i could get this site working proper! alright i just looked but i cant find any place to put a password in... also whoever went in there just changed the theme :).. but i need to figure out how to put a password and get the currencys working Link to comment Share on other sites More sharing options...
peterr Posted December 30, 2004 Share Posted December 30, 2004 Hi, As Vger pointed out, rename the folder admin to something else for a start. You need two files to password protect the 'admin' path. Use this tool at: http://www.webmaster-toolkit.com/htaccess-generator.shtml and enter something like: Username: mickey Password: mouse Path: /somewhere hit the 'generate .htaccess' button, and the 2 files are there for you to copy and use. Of course, in the above example, use the real password that you intend to use, but leave the username and path as is, you can change those manually later. Both files go in your 'admin' path. For added security, you can rename the file .htpasswd to something else, beginning with a period, but make sure you also change the name in the .htaccess file. You can also place the 'password file' outside of your web root path, for added security, however any decent server setup will have the security in place, so that no one can read any file beginning with a period from a browser. HTH, Peter Link to comment Share on other sites More sharing options...
♥Vger Posted December 30, 2004 Share Posted December 30, 2004 As Peter has said, you can protect it via .htaccess, but if you don't know much about that side of things there may be an easier way. First of all, just FTP to your website, select the 'admin' folder and click on 'Rename' and change the name to something else. Then, go into admin/includes/ and download configure.php and edit it in a plain text editor (Notepad), and where you see file pathway references to /admin/ change these to /newname/ After you have uploaded that file back to the admin/includes/ folder then go to your web hosting control panel, and look for a feature called Password Protect or Protect Directories. Search for the new 'admin' folder and click to protect it, selecting a User Name and Password. Doing it this way it will set up the .htaccess and 'htpassword files for you correctly. Vger alright, because it looks like someone went in there and "trashed" it.. but atleast i have a backup... i just wish i could get this site working proper! alright i just looked but i cant find any place to put a password in... also whoever went in there just changed the theme :).. but i need to figure out how to put a password and get the currencys working <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
johnnyzmodz Posted December 31, 2004 Author Share Posted December 31, 2004 alright thnx alot got that all sorted out... now does anyone know about the currency problem now?? its the only thing holding me back! Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2005 Share Posted January 2, 2005 It appears that you have a problem with the function get_browser_language() - this can be found in catalog/includes/classes/language.php - try replacing this file if you have modified it and check for the following function call in /includes/application_top.php: include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } $language = $lng->language['directory']; $languages_id = $lng->language['id']; } Matti Link to comment Share on other sites More sharing options...
johnnyzmodz Posted January 2, 2005 Author Share Posted January 2, 2005 k thnx ill try that right away! Link to comment Share on other sites More sharing options...
johnnyzmodz Posted January 2, 2005 Author Share Posted January 2, 2005 alright the function is being called... and there has been no modifications to the language.php... but i will replace it anyways.. where can i get the original language.php?? thnx Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2005 Share Posted January 2, 2005 You can download the osCommerce package here Matti Link to comment Share on other sites More sharing options...
johnnyzmodz Posted January 3, 2005 Author Share Posted January 3, 2005 yea but then i have to install it on the server dont i to get that file?? i dont want to reinstall i just want the file..! thnx Link to comment Share on other sites More sharing options...
peterr Posted January 3, 2005 Share Posted January 3, 2005 Hi, As Matti stated, download osCommerce, then unzip the file locally, and upload only the file (catalog/includes/classes/language.php) you need, to your sebsite. Peter Link to comment Share on other sites More sharing options...
johnnyzmodz Posted January 3, 2005 Author Share Posted January 3, 2005 prices still dont work after replacing that file... and currency is still defaulting on U.S please help! thnx Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.