Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    Hi Linda,

    Thanks, but I don't see where I can set a zone for the ot_shipping module? In the admin only International / National and Both are available...

    Thanks !
    Shirley :)

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    Got a better way ...

    Edit the file:
    /includes/modules/pages/checkout_shipping/header_php.php

    NOTE: there is no override for this ...

    Add in above the line:
    PHP Code:
      require(DIR_WS_MODULES zen_get_module_directory('require_languages.php')); 

    PHP Code:
    // free shipping US >= $75.00
      
    if ($order->delivery['country_id'] == 223 && $order->info['total'] >= 75) {
        
    $free_shipping true;
        
    $pass true;
        
    $_SESSION['shipping'] = 'free_free';
        
    $_SESSION['shipping'] = array('id' => $_SESSION['shipping'],
                                      
    'title' => 'Free Shipping',
                                      
    'cost' => 0.00);
        
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT'''SSL'));
      } 
    Note: you will need to address the shipping estimator in a similar fashion ...
    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!

  3. #13
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    i have looked over the forums about how to skip the step 1 in checkout process but unfortunately havn't got any solution. all i is know is that it can skip step1 if the products are set to "yes, skip shipping address". but sadly i have over 10,000 downloadable products posted on my site and i dont want to go over again to edit those products that are set to "No, shipping Address Required". so i just want to ask where to find the code that handles these options so that i can change the logic or set it the same as the "yes, skip..." or the products that set to "No, Shipping Address Required" would still be read as the "Yes, Skip Shipping Address... anyway all my products are all downloadable and no shipping address required.. thanks.. looking forward for your response...

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    If ALL products are Virtual Products, then you could use this command in the Tools ... Install SQL Patches ...
    UPDATE products SET products_virtual = 1;
    NOTE: be sure to backup your database before making changes ...
    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!

  5. #15
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    Thanks!!! whew!

  6. #16
    Join Date
    Jun 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    Quote Originally Posted by Ajeh View Post
    If ALL products are Virtual Products, then you could use this command in the Tools ... Install SQL Patches ...


    NOTE: be sure to backup your database before making changes ...
    hello... i need help for downloads... ive been figuring this out when i started my site. my problem is i have 40,000+ of downloadable products and was set-up differently and incorrectly due to number personnel incorrect postings. some will charge shipping during checkout some are ok..and i dont want to go one by one editing those products. so im just asking that is there a shorter way to set all products attributes to downloads.to make all products to: 1. Product is Virtual: no, shpping address requied 2. Always free shipping: no, normal shipping rules. or is there a query to run? what would be the exact query or a command in tools for this? any help would be appreciated very much.. thanks you..

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to hide all other shipping options when an order is eligible for free shippin

    See your other thread ... it is too confusing to try to post to multiple threads ... only 1 is needed, thanks!
    http://www.zen-cart.com/forum/showth...749#post837749
    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!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v152 FREE Shipping WITH Other Paid Express Shipping Options?
    By sle39lvr in forum Built-in Shipping and Payment Modules
    Replies: 18
    Last Post: 9 Aug 2014, 06:51 PM
  2. Replies: 41
    Last Post: 27 Feb 2011, 01:01 AM
  3. How to show Free Shipping AND other shipping options?
    By LRS in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 20 Jul 2010, 08:25 PM
  4. hide other shipping methods with free shipping
    By thenax in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Nov 2009, 09:46 PM
  5. Can free shipping override other shipping options?
    By UVBoy in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Jan 2008, 10:29 PM

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