Results 1 to 6 of 6

Thread: Remove $breadcrumbnav if on orderform

  1. #1
    Join Date
    Jun 2008
    Posts
    95

    Lightbulb Remove $breadcrumbnav if on orderform

    I would like to remove the $breadcrumbnav if the user is on the orderform pages. How would I do this?
    HTML Code:
    {if $breadcrumbnav}<p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>{/if}

  2. #2
    Join Date
    Mar 2008
    Posts
    143

    Default

    Try something like:
    Code:
    {if $breadcrumbnav and $filename neq "cart"}
    <p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>
    {/if}
    Thanx!
    Rob

  3. #3
    Join Date
    Apr 2011
    Location
    Somewhere
    Posts
    219

    Default

    This code should do what you want.

    Code:
    {if $pagetitle != 'Shopping Cart'}
    {else}
    {if $breadcrumbnav}<p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>{/if}
    {/if}

  4. #4
    Join Date
    Jun 2008
    Posts
    95

    Default

    Quote Originally Posted by robb3369 View Post
    Try something like:
    Code:
    {if $breadcrumbnav and $filename neq "cart"}
    <p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>
    {/if}
    Wouldn't it have to be:
    Code:
    {if $breadcrumbnav and ($filename neq "cart")}
    <p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>
    {/if}
    Quote Originally Posted by mojahed View Post
    This code should do what you want.

    Code:
    {if $pagetitle != 'Shopping Cart'}
    {else}
    {if $breadcrumbnav}<p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>{/if}
    {/if}
    Is this going to work for all shopping cart pages? Does pagetitle not change on any of the orderform pages?

  5. #5
    Join Date
    Apr 2011
    Location
    Somewhere
    Posts
    219

    Default

    Quote Originally Posted by Nullified View Post
    Wouldn't it have to be:
    Code:
    {if $breadcrumbnav and ($filename neq "cart")}
    <p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>
    {/if}
    Is this going to work for all shopping cart pages? Does pagetitle not change on any of the orderform pages?
    Yes it will work for all shopping cart pages unless you change the shopping cart page title in the Language file

  6. #6
    Join Date
    Jun 2008
    Posts
    95

    Default

    Thank You, this worked!
    PHP Code:
    {if $breadcrumbnav and ($filename neq "cart")}
            <
    p style="margin: 10px 30px 10px 30px;">{$LANG.globalyouarehere}: {$breadcrumbnav}</p>
    {/if} 

Similar Threads

  1. How to truncate {$breadcrumbnav}
    By Hervek in forum Customisation & Integration Questions
    Replies: 1
    Last Post: 11-26-12, 12:05 PM
  2. how to customize $breadcrumbnav ?
    By suprahost in forum Customisation & Integration Questions
    Replies: 12
    Last Post: 04-14-11, 04:42 PM
  3. [ask] modifying $breadcrumbnav
    By eqock in forum Customisation & Integration Questions
    Replies: 2
    Last Post: 07-01-09, 08:22 AM