Forums / Built-in Shipping and Payment Modules / If freeoptions criteria=true, how can i disable the other shipping methodes?

If freeoptions criteria=true, how can i disable the other shipping methodes?

Started by angioni on 16 Feb 2012, 2:15 PM · Views: 1,316

Results 1 to 8 of 8
16 Feb 2012, 2:15 PM
#1
angioni avatar

angioni

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

If freeoptions criteria=true, how can i disable the other shipping methodes?

Hi all,

i have 3 shipping methods enabled: freeoptions,storepickup and table.
How can i disable the Table shipping methode when my Freeoptions criteria ( above 100 euro ) = true?
I don't want to see that option when choosing ( as a customer ) the shipping method !

Remco Angioni

16 Feb 2012, 2:55 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Does everyone get Free Shipping on orders of >= 100 or just some people?

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!

16 Feb 2012, 3:12 PM
#3
angioni avatar

angioni

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Hi,

the answer is everyone.

Remco Angioni

16 Feb 2012, 3:47 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Then instead of using Free Shipping Options freeoptions, go to the Modules ... Order Totals ... Shipping ot_shipping and enable Free Shipping and enter the amount and set to BOTH ...

Now, when the order is >= 100 it will only show Free Shipping to everyone and not show the other shipping modules ...

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!

16 Feb 2012, 3:57 PM
#5
angioni avatar

angioni

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Hi Ajeh,

its working, but also the module storepickup is disabled now when ordervalue is above 100 euro .
And thats not what i want! Can this be changed?

Remco angioni

16 Feb 2012, 4:16 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Turn off the Modules ... Order Totals ... Shipping ot_shipping for the Free shipping ... Do not turn off the Shipping Order total itself, just the Free Shipping ...

Turn back on the Free Shipping Options freeoptions ...

Now you need to customize your shipping modules if you do not want to show the other shipping modules when the total >= 100 ...

Example: in Flat Rate flat shipping module:
/includes/modules/shipping/flat.php

The code in RED will turn it off at >= 100

      // disable only when entire cart is free shipping
      if (zen_get_shipping_enabled($this->code)) {
        $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
      }

if (IS_ADMIN_FLAG == false) {
  global $cart;
  if ($_SESSION['cart']->show_total() >= 100) {
    $this->enabled = false;
  }
}

On the other shipping modules you should see a similar section where you can put this 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!]
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!

10 Mar 2012, 12:00 PM
#7
angioni avatar

angioni

New Zenner

Join Date:
Feb 2011
Posts:
9
Plugin Contributions:
0

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Okidoki.... its working now like it should.... Thanx

10 Mar 2012, 1:42 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: If freeoptions criteria=true, how can i disable the other shipping methodes?

Thanks for the update that this is working for you now ... :smile:

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!