If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / How to configure free shipping for amount >= $50 AND weight =< 20lbs ?

How to configure free shipping for amount >= $50 AND weight =< 20lbs ?

Locked

Started by tj1 on 29 Jul 2010, 3:31 AM · Views: 1,246

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
29 Jul 2010, 3:31 AM
#1
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Post #1 by tj1

I'm trying to configure my shop to offer free shipping when
Total >= $50
AND
Weight <= 20lbs

Both the total amount and weight conditions should be met to receive free shipping.

I'm trying to configure this using the Free Shipping Options module.
I set
Total >= 50
Weight <= 20

However, this doesn't work. It seems this offers free shipping if the total is $50 or more OR the weight is less than 20lbs.

How do I configure this correctly for my purpose or would this require code changes?

29 Jul 2010, 2:56 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

The Free Shipping Options freeoptions shipping module uses OR to handle the conditions ...

You can customize this in the:
/includes/modules/shipping/freeoptions.php

// final check for display of Free Options
      if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
        $this->enabled = true;
      } else {
        $this->enabled = false;
      }

See if that helps you in using the combination settings that you need ...

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!

29 Jul 2010, 4:26 PM
#3
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Post #3 by tj1

Thanks, that was easy.

Just a note for anyone who want to customize the /includes/modules/shipping/freeoptions.php file, it seems you can't use override folders here.

29 Jul 2010, 5:24 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

Thanks for the update that this works for you ... and yes, you are correct that there are no overrides for the shipping, payment and order total modules ...

NOTE: there are overrides for the language files associated with them ...

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!