Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 64
  1. #21
    Join Date
    May 2010
    Location
    Texas
    Posts
    491
    Plugin Contributions
    0

    Default Re: Conditional shipping option?

    It has no effect.
    I changed the entry for USPS priority and it worked. But that is because this section is only for Domestic.
    The section of code just below this domestic section seems to handle international. But it does not have the same "Custom transit time" section

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

    Default Re: Conditional shipping option?

    Are you trying to make the First-Class say the 7-12 days on Domestic or International?

    Domestic uses:
    function parseDomesticTransitTimeResults($Package, $service) {

    International uses:
    function parseIntlTransitTimeResults($Package, $service) {
    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: v1.5.5]
    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!

  3. #23
    Join Date
    May 2010
    Location
    Texas
    Posts
    491
    Plugin Contributions
    0

    Default Re: Conditional shipping option?

    Quote Originally Posted by Ajeh View Post
    Are you trying to make the First-Class say the 7-12 days on Domestic or International?

    Domestic uses:
    function parseDomesticTransitTimeResults($Package, $service) {

    International uses:
    function parseIntlTransitTimeResults($Package, $service) {
    USPS first Class is only offered for International shipments. USPS priority is the only service offered for domestic shipments.

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

    Default Re: Conditional shipping option?

    Make sure that the customizations that you do are in the right function for Domestic and International ...

    When set to custom, mine are working fine under the right function ...
    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: v1.5.5]
    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!

  5. #25
    Join Date
    May 2010
    Location
    Texas
    Posts
    491
    Plugin Contributions
    0

    Default Re: Conditional shipping option?

    I traced it down to the if statement below. The "If" statement is not satisfied by a shipment that is using USPS First Class International shipping.
    There are three terms in that statement, if I delete isset($this->transittime[$service]) Then the $time= statements below the "If" are executed.


    Code:
      function parseIntlTransitTimeResults($Package, $service) {
        global $logfilename;
        if (MODULE_SHIPPING_USPS_DEBUG_MODE == 'Logs') {
          $fp = @fopen($logfilename, 'a');
        }
        if (isset($this->transittime[$service]) && $this->transittime[$service] == '' && preg_match('#(GXG|International)#i' , $service)) {

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

    Default Re: Conditional shipping option?

    Could you Zip your file:
    /includes/modules/shipping/usps.php

    and attach it here ...

    What you are saying you have to do for this really is not making a lot of sense ...

    Using the Custom days in nothing more than modifying each of the cases as they apply ...

    And what is the Ship To and weight that you are testing with?
    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: v1.5.5]
    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!

  7. #27
    Join Date
    May 2010
    Location
    Texas
    Posts
    491
    Plugin Contributions
    0

    Default Re: Conditional shipping option?

    usps file attached
    Attached Files Attached Files

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

    Default Re: Conditional shipping option?

    This is a customized USPS for you and has a few extra features than the usps J5 version ...

    You will need to do a REMOVE, INSTALL and re-configure with this in the Modules ... Shipping ...

    See if this works better for you when set to CUSTOM ...
    Attached Files Attached Files
    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: v1.5.5]
    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!

  9. #29
    Join Date
    May 2010
    Location
    Texas
    Posts
    491
    Plugin Contributions
    0

    Default Re: Conditional shipping option?

    Quote Originally Posted by Ajeh View Post
    This is a customized USPS for you and has a few extra features than the usps J5 version ...

    You will need to do a REMOVE, INSTALL and re-configure with this in the Modules ... Shipping ...

    See if this works better for you when set to CUSTOM ...
    Ajeh,
    I just modified the international IF statement rather than introducing this updated module. Seems to be working.

    One question, on the checkout page, it defaults to USPS FC. How can I get it to default to FedEx. I want the customer to make a conscious decision to use USPS FC International

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

    Default Re: Conditional shipping option?

    You could try customizing the class:
    /includes/classes/shipping.php

    Code:
          for ($i=0; $i<$size; $i++) {
            if (is_array($cheapest)) {
              // never quote storepickup as lowest - needs to be configured in shipping module
              if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup' and $rates[$i]['module'] != 'usps') {
                $cheapest = $rates[$i];
              }
            } else {
              if ($rates[$i]['module'] != 'storepickup' and $rates[$i]['module'] != 'usps') {
                $cheapest = $rates[$i];
              }
            }
          }
    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: v1.5.5]
    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!

 

 
Page 3 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. v139h conditional shipping modules
    By bigduffeye in forum Addon Shipping Modules
    Replies: 11
    Last Post: 12 Feb 2013, 05:49 PM
  2. v139h Free shipping option, disable one other shipping option
    By stylenote in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 21 Jul 2012, 09:56 PM
  3. conditional based attributes to calc shipping?
    By shewhorn in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 16 Feb 2010, 03:18 AM
  4. Shipping option only shows as free shipping - i want all options
    By RomanSon3625 in forum Addon Shipping Modules
    Replies: 8
    Last Post: 14 Nov 2007, 04:13 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR