Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    110
    Plugin Contributions
    1

    Default Making use of TITLE_NO_SHIPPING_AVAILABE

    I am trying to get my store to simply direct customers to a dealer link when I disable shipping to there particular country or zone.

    I was hoping to use the define TITLE_NO_SHIPPING_AVAILABLE in the language file for checkout_shipping.php to show a explanation and link to a dealer page.

    I.E. The part that says sorry we are not shipping to your region, but adding please see this link>> for our dealer locator.

    The trouble is that the zone shipping module is one of the shipping modules I use and even when there is no country listed and the catch all switch is off, the TITLE_NO_SHIPPING_AVAILABLE define is not called because the module has it's own define MODULE_SHIPPING_FEDEX_INVALID_ZONE.
    (Note: I have cloned this module for use with different courier options i.e fedex)

    This seems to defeat the purpose of the TITLE_NO_SHIPPING_AVAILABLE define.

    Is there an easy way to modify zones.php so that it is seen by the checkout_shipping.php as disabled if no zones are found. This way if no shipping zones are found The dealer explanation and link can be displayed and customers can easily be forwarded to my dealers.

    I have tried some trial and error, but I am no coder and would appreciate any guidance on this subject.
    Cheers all,

    Gruntre69

    WayCool
    Zen is Way Cool too!

  2. #2
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    110
    Plugin Contributions
    1

    Default Re: Making use of TITLE_NO_SHIPPING_AVAILABE

    Here is the answer that I finally figured out for my self for anybody in future looking for it.
    Look around line 224 in the shipping module zones.php
    Code:
    // edit by GB
    /*      if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_FEDEX_INVALID_ZONE;
    
          return $this->quotes;
        }
    // changed to intergrate with TITLE_NO_SHIPPING_AVAILABLE define for dealer message*/
          if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title);
    
    if ($error == false) return $this->quotes;
          if ($error == true) $this->enabled = false;    
        }
    // EOF change
    Cheers all,

    Gruntre69

    WayCool
    Zen is Way Cool too!

  3. #3
    Join Date
    Nov 2006
    Location
    Dallas, Texas
    Posts
    12
    Plugin Contributions
    0

    Default Re: Making use of TITLE_NO_SHIPPING_AVAILABE

    Thanks for that, I'm new to php and all this code stuff, so finding the right place to edit something can be a tad confusing sometimes.

  4. #4
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Making use of TITLE_NO_SHIPPING_AVAILABE

    If anyone else is looking at this I think a } got left off in the example above. It worked for me like this:

    if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title);
    }
    if ($error == false) return $this->quotes;
    if ($error == true) $this->enabled = false;
    }

 

 

Similar Threads

  1. v139f Use flat rate up to a certain weight, then use USPS
    By WhiteWolf in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Jun 2012, 03:21 AM
  2. Use third party use for purchase portion of cart
    By msbfrnj in forum Customization from the Admin
    Replies: 2
    Last Post: 2 Apr 2010, 07:28 PM
  3. Clarification needed - use admin panel or use an override file???
    By mokijo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jan 2010, 12:45 AM
  4. How can I use Multiple mods that use same files?
    By sfklaas in forum General Questions
    Replies: 1
    Last Post: 8 May 2009, 10:27 PM
  5. Replies: 0
    Last Post: 12 Nov 2008, 10:08 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