If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / For those of you trying to use multiple free shipping options..

For those of you trying to use multiple free shipping options..

Locked

Started by nickjre on 25 Sep 2008, 1:45 PM · Views: 968

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Sep 2008, 1:45 PM
#1
nickjre avatar

nickjre

New Zenner

Join Date:
Jul 2005
Posts:
84
Plugin Contributions:
0

For those of you trying to use multiple free shipping options..

Here's a quick little tip on how to make freeoptions use multiple shipping options when determining if a product qualifies for free shipping or not. What I mean here is, if you want to have freeoptions use both weight and purchase price... here's how.

  1. Put your store in maintenance mode

  2. Make a copy of your original /catalog/includes/modules/shipping/freeoptions.php for a backup

  3. Open up your /catalog/includes/modules/shipping/freeoptions.php with a good text editor.

  4. Find line 175 if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items)

  5. change the first or to an and. The line should look like this if ($this->ck_freeoptions_total and $this->ck_freeoptions_weight or $this->ck_freeoptions_items)

  6. set your freeoptions accordingly.

Mine is setup so that if an order is >= 200 and weighs less then 30 lbs. the customer gets free shipping

Now Zen-Cart will check both your shipping price and your shipping weight before deciding if it should display free shipping. So make sure you setup your freeoptions right!

20 Dec 2008, 10:38 PM
#2
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: For those of you trying to use multiple free shipping options..

Thanks for putting this up! I'm cheap so I set it > $100 and < 10lbs. I was sort of surprised that this module defaults to an 'or' statement vs 'and'. Maybe in a future release we could see a radio option to set this.

21 Dec 2008, 5:28 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: For those of you trying to use multiple free shipping options..

It was written for OR vs AND ... and yes ... would be nice if I broke down and added the variable connectors on these ...

But ... once I add the switch then folks want the next switch and the next and the next ... :blink:

One of these days ... thanks for posting the easy conversion to the AND settings ...

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!