Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Modifying Breadcrumb.php

    Happy Sunday Evening to everyone.

    I have modified the Breadcrumb.php code around line 55 to:

    $trail_string .= ' <a href="' . HTTP_SERVER . '">' . $this->_trail[$i]['title'] . '</a>'; /* DIR_WS_CATALOG . */

    from

    $trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG .'">' . $this->_trail[$i]['title'] . '</a>';

    In the header and footer, this effectively changes the "Home" link to my site home page and not the cart home page, which is what I want. However, it seems there is not a way to load this modified breadcrumb file to my "CUSTOM" directory.

    I've searched on this and it seems the common response is to add a link in front of the breadcrumb that goes to the site home page and leave the cart home page in place - for now at least, that's not what I want to do.

    Can someone suggest a better way to do this? (My concern of course is that this file will be overwritten if I upgrade in the future, correct?)

    Thanks!

    Alex

  2. #2
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Modifying Breadcrumb.php

    Your way will work, however, one way I got around this with a site I worked on was to hard code the home link into the header of the custom template. That enabled me to point the user to the home page of the site (which was not the zen cart one) and vice versa.

    Keep in mind that depending on how you have your other portions of the site setup, if a user has something in their cart, then decides to leave the zen interface, you might run the risk of them losing what is in their cart.

    I've seen this happen on several sites, but never had the problem.

    Good luck!
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Modifying Breadcrumb.php

    Quote Originally Posted by econcepts View Post
    Your way will work, however, one way I got around this with a site I worked on was to hard code the home link into the header of the custom template. That enabled me to point the user to the home page of the site (which was not the zen cart one) and vice versa.

    Keep in mind that depending on how you have your other portions of the site setup, if a user has something in their cart, then decides to leave the zen interface, you might run the risk of them losing what is in their cart.

    I've seen this happen on several sites, but never had the problem.

    Good luck!

    Thanks for your response. I'll play around with the cart for some dummy accounts and see if I have any problems.

 

 

Similar Threads

  1. How to override breadcrumb.php?
    By ultimate_zc in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Apr 2012, 07:24 AM
  2. breadcrumb: I forgot where the php is!
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Oct 2010, 12:20 AM
  3. Overriding breadcrumb & filenames.php
    By Akoza in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 8 Mar 2007, 07:49 AM
  4. Modifying english.php
    By ctc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Aug 2006, 11:46 PM
  5. Modifying the Breadcrumb
    By voltage in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jul 2006, 04: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