Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS Shipping Method vs Product Type

    Are you offering all shipping methods or just some?

    NOTE: Looking at your site, categories_id 72 is a Top Level Category not a Category with Products so it really isn't a master_categories_id ...
    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!

  2. #22
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: USPS Shipping Method vs Product Type

    Quote Originally Posted by Ajeh View Post
    Are you offering all shipping methods or just some?

    NOTE: Looking at your site, categories_id 72 is a Top Level Category not a Category with Products so it really isn't a master_categories_id ...
    Like i said, New to this. I only want to allow Media Mail for that top level Category only.
    The media does not, however, need to be restricted to ONLY media mail.

    All of our other items are eligible for every shipping method except media mail.

    Thank you for taking the time to help me.

  3. #23
    Join Date
    Jan 2006
    Posts
    21
    Plugin Contributions
    0

    Default Re: USPS Shipping Method vs Product Type

    Quote Originally Posted by Ajeh View Post
    Are you wanting Media to show only if ALL products in the cart are from these two master_categories_id ...
    Yes, if products were in category 10 and/or 11 for example, media mail would come up as one of the options in shipping.

    Also, I am still lost as to where to insert the code in the usps.php code.

    Thank you again for your help.

    Z

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

    Default Re: USPS Shipping Method vs Product Type

    You could use this for those two master_categories_id values:
    if ($type == 'MEDIA' && (($_SESSION['cart']->in_cart_check('master_categories_id','10') + $_SESSION['cart']->in_cart_check('master_categories_id','12')) != $_SESSION['cart']->count_contents())) {
    // skip MEDIA when whole cart is not from master_categories_id 10
    } else {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    }
    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. #25
    Join Date
    Mar 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: USPS Shipping Method vs Product Type

    Quote Originally Posted by Ajeh View Post
    You could use this for those two master_categories_id values:

    Will this work?

    PHP Code:
    if ($type == 'MEDIA' && (($_SESSION['cart']->in_cart_check('master_categories_id','74') + $_SESSION['cart']->in_cart_check('master_categories_id','75') + $_SESSION['cart']->in_cart_check('master_categories_id','76') + $_SESSION['cart']->in_cart_check('master_categories_id','77') + $_SESSION['cart']->in_cart_check('master_categories_id','78') + $_SESSION['cart']->in_cart_check('master_categories_id','79') + $_SESSION['cart']->in_cart_check('master_categories_id','80') + $_SESSION['cart']->in_cart_check('master_categories_id','81') + $_SESSION['cart']->in_cart_check('master_categories_id','82') + $_SESSION['cart']->in_cart_check('master_categories_id','83') + $_SESSION['cart']->in_cart_check('master_categories_id','84') + $_SESSION['cart']->in_cart_check('master_categories_id','85') + $_SESSION['cart']->in_cart_check('master_categories_id','86') + $_SESSION['cart']->in_cart_check('master_categories_id','87') + $_SESSION['cart']->in_cart_check('master_categories_id','88') + $_SESSION['cart']->in_cart_check('master_categories_id','89') + $_SESSION['cart']->in_cart_check('master_categories_id','90') + $_SESSION['cart']->in_cart_check('master_categories_id','91') + $_SESSION['cart']->in_cart_check('master_categories_id','92') + $_SESSION['cart']->in_cart_check('master_categories_id','93') + $_SESSION['cart']->in_cart_check('master_categories_id','94') + $_SESSION['cart']->in_cart_check('master_categories_id','95') + $_SESSION['cart']->in_cart_check('master_categories_id','12')) != $_SESSION['cart']->count_contents())) {
    // skip MEDIA when whole cart is not from master_categories_id 10
    } else {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => ($cost MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);

    and how much is that going to slow down my shipping module? is there a way to make it work on the top level category and all subcategories?

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Shipping 1 item type USPS and 1 item type UPS
    By tenthmuse in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Jul 2011, 07:10 PM
  2. Payment method based on shipping type?
    By celticwebsolutions in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Dec 2010, 11:25 AM
  3. Set shipping method by product/product type
    By andycqos in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 19 Oct 2010, 11:29 AM
  4. Show shipping method based on product type
    By gpgoud in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 22 Sep 2009, 03:43 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