Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    92
    Plugin Contributions
    1

    Default Re: How do I Set usps priority mail only to the Certain Products?

    Ok, It's looking like there is some confusion with setting the configurations.

    Understandable since these filtering features are quite new and I haven't written the module documentation to cover that yet. Version 1.1 will be released this weekend with documentation since the code is looking pretty solid.

    I'd like to thank the testers for helping me and spending allot of their time using the test version.

    Thankyou

  2. #22
    Join Date
    Nov 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: How do I Set usps priority mail only to the Certain Products?

    I hope I'm in the right place. If not let me know.

    I have 3 general categories of goods. Only one category can have USPS as a shipping option. How do I set it up so that the only option for the other two categories is pick up or UPS? I'm pretty new to all this and not all that code savvy so if you could dumb it down for me that would be great.

    I'm using v1.39h.

    Thanks

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

    Default Re: How do I Set usps priority mail only to the Certain Products?

    What you need to do is compare the number of Items in the cart and see if the total number of Items is the same as the number of Items from your specific Category ...

    Assuming that they use the same master_categories_id, in this example categories_id 10, you can do this with the following code in RED:
    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
        }
    
    // bof: only show if all Products are from master_categories_id 10
        if (!IS_ADMIN_FLAG) {
          global $cart;
          $chk_category_count = 0;
          $chk_category_count += $_SESSION['cart']->in_cart_check('master_categories_id','10');
        }
        if ($_SESSION['cart']->count_contents() != $chk_category_count) {
          $this->enabled = false;
        }
    // eof: only show if all Products are from master_categories_id 10
    
        if ($this->enabled) {
    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. #24
    Join Date
    Nov 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: How do I Set usps priority mail only to the Certain Products?

    Awesome!!! Worked perfectly.

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

    Default Re: How do I Set usps priority mail only to the Certain Products?

    Thanks for the update that this is working for you ...
    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 3 FirstFirst 123

Similar Threads

  1. Replies: 56
    Last Post: 9 Oct 2014, 06:43 PM
  2. USPS Priority Mail International
    By addlink in forum Addon Shipping Modules
    Replies: 1
    Last Post: 8 Oct 2011, 08:28 PM
  3. USPS Priority Mail Delivery confirmation - how?
    By jami1955 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Apr 2009, 02:01 PM
  4. How do I limit priority mail on certain items?
    By LiveWire in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 29 Jan 2009, 04:20 PM
  5. Priority Mail and Express Mail options only
    By Pagemaker in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Nov 2008, 12:58 AM

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