Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: How can disable the checkbox for the shipping zone ?

    There are other examples in the forum about disabling/enabling shipping options based on order characteristics, they may be by weight or price, or location, but the same type of modification would be necessary essentially to not show the order option when the criteria is met.

    Sorry I don't have examples, but I have seen them several times before.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Oct 2008
    Posts
    591
    Plugin Contributions
    0

    Default Re: How can disable the checkbox for the shipping zone ?

    need help please ...

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: How can disable the checkbox for the shipping zone ?

    Quote Originally Posted by dmagic View Post
    need help please ...
    Search of the forum "posts" for shipping disable method found at least this thread:

    http://www.zen-cart.com/showthread.p...certain-weight

    May help.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: How can disable the checkbox for the shipping zone ?

    Quote Originally Posted by mc12345678 View Post
    Search of the forum "posts" for shipping disable method found at least this thread:

    http://www.zen-cart.com/showthread.p...certain-weight

    May help.
    From that post, would change the following:

    Code:
    // disable only when entire cart is free shipping 
          if (zen_get_shipping_enabled($this->code)) { 
            $this->enabled = ((MODULE_SHIPPING_ZONES2_STATUS == 'True') ? true : false); 
          } 
          // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED 
          $this->num_zones = 4; 
        } 
    To:

    Code:
    // disable only when entire cart is free shipping 
          if (zen_get_shipping_enabled($this->code)) { 
            $this->enabled = ((MODULE_SHIPPING_ZONES2_STATUS == 'True') ? true : false); 
          } 
    
          if (!IS_ADMIN_FLAG) {         global $cart;         if ($_SESSION['cart']->weight > 1.91 ) {           $this->enabled = false;         }       }
          // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 4;     } 
    The value of 1.91 was used to represent 1.910 kg == 1910 grams. I do not know what your store is setup regarding units; however, that should get you relatively close to your desired goal. This will prevent display of the option that is provided above (zones2).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139h Zone shipping - Can I disable purchase of certain items based on a shipping zone?
    By gsh68 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 7 Aug 2017, 07:05 PM
  2. v139h If freeoptions criteria=true, how can i disable the other shipping methodes?
    By Angioni in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 10 Mar 2012, 02:42 PM
  3. How can I config the shipping zone by mainland?
    By shabizon in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 19 Nov 2010, 11:43 PM
  4. How do I set the checkbox for Product Notifications to unchecked?
    By alexwoolfson in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Jan 2009, 06:00 PM
  5. how can I disable the catetory list right under the logo?
    By lina0962 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 15 Jun 2006, 12:39 AM

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