Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS XML Shipping


casper1437

Recommended Posts

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)));

Link to comment
Share on other sites

  • 8 years later...

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.

Link to comment
Share on other sites

@@burt lol

I can go even older...

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...