Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Block shipping options for certain items...?

    Do the subdirectories contain Products or subdirectories?
    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!

  2. #12
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Block shipping options for certain items...?

    products...

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

    Default Re: Block shipping options for certain items...?

    IF the Categories that actually hold the Products use those Categories as their master_categories_id then you could customize the
    /includes/modules/shipping/usps.php

    with something like:
    Code:
              $cost = preg_replace('/[^0-9.]/', '',  $cost);
    
    
    // bof: do not show MEDIA MAIL for master_categories_id 10, 12 and 22
    $chk_nonmedia_cat = 0;
    $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '10');
    $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '12');
    $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '22');
    
    if ($type == 'MEDIA' && $chk_nonmedia_cat > 0) {
      $skip_it = true;
    } else {
      $skip_it = false;
    }
    
    if (!$skip_it) {
              $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) );
    }
    // eof: do not show MEDIA MAIL for master_categories_id 10, 12 and 22
    
            }
    
            $this->quotes['methods'] = $methods;
    where you can use the code:
    Code:
    $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '10');
    for each of the Categories with the NON-Media Mail Products ...
    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!

  4. #14
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Block shipping options for certain items...?

    Hi Ajeh! Sorry it took me forever to get back to you, got caught up in a bunch of stuff and just now got a chance to try this out...I do appreciate your help!

    When I try add the code to the usps.php it is making my shipping estimator disappear completely, no matter what I add to the cart, media mail items or not. Is there a specific place I need to add the code? What do you think I'm doing wrong? Thanks again!

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

    Default Re: Block shipping options for certain items...?

    Look in your /cache and see what the debug logs read ...
    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!

  6. #16
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Block shipping options for certain items...?

    hmmm...really don't really know where to find that?

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

    Default Re: Block shipping options for certain items...?

    If you look with FTP at your server, you will see the main directory, you will see:
    /includes
    /images

    your should also see:
    /cache

    that should be set to 777 and your should be able to trip your error, then refresh your FTP and you will see the debug logs if any are generated ... and if you read the debug log(s) that should give you a clue on 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: 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!

  8. #18
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Block shipping options for certain items...?

    I'm still not sure how to "trip your error, then refresh your FTP " Where will I find this error log?

    I do get this error when looking at my shipping modules within Zen cart if that helps any?

    syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/######/public_html/includes/modules/shipping/usps.php

  9. #19
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Block shipping options for certain items...?

    I've been trying different things I still can't figure out how to get the error logs...please help!

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

    Default Re: Block shipping options for certain items...?

    If you are getting errors, look in the directory:
    /cache

    and you will see the files by date that end in .log ...

    If you view the files you will see the error ...

    Do you have the USPS module working or are you getting errors right now?
    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 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v151 Eliminate options for USPS module on certain items
    By Unclerudy in forum Addon Shipping Modules
    Replies: 2
    Last Post: 20 Feb 2015, 07:57 PM
  2. v150 Ceon shipping module: remove shipping options for certain product combinations?
    By irish_1985 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 28 Oct 2012, 02:18 AM
  3. How do I allow specific USPS International shipping options for certain items?
    By krsstore in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 28 Nov 2011, 12:14 AM
  4. Replies: 0
    Last Post: 23 Nov 2011, 08:32 PM
  5. attribute options for certain items, but not others?
    By JHouse in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 2 Mar 2009, 11:11 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