Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2011
    Posts
    25
    Plugin Contributions
    0

    Default Exclude FREE SHIPPING on Two Items

    I am so confused on how to do this.... I have two items (in separate categories) that I need to Exclude from the free shipping module due to their weight however both items cost exceeds $100. (Orders over $100 qualify free shipping)

    Item ID_70
    Item ID_22

    www.N o r v e l l P r o S t o r e .com

    It has been over a year since we set up our store so being well versed in the zen cart modules has left my brain.

    Thank You in advance to anyone who may be able to assist me in answering the above.

    Thanks
    Kristi
    kristi(at)norvelltanning(dot)com

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

    Default Re: Exclude FREE SHIPPING on Two Items

    Which method of Free Shipping are you using?

    It appears to be the Free Shipping Options freeoptions based on Total >= XX.XX
    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!

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

    Default Re: Exclude FREE SHIPPING on Two Items

    Also what happens when I have products over $100.00 plus these 2 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!]
    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. #4
    Join Date
    Mar 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: Exclude FREE SHIPPING on Two Items

    Good question! In theory if the purchase met the $100 and either of these two products were then added to the cart, we would then honor the free shipping. Our shipping special states that these two items do not qualify for the total to earn free shipping.

    Does this make sense?

  5. #5
    Join Date
    Mar 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: Exclude FREE SHIPPING on Two Items

    Yes we are using the Free Shipping Options freeoptions based on Total >= XX.XX

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

    Default Re: Exclude FREE SHIPPING on Two Items

    Okay so if the scenario would be:

    1 Other Products is $100.00 - YES Free Shipping Option

    2 Other Products is $3.95 and these 2 Products are $350 - NO Free Shipping Option

    3 Other Products is $100.00 and these 2 Products are $350 making order $450 - YES Free Shipping Option

    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!

  7. #7
    Join Date
    Mar 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: Exclude FREE SHIPPING on Two Items

    Exactly.

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

    Default Re: Exclude FREE SHIPPING on Two Items

    You can customize the Free Shipping Options freeoptions by customizing the code around line 77 ...
    /includes/modules/shipping/freeoptions.php

    For example, if you wanted products_id 6 and 12 to not be used in the calculation you can use the code in RED:
    Code:
    //bof: reduce price for products_id 6 and 12
          // disabled if nothing validates for total, weight or item
          if ($this->enabled) {
            global $cart;
            $products = $_SESSION['cart']->get_products();
    //echo '<pre>'; echo var_dump($products); echo '</pre>' . '<br><br>';
            $reduce_price = 0;
            for ($i=0, $n=sizeof($products); $i<$n; $i++) {
    //echo 'Products ID: ' . $products[$i]['id'] . ' Price: ' . $products[$i]['final_price'] * $products[$i]['quantity'] . ' name: ' . $products[$i]['name'] . ' categories_id: ' . $products[$i]['category'] . ' categories_name: ' . zen_get_categories_name($products[$i]['category']) . '<br>';
            if ($products[$i]['id'] == 6 || $products[$i]['id'] == 12) {
              $reduce_price += ($products[$i]['final_price'] * $products[$i]['quantity']);
            }
          }
    //echo 'Reduce Price: ' . $reduce_price . '<br>';
    
            if ($this->ck_freeoptions_total) {
              switch (true) {
              case ((MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN !='' and MODULE_SHIPPING_FREEOPTIONS_TOTAL_MAX !='')):
    // free shipping total should not need adjusting
    //            if (($_SESSION['cart']->show_total() - $reduce_price - $_SESSION['cart']->free_shipping_prices()) >= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN and ($_SESSION['cart']->show_total() - $reduce_price - $_SESSION['cart']->free_shipping_prices()) <= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MAX) {
                if (($_SESSION['cart']->show_total() - $reduce_price) >= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN and ($_SESSION['cart']->show_total() - $reduce_price) <= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MAX) {
                  $this->ck_freeoptions_total = true;
                } else {
                  $this->ck_freeoptions_total = false;
                }
                break;
              case ((MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN !='')):
    //            if (($_SESSION['cart']->show_total() - $reduce_price - $_SESSION['cart']->free_shipping_prices()) >= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN) {
                if (($_SESSION['cart']->show_total() - $reduce_price) >= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN) {
                  $this->ck_freeoptions_total = true;
                } else {
                  $this->ck_freeoptions_total = false;
                }
                break;
              case ((MODULE_SHIPPING_FREEOPTIONS_TOTAL_MAX !='')):
    //            if (($_SESSION['cart']->show_total() - $reduce_price - $_SESSION['cart']->free_shipping_prices()) <= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MAX) {
                if (($_SESSION['cart']->show_total() - $reduce_price) <= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MAX) {
                  $this->ck_freeoptions_total = true;
                } else {
                  $this->ck_freeoptions_total = false;
                }
                break;
              }
            }
    //eof: reduce price for products_id 6 and 12
    
    Last edited by Ajeh; 6 Mar 2012 at 08:53 PM. Reason: added filename
    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. #9
    Join Date
    Mar 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: Exclude FREE SHIPPING on Two Items

    will try and let you know what happens - that you so much for all of your help!!

  10. #10
    Join Date
    Mar 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: Exclude FREE SHIPPING on Two Items

    This may be a dumb question but do you know the general location of this file?? I don't dig around in the code hardly ever for fear i will break the store :)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h exclude products from free shipping
    By mikestaps in forum General Questions
    Replies: 23
    Last Post: 15 Aug 2013, 11:14 PM
  2. exclude certain products from free shipping
    By emtecmedia in forum Built-in Shipping and Payment Modules
    Replies: 24
    Last Post: 28 Sep 2010, 05:15 PM
  3. Flat Rate / Over $250.00 FREE shipping exclude certain items
    By WebSiteGuru in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 31 Dec 2008, 04:44 AM
  4. Buy one item, offer free shipping on up to two other items
    By donronco in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Oct 2008, 04:26 AM
  5. value of free shipping limit - exclude tax?
    By SarahL in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 25 Jul 2008, 09:36 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