Results 1 to 5 of 5
  1. #1
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default list of shipping IDs?

    Hi -

    I'm modifying a bit of code, and need to know the text used as the shipping IDs for UPS shipments. By way of example, I'm using the following test:
    Code:
    if 	($_SESSION['shipping']['id'] != 'usps_EXPRESS'
    	 && $_SESSION['shipping']['id'] != 'usps_PARCEL'
    	 && strpos($_SESSION['shipping']['id'], 'ups') != 0
    	 && !IS_ADMIN_FLAG)
    {
    The USPS examples worked perfectly, but when I added the line for UPS, the test failed when UPS shipping was selected. My conclusion is that the UPS strings are something other than what I expected them to be.

    I don't know how to look these up; can someone tell me what the correct strings are?

    Thanks.

  2. #2
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: list of shipping IDs?

    Update: while I didn't get those IDs (which would be nice to have), I discovered my problem. Evidently, the PHP strpos function returns an offset that begins at 1, not 0. My old "C" programming habits bit me on this one.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: list of shipping IDs?

    Thanks for the update on what you needed to fix this ...

    Keep in mind, you can echo the $type just before the $method is being built ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: list of shipping IDs?

    Quote Originally Posted by Ajeh View Post
    Keep in mind, you can echo the $type just before the $method is being built ...
    I realize I should know what this means, but...I don't . Types and methods were introduced into programming sometime in the Quaternary Period, or after I stopped programming for a living.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: list of shipping IDs?

    I am referring to the variables in the code for:
    /includes/modules/shipping

    you can search on:
    $type
    $method

    and you will see where the $method is built to have the $type and $title and $cost built ...

    Right above the $method you could echo the $type or what have you to see what the specific value is ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Reset prod IDs and Categories IDs
    By savchenko01 in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2011, 05:21 PM
  2. Customer Order Ids
    By winzippy in forum Managing Customers and Orders
    Replies: 21
    Last Post: 7 Jan 2011, 03:04 PM
  3. Existing catalog IDs
    By FarGoneFrank in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Apr 2008, 01:03 PM
  4. Category IDs
    By BrakeStorm in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Aug 2007, 11:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg