Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing php


Yukon4

Recommended Posts

Hello! Below is the code for our Fed Ex. Note, we have NOT commented out "Ground" yet in the checkout, the "Ground" option does not display. Also, we do not want "Priority". Yet when we added the // marks in front of '01' => 'Priority', it didn't seem to do anything - Priority still showed up. We even switched them around, put Ground up top and Priority at Bottom, but still cannot get Ground shipping to appear. We only want to offer Ground and 2 Day. Can anyone see where the problem lies? Thanks!

 

 

 

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

Link to comment
Share on other sites

Here is how it looks now. The problem is that GROUND never displays as a shipping option in checkout. Everything is commented out except 2 Day and Ground. Not sure what else to do to make GROUND display?

 

 

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

}

Link to comment
Share on other sites

Hi again - can anyone out there help us out with this code below? "Ground Service" does not display in the cart - based on the instructions, it seems that it *should* display....???? Thanks!

 

Hello! Below is the code for our Fed Ex. Note, we have NOT commented out "Ground" yet in the checkout, the "Ground" option does not display. Also, we do not want "Priority". Yet when we added the // marks in front of '01' => 'Priority', it didn't seem to do anything - Priority still showed up. We even switched them around, put Ground up top and Priority at Bottom, but still cannot get Ground shipping to appear. We only want to offer Ground and 2 Day. Can anyone see where the problem lies? Thanks!

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

Link to comment
Share on other sites

Not sure if this will work but try moving the Ground Service line up, right after the uncommented line:

 

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

'03' => '2 Day Air',

'92' => 'Ground Service');

// '05' => 'Standard Overnight',

// '06' => 'First Overnight',

// '20' => 'Express Saver',

// '90' => 'Home Delivery',

 

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

'03' => 'International Economy',

'92' => 'Ground Service');

// '06' => 'International First',

// '90' => 'Home Delivery',

 

 

this way you're saving the other entries in case you want to add them back in. The comment in the middle of the array definition may be messing

it up. Good luck!

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