Results 1 to 10 of 25

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Shipping Issue - Express Only

    There have been updates to the USPS shipping module since the one you are using (which appears to be for zen cart v1.3.7). While a full site upgrade might not be what you want to do at the moment, I'd certainly recommend it.

    At the very least, you could replace your current USPS module with the one in the lates zencart installation package.

    Otherwise, try this for a solution to your immediate problem:
    replace this section of code in your module:
    PHP Code:
    $this->types = array('Express' => 'Express Mail',
    'First Class' => 'First-Class Mail',
    'Priority' => 'Priority Mail',
    'Parcel' => 'Parcel Post',
    'Media' => 'Media Mail',
    'BPM' => 'Bound Printed Material',
    'Library' => 'Library'
    ); 
    with this:
    PHP Code:
        $this->types = array('EXPRESS' => 'Express Mail',
            
    'FIRST CLASS' => 'First-Class Mail',
            
    'PRIORITY' => 'Priority Mail',
            
    'PARCEL' => 'Parcel Post',
            
    'MEDIA' => 'Media Mail',
            
    'BPM' => 'Bound Printed Material',
            
    'LIBRARY' => 'Library'
            
    ); 
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  2. #2
    Join Date
    Jul 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Shipping Issue - Express Only

    Alrighty, did that - and now it's not estimating shipping at all and I'm getting this message:

    We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use.
    If you prefer to use USPS as your shipping method, please contact us for assistance.
    (Please check that your Zip Code is entered correctly.)

    I uninstalled and reinstalled the USPS module.

  3. #3
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Shipping Issue - Express Only

    ok, one more replacement to make:
    replace this code:
    PHP Code:
    $db->Execute("insert into " TABLE_CONFIGURATION " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Domestic Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES', 'Express, Priority, First Class, Parcel, Media, BPM, Library', 'Select the domestic services to be offered:', '6', '14', 'zen_cfg_select_multioption(array(\'Express\', \'Priority\', \'First Class\', \'Parcel\', \'Media\', \'BPM\', \'Library\'), ', now())"); 
    with this
    PHP Code:
        $db->Execute("insert into " TABLE_CONFIGURATION " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Domestic Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES', 'EXPRESS, PRIORITY, FIRST CLASS, PARCEL, MEDIA, BPM, LIBRARY', 'Select the domestic services to be offered:', '6', '14', 'zen_cfg_select_multioption(array(\'EXPRESS\', \'PRIORITY\', \'FIRST CLASS\', \'PARCEL\', \'MEDIA\', \'BPM\', \'LIBRARY\'), ',  now())"); 
    You will need to remove/re-install the module after you upload the modified file.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Shipping Issue - Express Only

    It would be faster just to use the updated version of the file: http://www.zen-cart.com/forum/showthread.php?t=97461

    And, I'll mention this for good measure: http://www.zen-cart.com/forum/announcement.php?f=&a=14
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jul 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Shipping Issue - Express Only

    Okay, changed the php code and when uninstalled - when I went to reinstall, got this message:

    1062 Duplicate entry 'MODULE_SHIPPING_USPS_TYPES' for key 2
    in:
    [insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Domestic Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES', 'EXPRESS, PRIORITY, FIRST CLASS, PARCEL, MEDIA, BPM, LIBRARY', 'Select the domestic services to be offered:', '6', '14', 'zen_cfg_select_multioption(array(\'EXPRESS\', \'PRIORITY\', \'FIRST CLASS\', \'PARCEL\', \'MEDIA\', \'BPM\', \'LIBRARY\'), ', now())]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    So I double checked to make sure I deleted the original PHP code, and I had. I'll check out the links dr. byte provided, and try that.

  6. #6
    Join Date
    Jul 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Shipping Issue - Express Only

    Hmmm...even going back and trying to put my original code isn't working. Geesh, I feel like a doofus. If I copy the current code that I have, do you think you could tell me where I have the duplicate?

    <SNIP>
    Last edited by DrByte; 30 Jul 2009 at 09:18 PM. Reason: code removed

  7. #7
    Join Date
    Jul 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: Shipping Issue - Express Only

    <code removed>
    Last edited by DrByte; 30 Jul 2009 at 09:18 PM. Reason: code removed

  8. #8
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Shipping Issue - Express Only

    Quote Originally Posted by serwachic View Post
    Okay, changed the php code and when uninstalled - when I went to reinstall, got this message:

    1062 Duplicate entry 'MODULE_SHIPPING_USPS_TYPES' for key 2
    in:...
    Something you've done has broken the normal operation of things.
    Now you've got to do some ugly cleanup.

    Start with this:

    a) Admin->Tools->Install SQL Patches
    b) Paste the following into the text field and click Send:
    Code:
    delete from configuration where configuration_key like 'MODULE\_SHIPPING\_USPS%';
    c) Then go back to Admin->Modules->Shipping and click Install again.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Paypal Express Checkout - Shipping Address Issue
    By webhorizons in forum PayPal Express Checkout support
    Replies: 74
    Last Post: 24 Nov 2019, 02:15 PM
  2. Replies: 2
    Last Post: 18 Jun 2016, 12:27 AM
  3. v138a shipping address override issue in paypal express checkout.
    By Kapil Raja in forum General Questions
    Replies: 6
    Last Post: 4 Apr 2012, 06:29 PM
  4. Paypal express checkout international shipping issue
    By mbrandonyc in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 11 May 2011, 05:12 PM
  5. Only express shipping...
    By bgroup99 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 7 Mar 2008, 05:51 AM

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