casper1437 Posted October 15, 2005 Share Posted October 15, 2005 i have install this contrib --> http://www.oscommerce.com/community/contributions,1323 require ('includes/classes/xmldocument.php'); // if using the optional dimensional support, set to 1, otherwise leave as 0 define('DIMENSIONS_SUPPORTED', 0); i had set to "0", what if i need to use dimension pakaging? ******************************************* Fatal error: Cannot redeclare tep_db_connect() (previously declared in D:\wwwroot\oscommerce\admin\includes\functions\database.php:13) in D:\wwwroot\oscommerce\admin\includes\functions\database.php on line 13 i got this error when i go to ADMIN --> TOOLS --> PACKAGING what does this mean? ******************************************* UPS Currency Code - Enter the 3 letter currency code for your country of origin. United States (USD) this found at the ADMIN --> MODULES --> SHIPPING --> United Parcel Service (XML). the shipping rate will return the query form UPS using my country of origin. said i live in singapore, the currency in shipping query result will be in SGD, can i set to display USD? ******* tks in advance Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 15, 2005 Share Posted October 15, 2005 i had set to "0", what if i need to use dimension pakaging? Set to 1 and do all the things that are described in the file dimensions.txt that came with the package. My advice: don't.i got this error when i go to ADMIN --> TOOLS --> PACKAGING what does this mean? That something goes wrong. Never seen this myself, search for the phrase in the forums.the shipping rate will return the query form UPS using my country of origin. said i live in singapore, the currency in shipping query result will be in SGD, can i set to display USD? Not with a setting in UPS XML. You would need to change the upsxml.php file and add code to convert the quotes received from UPS into another currency using an exchange rate. Quote Link to comment Share on other sites More sharing options...
casper1437 Posted October 18, 2005 Author Share Posted October 18, 2005 hi JanZ, tks to your reply but i still have the 1 problem of the upsxml.php the shipping rate will return the query form UPS using my country of origin. said i live in singapore, the currency in shipping query result will be in SGD, can i set to display USD?Not with a setting in UPS XML. You would need to change the upsxml.php file and add code to convert the quotes received from UPS into another currency using an exchange rate. if i will have to hard code the exchange rate in upsxml.php file, where should i hard code the exchange rate. said i have to set the exchange rate SGD 1 = USD 0.60. can you guide me, many many tks :thumbsup: :thumbsup: :thumbsup: ************************* i had set to "0", what if i need to use dimension pakaging? Set to 1 and do all the things that are described in the file dimensions.txt that came with the package. My advice: don't. --> noted tks ************************* i got this error when i go to ADMIN --> TOOLS --> PACKAGING what does this mean? That something goes wrong. Never seen this myself, search for the phrase in the forums. --> i will search in forum Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 19, 2005 Share Posted October 19, 2005 if i will have to hard code the exchange rate in upsxml.php file, where should i hard code the exchange rate. said i have to set the exchange rate SGD 1 = USD 0.60. Look around line 259: END of doing things differently: */ $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost)); Here the handling fee is added to the cost, this is one point where you can manipulate the $cost. I guess this could work: $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + ($cost*0.60))); Quote Link to comment Share on other sites More sharing options...
casper1437 Posted October 20, 2005 Author Share Posted October 20, 2005 JanZ Tks, it works good. :thumbsup: :thumbsup: :thumbsup: Quote Link to comment Share on other sites More sharing options...
dr_lucas Posted March 22, 2014 Share Posted March 22, 2014 Just for anyone else who is reading this. Exchange rate fluctuates greatly from time to time, so hard coding it is a BAD idea. You should have the currency auto update on a daily basis from a currency server and use a variable with the daily updated currency rather than hard coding it. Quote Did I help you? Click "Like" or "Thanks"! It's free of charge. :)My contributions:Total Configuration (newly updated 07/2018, for both osC 2.2 and 2.3.4.1 BS Frozen CE)User Tracking with Admin 1.0 (newly updated 07/2018)FedEx - Web Services v9, FAQ System , Who's Online Enhancement, Order Editor, MoneyBookers IPN, Ship in Cart (MS2), Admin Products Paging, Margin Report v1.00, 2Checkout INS / IPN (Instant Notification System) for MS2.2, Visitor Web Stats, Time Zone Offset - Adjust to match your location, Category Meta Tags Link to comment Share on other sites More sharing options...
burt Posted March 22, 2014 Share Posted March 22, 2014 Todays prize for digging up the oldest thread goes to @dr_lucas ;) Quote Link to comment Share on other sites More sharing options...
dr_lucas Posted March 22, 2014 Share Posted March 22, 2014 @@burt lol I can go even older... Quote Did I help you? Click "Like" or "Thanks"! It's free of charge. :)My contributions:Total Configuration (newly updated 07/2018, for both osC 2.2 and 2.3.4.1 BS Frozen CE)User Tracking with Admin 1.0 (newly updated 07/2018)FedEx - Web Services v9, FAQ System , Who's Online Enhancement, Order Editor, MoneyBookers IPN, Ship in Cart (MS2), Admin Products Paging, Margin Report v1.00, 2Checkout INS / IPN (Instant Notification System) for MS2.2, Visitor Web Stats, Time Zone Offset - Adjust to match your location, Category Meta Tags Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.