Forums / Built-in Shipping and Payment Modules / hide other shipping methods with free shipping

hide other shipping methods with free shipping

Locked

Started by thenax on 20 Jul 2009, 9:14 PM · Views: 1,398

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Jul 2009, 9:14 PM
#1
thenax avatar

thenax

New Zenner

Join Date:
Jun 2009
Posts:
67
Plugin Contributions:
0

hide other shipping methods with free shipping

how do I hide all other shipping methods when an order is eligible for free shipping (under 50 lbs)? I use freeoptions and MODULE_SHIPPING_UPS_HANDLING.

20 Jul 2009, 9:24 PM
#2
thenax avatar

thenax

New Zenner

Join Date:
Jun 2009
Posts:
67
Plugin Contributions:
0

Re: hide other shipping methods with free shipping

thenax:

how do I hide all other shipping methods when an order is eligible for free shipping (under 50 lbs)? I use freeoptions and MODULE_SHIPPING_CITIES.

I have to modify something here but i'm not sure what!

// class constructor
    function cities() {
      $this->code = 'cities';
      $this->title = MODULE_SHIPPING_CITIES_TEXT_TITLE;
      $this->description = MODULE_SHIPPING_CITIES_TEXT_DESCRIPTION;
      $this->sort_order = MODULE_SHIPPING_CITIES_SORT_ORDER;
      $this->icon = '';
      $this->tax_class = MODULE_SHIPPING_CITIES_TAX_CLASS;
      $this->tax_class = MODULE_SHIPPING_CITIES_TAX_CLASS;

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

      // CUSTOMIZE THIS SETTING FOR THE NUMBER OF CITIES NEEDED
      $this->num_zones = 20;
    }

// class methods
    function quote($method = '') {
      global $order, $shipping_weight, $shipping_num_boxes;
10 Nov 2009, 8:46 PM
#3
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: hide other shipping methods with free shipping

thenax,

Did you ever figure this out? I need to do something very similar and have been searching the forum for quite a bit now.

Thanks!

Ellie Armsby