Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Free Shipper - quick question

    Hi,

    I have 1 product which is setup for free shipping, which works fine, however I want free shipping to apply even when other products are added to the cart with that product. I think the code change is required in /includes/functions/functions_general.php

    // Always free shipping only true - enable freeshipper
    case (($check_cart_free == $check_cart_cnt) and $shipping_module == 'freeshipper'):
    return true;
    break;

    something needs to be added in that function to check that a certain product id exists in the card.

    Hope that makes sense, if anyone could suggest something for me that would be much appreciated.

    Thanks,
    Brad.

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

    Default Re: Free Shipper - quick question

    Free Shipping is built into Zen Cart to manage shipping by item, weight or total ...

    If you are using add-on shipping modules, you should check that they also include these features utilizing:
    $_SESSION['cart']->free_shipping_prices()
    $_SESSION['cart']->free_shipping_items()

    weight is handled automatically by virtue of 0 weight ...

    NOTE: Products must be setup correctly for these to work ...

    EXAMPLE: Downloads are NOT Virtual Products and NOT Always Free Shipping they are managed based on the download existing on the attribute ...

    EXAMPLE: Gift Certificates are ALWAYS Virtual Products and NOT Always Free Shipping and must have a products_model that starts with:
    GIFTanything_else_can_be_here

    NOTE: how the function is used in each of the shipping modules on the $this->enable ...

    EXAMPLE, in the Item Rate item shipping module this function manages when to turn on/off the shipping module as when Free Shipping freeshipper shows, the other shipping modules automatically turn off and when it is not Free Shipping then the other shipping modules turn on and Free Shipping freeshipper turns off:
    PHP Code:
         // disable only when entire cart is free shipping
          
    if (zen_get_shipping_enabled($this->code)) {
            
    $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true false);
          } 
    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
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Free Shipper - quick question

    Hi,

    Im still a little bit confused... I want to use the free shipping module but i just want it to apply free shipping to the entire cart if a product is in their which is set to 'Always Free Shipping'. Because currently free shipping only works if the cart ONLY contains products which are set to 'Always Free Shipping'.

    Does that make sense?

    Brad.

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

    Default Re: Free Shipper - quick question

    If ALL Products in the shopping cart are Always Free Shipping, then the Free Shipping freeshipper shipping module will be the only one to show ... as the other shipping modules are turned off ...

    If SOME Products in the shopping cart are Always Free Shipping then the Free Shipping freeshipper shipping module will NOT show but your other shipping modules will show and be adjusted for the Products that are Always Free Shipping based on if the shipping module(s) are setup for Weight, Item or Price ...
    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!

  5. #5
    Join Date
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Free Shipper - quick question

    I understand that part however in the second situation where SOME products in the cart are free shipping can it be modified to that the 'freeshipping' is available?

    The reason being is we post everything flat rate, so if they buy product A and its free shipping then it doesnt cost us anymore to throw product B (which isnt free shipping) into the same box and send it all out for free.

    Thats why i thought a simple modification to the functions_general.php file where it checks the carts contents and if a certain product ID exists then it allows the free shipping module to be selected.

    Thanks again,
    Brad.

  6. #6
    Join Date
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Free Shipper - quick question

    I thought this would have been something fairly common which other people would have run into also. If anyone has an idea on how to do it please let me know.

    Thanks,
    Brad.

 

 

Similar Threads

  1. v139h Free shipping to just 1 country using free shipper and Yes, Always Free Shipping
    By boomy in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 20 Oct 2014, 01:43 AM
  2. Had Free Shipper Installed; Removed it but Free Options Still not Showing
    By ikernbecauseicare in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Nov 2010, 07:24 PM
  3. Free Shipper not activating
    By misterpaterson in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 22 Jun 2008, 05:54 PM
  4. Free Shipper Problem
    By enofman in forum General Questions
    Replies: 2
    Last Post: 9 Jan 2008, 01:29 PM
  5. shpping information / free shipper
    By hollydeboer in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 25 Jul 2006, 02:59 AM

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