Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 46
  1. #31
    Join Date
    Sep 2006
    Location
    Oregon
    Posts
    217
    Plugin Contributions
    0

    Default Re: Media Mail Option

    Now I have NO shipping estimator....could I PLEASE send you my WHOLE php file via PM? I am really trying to put the code EXACTLY where it is supposed to go and I really believe that I am...but obviously, something is wrong!

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

    Default Re: Media Mail Option

    Try this file and see if it works when copied to the:
    /includes/modules/shipping
    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!]
    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. #33
    Join Date
    Sep 2006
    Location
    Oregon
    Posts
    217
    Plugin Contributions
    0

    Default Re: Media Mail Option

    HALLELUJAH!!!!!! It works now! So do you think I just wasn't pasting the code exactly where it should have gone? I tried so hard to get it right! Thank you for sticking it out with me and I'm sorry if I was frustrating....I certainly didn't mean to be! This is all so above and beyond my abilities!

    You're my hero!

    Thanks again!

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

    Default Re: Media Mail Option

    From the code I did see you post you kept leaving out the IF around the final cost build:
    Code:
              if ($type == 'MEDIA' && $skip_media) {
    // skip Media Mail
              } else {
                $cost = preg_replace('/[^0-9.]/', '',  $cost);
                $methods[] = array('id' => $type,
                                   'title' => $title,
                                   'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );
              }
    That was to skip the media when it was suppose to be skipped and add the methods when it wasn't ...
    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!

  5. #35
    Join Date
    Sep 2006
    Location
    Oregon
    Posts
    217
    Plugin Contributions
    0

    Default Re: Media Mail Option

    Well, thank you again! I am very grateful for your help!

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

    Default Re: Media Mail Option

    Not a problem ... good luck with your shop!
    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!

  7. #37
    Join Date
    Nov 2007
    Posts
    162
    Plugin Contributions
    0

    Default Re: Media Mail Option

    Quote Originally Posted by Ajeh View Post
    Try this file and see if it works when copied to the:
    /includes/modules/shipping
    I used the zip file from the post above and it works in the cart for checkout purposes, however the shipping estimator now displays only blank boxes where the rates are supposed to be.

    Running v1.3.8 and here's a copy of the modified section of my usps.php file

    PHP Code:
            // BOF: UPS USPS
            
    $this->quotes = array('id' => $this->code,
            
    'module' => $this->title $show_box_weight);
            
    // EOF: UPS USPS

    // bof: Media Check
    // test contents for Media Mail
            
    $skip_media false;
            
    $chk_media 0;
            
    $chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','107');
            
    $chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','110');
            
    $chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','130');
            
    $chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','301');
            
    $chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','116');
            
    $chk_media += $_SESSION['cart']->in_cart_check('master_categories_id','103');
            if (
    $chk_media != $_SESSION['cart']->count_contents()) {
              
    $skip_media true;
            }
    //echo '<br>IN USPS I SEE ' . $chk_media . ' count: ' . $_SESSION['cart']->count_contents() . ' Skip Media: ' . ($skip_media == true ? 'YES' : 'NO') . '<br>';
            
    $methods = array();
            
    $size sizeof($uspsQuote);
            for (
    $i=0$i<$size$i++) {
              list(
    $type$cost) = each($uspsQuote[$i]);

              
    // BOF: UPS USPS
              
    $title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
              if(
    in_array('Display transit time'explode(', 'MODULE_SHIPPING_USPS_OPTIONS)))    $title .= $transittime[$type];
              
    /*
              $methods[] = array('id' => $type,
              'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
              'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
              */
              
              
    if ($type == 'MEDIA' && $skip_media) {
    // skip Media Mail
              
    } else {
                
    $cost preg_replace('/[^0-9.]/''',  $cost);
                
    $methods[] = array('id' => $type,
                                   
    'title' => $title,
                                   
    'cost' => ($cost $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' MODULE_SHIPPING_USPS_HANDLING $shipping_num_boxes MODULE_SHIPPING_USPS_HANDLING) );
              }
            }
    // bof: Media Check

            
    $this->quotes['methods'] = $methods;

            if (
    $this->tax_class 0) {
              
    $this->quotes['tax'] = zen_get_tax_rate($this->tax_class$order->delivery['country']['id'], $order->delivery['zone_id']);
            } 
    Any suggestions are welcomed and appreciated.

    Zencart ROCKS!
    www.ZenCrystals.com
    www.CraftMagick.com
    Magickal & Metaphysical supplies/services

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

    Default Re: Media Mail Option

    Have you an URL to where you are using this ... I am not able to reproduce an issue such as what you are describing and it might help if we could peek at the problem ...
    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!

  9. #39
    Join Date
    Nov 2007
    Posts
    162
    Plugin Contributions
    0

    Default Re: Media Mail Option

    Thanks for the quick reply, Ajeh.


    The website is http://www.craftmagick.com
    www.ZenCrystals.com
    www.CraftMagick.com
    Magickal & Metaphysical supplies/services

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

    Default Re: Media Mail Option

    Give me a hint ... who is a media mail product you are using SEO junk and I get lost ...
    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!

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. v139h USPS Media Mail problem.
    By Beau91324 in forum Addon Shipping Modules
    Replies: 4
    Last Post: 8 Jul 2014, 08:50 PM
  2. v150 USPS Module RateV3 -- trying to integrate Media Mail eligible option
    By jaheadlee in forum Addon Shipping Modules
    Replies: 1
    Last Post: 24 Jul 2012, 10:59 PM
  3. Media mail surcharge
    By Arunachala in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 13 Jun 2011, 01:42 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