Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help With Federal Express Real Time Quotes (MS1)


Guest

Recommended Posts

I am trying to install this module but I need to know where and what data needs to be in some of the fields.

    function _getMeter() {

     $data = '0,"211"'; // Transaction Code, required

     $data .= '10,"' . MODULE_SHIPPING_FEDEX1_ACCOUNT . '"'; // Sender Fedex account number

     $data .= '4003,"' . STORE_OWNER . '"'; // Subscriber contact name

     $data .= '4007,"' . STORE_NAME . '"'; // Subscriber company name

     $data .= '4008,"' . MODULE_SHIPPING_FEDEX1_ADDRESS_1 . '"'; // Subscriber Address line 1

     if (MODULE_SHIPPING_FEDEX1_ADDRESS_2 != '') {

       $data .= '4009,"Address Line 2"'; // Subscriber Address Line 2

     }

     $data .= '4011,"' . MODULE_SHIPPING_FEDEX1_CITY . '"'; // Subscriber City Name

     if (MODULE_SHIPPING_FEDEX1_STATE != '') {

       $data .= '4012,"' . MODULE_SHIPPING_FEDEX1_STATE . '"'; // Subscriber State code

     }

     $data .= '4013,"' . STORE_ORIGIN_ZIP . '"'; // Subscriber Postal Code

     $data .= '4014,"' . STORE_ORIGIN_COUNTRY . '"'; // Subscriber Country Code

     $data .= '4015,"' . MODULE_SHIPPING_FEDEX1_PHONE . '"'; // Subscriber phone number

     if (MODULE_SHIPPING_FEDEX1_PAGER != '') {

       $data .= '4017,"' . MODULE_SHIPPING_FEDEX1_PAGER . '"'; // Subscriber pager number

     }

     if (MODULE_SHIPPING_FEDEX1_EMAIL != '') {

       $data .= '4018,"' . MODULE_SHIPPING_FEDEX1_EMAIL . '"'; // Subscriber email address

     }

     if (MODULE_SHIPPING_FEDEX1_FAX != '') {

       $data .= '4022,"' . MODULE_SHIPPING_FEDEX1_FAX . '"'; // Subscriber fax number

     }

     $data .= '99,""'; // End of Record, required

     $fedexData = $this->_AccessFedex($data);

     $meterStart = strpos($fedexData,'"498,"');

 

For example, what is a transaction code? Do I replace the number with the needed data?

Link to comment
Share on other sites

The values hard coded in the section of code you reference do not need to be changed. The variables at top do, and, you have to set the correct settings in the Admin screen for the module.

 

There is NOTHING in the section of code you reference needing to be changed.

Steve

Link to comment
Share on other sites

The README.TXT file does document the exact lines you need to change, nothing else has to be changed, though you have the option of commenting out some of the shipment types.

Steve

Link to comment
Share on other sites

  • 3 months later...

A word to the wise, Make sure when you or if you comment out any of the shipping methods there is a trailing ) for each set of shipping methods. Make sure if you comment out that trailing parenthisis to add it to the last string in the array.

 

JM

 

// class constructor

function fedex1() {

$this->code = 'fedex1';

$this->title = Federal_Express;

$this->description = MODULE_SHIPPING_FEDEX1_TEXT_DESCRIPTION;

$this->sort_order = MODULE_SHIPPING_FEDEX1_SORT_ORDER;

$this->icon = DIR_WS_ICONS . 'shipping_fedex.gif';

$this->tax_class = MODULE_SHIPPING_FEDEX1_TAX_CLASS;

$this->enabled = ((MODULE_SHIPPING_FEDEX1_STATUS == 'True') ? true : false);

$this->meter = MODULE_SHIPPING_FEDEX1_METER;

 

// You can comment out any methods you do not wish to quote

$this->domestic_types = array('01' => 'Priority',

'03' => '2 Day Air',

'05' => 'Standard Overnight',

'06' => 'First Overnight',

'20' => 'Express Saver';

'90' => 'Home Delivery',

'92' => 'Ground Service');

 

//$this->international_types = array('01' => 'International Priority',

'03' => 'International Economy',

'06' => 'International First',

'90' => 'Home Delivery',

'92' => 'Ground Service');

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

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.

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...