Results 1 to 4 of 4
  1. #1
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Freeoptions shipping module

    There are multiple options to choose in this module - Order Total, Weight and Item count.

    I don't know if it's a bug or by design but shouldn't the module be disabled if using multiple options and one of them isn't true..?

    For instance:
    I wan't to offer my customers free shipping on orders over 2500SEK <IF> the weight is less than 5 kg.

    As it is now all orders with a weight lower than 5kg are offered free shipping regardless of total cost.

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

    Default Re: Freeoptions shipping module

    You will need to slightly customize the Free Shipping Options freeoptions shipping module ...

    By default, this is designed for OR conditions ... you want AND conditions ...

    Edit the file:
    /includes/modules/shipping/freeoptions.php

    and change the line for:
    Code:
    // final check for display of Free Options
          if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
    to read:
    Code:
    // final check for display of Free Options
          if ($this->ck_freeoptions_total and $this->ck_freeoptions_weight and $this->ck_freeoptions_items) {
    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
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Freeoptions shipping module

    Easy as 1, 2, 3..
    Thank you Linda!

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

    Default Re: Freeoptions shipping module

    You are most welcome ... thanks for the update that that worked for you and that you hardly broke a sweat over it ...
    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!

 

 

Similar Threads

  1. v139h Need another freeoptions module to add to shipping
    By gotlogos in forum Addon Shipping Modules
    Replies: 3
    Last Post: 28 May 2012, 12:49 AM
  2. freeoptions shipping method problem
    By dinix in forum Built-in Shipping and Payment Modules
    Replies: 30
    Last Post: 8 Feb 2012, 11:45 PM
  3. Freeshipping, freeoptions & Fed Ex Shipping
    By WetSteve in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 18 Aug 2011, 06:26 PM
  4. Bug in freeoptions shipping module
    By enigma777 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 2 Dec 2006, 03:49 PM
  5. Freeoptions Module
    By ben_golant in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Aug 2006, 02:20 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