Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Modifying a shipping option

    Using the developers toolkit I was able to modify the description of the 'flat rate' to 'expedited shipping (orders over $30 only)'... but I am now running in to a problem with customers selecting this as the shipping method for orders under $30.

    Is there a line of code that would disable the 'flat rate' shipping option if the total cart value is under a certain dollar value.

    I know this is odd, but our store offers free shipping on orders over $30 and we like to offer the option of having a faster shipping method for a fee.

    Any assistance is appreciated

    thanks

    Phil
    Kind of Magic

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

    Default Re: Modifying a shipping option

    You need to control when the $this->enabled is true or false on the shipping module ...

    When true, it shows ... when false, it does not show ...
    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. #3
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: Modifying a shipping option

    thanks this is what I ended up adding and it seems to work ... I had to have a friend who knew a little more about PHP than me help me with it.

    if ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {
    $this->enabled = false;
    }

 

 

Similar Threads

  1. v139h Free shipping option, disable one other shipping option
    By stylenote in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 21 Jul 2012, 09:56 PM
  2. modifying shipping w/ observer
    By magichat in forum General Questions
    Replies: 0
    Last Post: 2 Nov 2006, 08:35 PM
  3. modifying custom shipping zones
    By whiteboxer in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Aug 2006, 11:59 PM
  4. Modifying the table shipping module
    By Parafanaylya in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 2 Jun 2006, 10:45 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