Page 42 of 56 FirstFirst ... 32404142434452 ... LastLast
Results 411 to 420 of 552
  1. #411
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    To turn off the Flat Rate flat shipping module, just change the one line:
    Code:
    if ($chk_cat < 1) {
    to read:
    Code:
    if ($chk_cat >= 1) {
    Now if there is 1 or more in the cart this shipping module will not show ...
    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. #412
    Join Date
    Oct 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    To turn off the Flat Rate flat shipping module, just change the one line:
    Code:
    if ($chk_cat < 1) {
    to read:
    Code:
    if ($chk_cat >= 1) {
    Now if there is 1 or more in the cart this shipping module will not show ...
    I am lost now. Because what if someone orders more than 1?

    Should I increase the 1?

    Am I understanding you correctly?

    Thank you.

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

    Default Re: Different shipping methods for different categories

    It is my understanding that you want to run the Flat Rate flat shipping module when there are NO Products from the 3 categories in the cart ... and you want to run the Flat Rate Clone when you have 1 or more Products from the 3 categories in the cart ...

    Is this correct?
    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!

  4. #414
    Join Date
    Oct 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I have this now:

    $chk_cat = 0;
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
    if ($chk_cat >= 1) {

    So, I ran a test and the amounts are reversed.

    I would like 70.76.78 to be 3.95 and I set that under shipping price in admin flat clone.

    The rest to be $8.00 (regular flat)

    But it's reversed....yicks I am sorry I am so lost here..thanks for patience.

    Example...if I add a product from 82 it's showing up 3.95 instead of 8.00.

  5. #415
    Join Date
    Oct 2011
    Posts
    67
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I have been really trying to figure this out. Sorry again..

    flat.php

    // bof: disable for these master_categories_id
    if (IS_ADMIN_FLAG == false) {
    // check master_categories_id add one line per master_categories_id
    $chk_cat = 0;
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
    if ($chk_cat > 0) {
    $this->enabled = false;
    }
    }
    // eof: disable for these master_categories_id


    clone flat php

    // bof: disable for these master_categories_id
    if (IS_ADMIN_FLAG == false) {
    // check master_categories_id add one line per master_categories_id
    $chk_cat = 0;
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
    $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
    if ($chk_cat >= 1) {
    $this->enabled = false;
    }
    }
    // eof: disable for these master_categories_id


    Again, thank you so much helping me out and I am sorry I am lost. This is a bit challenging for me...but I am seriously trying.

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

    Default Re: Different shipping methods for different categories

    You need to decide which shipping module is to be used when NO Products from the 3 Categories are in the cart and which module should be used when 1 or more Products from the 3 categories are in the cart ...

    Also, what is suppose to happen on a mixed cart that has 1 or more Products from the 3 Categories and 1 or more Products that are not in the 3 Categories?
    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. #417
    Join Date
    Dec 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    thank you ajeh for all your work, I learnt alot from your replies and messages on this forum..today I was trying for category shipping but did something wrong..now I can not see install, remove or edit menu on the right side under shipping module...

    more details...
    when I click on shipping modules...I can see 10 type of shipping modules but on the right side after action menu..there is no link to install, remove or edit....suddenly disappear....

    Please help so I could go further....

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

    Default Re: Different shipping methods for different categories

    Check the directory:
    /includes/modules/shipping

    and make sure that you do not have any extra files, such as backup files in the directory ...

    Check the directory:
    /cache

    and see if you have any debug logs ...
    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. #419
    Join Date
    Dec 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    Check the directory:
    /includes/modules/shipping

    and make sure that you do not have any extra files, such as backup files in the directory ...

    Check the directory:
    /cache

    and see if you have any debug logs ...
    ###################################

    It works

    Heads OFF.....Thank you ajeh....I will learn more and following you.....

    Last edited by Kim; 19 Mar 2012 at 04:31 PM.

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

    Default Re: Different shipping methods for different categories

    Thanks for the update that this worked 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!]
    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 42 of 56 FirstFirst ... 32404142434452 ... LastLast

Similar Threads

  1. Re: Different shipping methods for different categories
    By kaddie in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 19 Nov 2010, 04:37 AM
  2. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  3. Different shipping methods for different categories and mixed categories
    By neit in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Aug 2010, 12:20 AM
  4. Separate Shipping Methods for Different Categories
    By MortalWombat in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Jul 2010, 08:57 AM
  5. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 PM

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