View Single Post
  #136  
Old 05-31-2012, 12:26 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: common if/then modifications I make to x-cart...

Quote:
Originally Posted by PhilJ
Code:
{if $smarty.get.pageid eq "1"} ... {/if}

Better to use this code in case they are using CDSEO or clean urls which won't have the pageid in the url:

Code:
{if $page_data.pageid eq 'X'} I am on page X. {/if}
Reply With Quote