Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37
  1. #31
    Join Date
    Oct 2013
    Location
    Orlando, FL
    Posts
    8
    Plugin Contributions
    0

    Default Re: Giving USPS First-Class only for products in a certain category

    Quote Originally Posted by Ajeh View Post
    What happens if you add the line in RED:
    Code:
    $chk_prod_111 = $_SESSION['cart']->in_cart_check('products_id','111');
    $chk_prod_111 += $_SESSION['cart']->in_cart_check('products_id','136');
    
    Hi Ajeh,

    If I want to add one more product (id 44) to this rule, can I add one more line like below?

    Code:
    $chk_prod_111 = $_SESSION['cart']->in_cart_check('products_id','111');
    $chk_prod_111 += $_SESSION['cart']->in_cart_check('products_id','136');
    $chk_prod_111 += $_SESSION['cart']->in_cart_check('products_id','44');

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

    Default Re: Giving USPS First-Class only for products in a certain category

    Yes ... that is how that one works so it is easy to add additional master_categories_id to the check ...
    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. #33
    Join Date
    Oct 2013
    Location
    Orlando, FL
    Posts
    8
    Plugin Contributions
    0

    Default Re: Giving USPS First-Class only for products in a certain category

    Quote Originally Posted by zaaep005 View Post
    Ajeh,

    Thank you for your quick response. I forgot to mention that there are 7 sub-categories (id 29 thru 35) under that category 25, and each sub-category has 3 to 7 products. Also, I meant to give the First-Class shipping in addition to Priority & Priority Express for the golf shoes.

    Sorry for the confusion.
    Ajeh,

    Actually, I would lilke to ad a product (id 44) into this rule. You provided me the above code to give First-Class Mail for categories, but can I just add one product into this rule?

    Thank you always!

  4. #34
    Join Date
    Oct 2013
    Location
    Orlando, FL
    Posts
    8
    Plugin Contributions
    0

    Default Re: Giving USPS First-Class only for products in a certain category

    Quote Originally Posted by Ajeh View Post
    Code:
    // bof: check Product Qty in categories_id 29 - 35
    $chk_cat = 0;
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','29');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','30');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','31');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','32');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','33');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','34');
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','35');
    // eof: check Product Qty in categories_id 29 -35
    
          for ($i=0; $i<$PackageSize; $i++) {
    Try changing this part of the code ...
    Sorry, I used a wrong quote... The above is the one I meant to show you.

    Thank you,

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

    Default Re: Giving USPS First-Class only for products in a certain category

    That is okay as I answered you totally wrong anyway as you were talking about products_id and I was talking about master_categories_id ...

    You can add to that code instead of a category where you reference by master_categories_id such as:
    $chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','35');

    Just use:
    $chk_cats += $_SESSION['cart']->in_cart_check('products_id','44');

    as this will check specifically for products_id 44 and add it to the current counter: $chk_cats

    See if that works 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!

  6. #36
    Join Date
    Oct 2013
    Location
    Orlando, FL
    Posts
    8
    Plugin Contributions
    0

    Default Re: Giving USPS First-Class only for products in a certain category

    It works perfectly! Thank you always, Ajeh.

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

    Default Re: Giving USPS First-Class only for products in a certain category

    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 4 of 4 FirstFirst ... 234

Similar Threads

  1. Replies: 49
    Last Post: 5 Dec 2014, 03:04 PM
  2. First class mail not displaying for USPS Module
    By bocahydro in forum Addon Shipping Modules
    Replies: 6
    Last Post: 13 Sep 2013, 04:23 PM
  3. USPS: Different options for Priority vs. First Class mail?
    By lat9 in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 17 Jan 2010, 04:35 AM
  4. USPS Shipping Option for First Class Domestic not showing
    By DVMGuy in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 19 Jul 2008, 07:51 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