Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2009
    Posts
    22
    Plugin Contributions
    0

    Default Remove certain shipping options based on total price

    I couldnt' find any comments regarding this.

    I'd like to restrict folks from using certian shipping options under certian situations. For example, for international orders I'd like to not allow the customers to select First Class Mail International if the order total is over $100. Even being able to edit the shipping option to state "First Class Mail International (only for orders under $100USD).

    Is this possbile? Just an edit of some obscure buried .php file?

    Thanks!
    Tim

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

    Default Re: Remove certain shipping options based on total price

    You would need to suppress the quote for that in the shipping module itself for:
    /includes/modules/shipping/usps.php
    /includes/languages/english/modules/usps.php

    evaluate against the $type as to whether or not to build the quote in the:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    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: v1.5.5]
    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. #3
    Join Date
    Jul 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: Remove certain shipping options based on total price

    thanks for that info. I actually found something that worked for me but I posted my results in another thread and forgot to post them here.

    I added a line immediately after this line in /includes/modules/shipping/usps.php :


    Code:
    if ($_SESSION['cart']->total > 400 && strstr($services[$i], 'Priority Mail International Flat Rate Envelope')) continue; // skip value > $400 Priority Mail International Flat Rate Envelope
    Here's what I added:


    Code:
    if ($_SESSION['cart']->total > 100 && strstr($services[$i], 'First Class Mail International Package')) continue; // skip value > $100 First Class Mail International PackageThe one that was already there says that if the value is over $400 then Priority Mail
    International Flat Rate Envelope will no longer be an option.

    Basically, I used the rule I found in there that prevents packages over $400 from being sent in an Priority Mail International Flat Rate Enveleope, but mine makes First Class Mail International Package is no longer an option for purchases over $100.

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

    Default Re: Remove certain shipping options based on total price

    Thanks for the update on what worked for you ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. v150 Ceon shipping module: remove shipping options for certain product combinations?
    By irish_1985 in forum Addon Shipping Modules
    Replies: 2
    Last Post: 28 Oct 2012, 02:18 AM
  2. Shipping price based on cart total?
    By wizer in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 15 Jan 2011, 05:54 PM
  3. Shipping based off price with multiple shipping options
    By ribbonsbaskets0 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 23 Nov 2008, 11:28 PM
  4. Replies: 5
    Last Post: 2 Oct 2008, 04:09 PM
  5. remove shipping options from certain products
    By greatbaits1 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 27 Jul 2006, 05:18 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR