Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Jul 2009
    Posts
    246
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    Ok.
    Now we have determined my need, which is that I want that the order qualifies for Free Shipping freeshipper when a Product marked as Always Free Shipping is in the cart, even if there is a regular Product in the cart that does not qualify for Free Shipping freeshipper.

    My next question is: which is/are the php file/s that control this?

    Please tell me where I can begin to try to mod something if you can not, or don't want to do the coding for me.

    Thanks
    .

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,649
    Plugin Contributions
    6

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    If you wanted to make it where if there is 1 Product marked as Always Free Shipping in the Cart and 10 other Products in the Cart that are NOT marked as Always Free Shipping and you want to show the Free Shipping, you could customize the code:
    /includes/modules/shipping/freeshipper.php

    with the code in RED:
    Code:
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
          }
    
    // bof: show free shipping when 1 or more products in the cart are Always Free Shipping
          if (!IS_ADMIN_FLAG) {
            if ($_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1') > 0) {
              $this->enabled = true;
            }
          }
    // eof: show free shipping when 1 or more products in the cart are Always Free Shipping
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREESHIPPER_ZONE > 0) ) {
    Now what you will see is the Free Shipping freeshipper in addition to the other shipping modules so the customer can either select the Free Shipping freeshipper or pick a different shipping method of their choice ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #13
    Join Date
    Jul 2009
    Posts
    246
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    Dear Linda,
    I am really sorry I did not answer your last post before but I never received the email telling that the thread was answered. I am going to apply the mod immediately and let you know. THANKSSSSSSSSSSSSSSSSSS

  4. #14
    Join Date
    Jul 2009
    Posts
    246
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    It works perfectly!!! Linda you made my day. I can not think about how much time I spent trying to create this code mod. You did it in a very simple way!!! Amazing.
    I think it would be just perfect if in a future release of zen cart it would be possible to include this function but by product.
    In other words I would put a selctable flag for the products, which allows this function or not when a product is always free shipping.
    So we would have for each product: Always Free Shipping Y/N and Make Cart Free Shipping Y/N
    Thank a lot!!
    enzo
    Last edited by enzo-ita; 26 Jun 2012 at 10:13 PM.

  5. #15
    Join Date
    Jul 2009
    Posts
    246
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    I was editing and...time out!!!

    It works perfectly!!! Linda you made my day. I can not think about how much time I spent trying to create this code mod. You did it in a very simple way!!! Amazing.
    Thank a lot!!
    I think it would be just perfect if in a future release of zen cart it would be possible to include this function but by product.
    In other words I would put a selectable flag for the products, which allows this function or not when a product is always free shipping.
    So we would have for each product: 1)Always Free Shipping Y/N and 2)Make Cart Free Shipping Y/N
    If 1 Y and 2 N normal function
    If 1 Y and 2 Y cart is free shipping
    If 1 N and 2 N normal function
    If 1 N and 2 Y cart is free shipping
    Ciao and god bless you!
    enzo

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,649
    Plugin Contributions
    6

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    Thanks for the update that this worked for you ...

    A lot of custom code like this is really site specific and something you need to customize for your code ... it is difficult to make every concept a part of the code ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #17
    Join Date
    Jul 2009
    Posts
    246
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    I wish I knew more about PHP so I could produce the code on my own and submit this concept as a contribution because it could be a way to sell more, or to promote a product.
    Well, may be in another life.....
    In this life I am happy with what you did for me.
    Thank again.
    ciao
    enzo

  8. #18
    Join Date
    Jun 2005
    Posts
    34
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    Quote Originally Posted by Ajeh View Post
    If you wanted to make it where if there is 1 Product marked as Always Free Shipping in the Cart and 10 other Products in the Cart that are NOT marked as Always Free Shipping and you want to show the Free Shipping, you could customize the code:
    /includes/modules/shipping/freeshipper.php

    with the code in RED:
    Code:
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
          }
    
    // bof: show free shipping when 1 or more products in the cart are Always Free Shipping
          if (!IS_ADMIN_FLAG) {
            if ($_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1') > 0) {
              $this->enabled = true;
            }
          }
    // eof: show free shipping when 1 or more products in the cart are Always Free Shipping
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREESHIPPER_ZONE > 0) ) {
    Now what you will see is the Free Shipping freeshipper in addition to the other shipping modules so the customer can either select the Free Shipping freeshipper or pick a different shipping method of their choice ...
    Hello Ajeh,
    Instead of freeshipper I am using the Free Shipping Options (freeoptions) module for shipping.
    I was wondering if you could help me out how to use the same hack when i have chosen freeoptions so that if one product applies, all other items in the cart also get free shipping..
    I am basing it on the Order weight <= 0.1
    Is it possible to use the same code you have added to freeshipper.php for freeoptions.php? Or does it have to be slightly modified?
    Regards,
    Marco

  9. #19
    Join Date
    Jun 2005
    Posts
    34
    Plugin Contributions
    0

    Default Re: free shipping when cart total is below xx but one product in cart is free shippin

    Does any one have an idea on how to do this?

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Free shipping on order total, problems when some items already have free shipping
    By birdmag in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Nov 2010, 09:18 PM
  2. Coupon lowers order total below Free shipping amount requirement
    By abko in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 2
    Last Post: 24 Mar 2009, 05:59 PM
  3. Replies: 2
    Last Post: 4 Feb 2009, 04:20 PM
  4. Always free shipping by product but only free in the US?
    By KingBono in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 4 Oct 2008, 10:51 PM
  5. Free Shipping For All But One product?
    By Petzlifedirect.com in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 19 Apr 2007, 05: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
  •