Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need help defining current location

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-14-2006, 11:51 AM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default Need help defining current location

I need some help with defining to xcart the current page that is being displayed. I guess you would say.


For example

{if $main eq "help"} this says if your in help zone right?
and
{if $main eq "catalog" and $current_category.category eq ""}
says if your on the main page right?

ok i need 2 things-
First I need to be able to further define help zone. I need to be able to define whether im on terms and conditions, privacy statement or contact us. I guess I have to add "and" to the code but im not sure what I would put to define that.

Heres the second thing
I need to define the news page. I tried"
{if $main eq "news"} it didn't work so I guess its called something else. Is there some thing I can refer to, to see what these pages are referred to as by xcart?

Thanks in advance for any help
Mike
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
  #2  
Old 05-14-2006, 08:09 PM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default

OK Live and learn.... I figured out how to find out what xcart calls the pages so the second one is done. I found my answer in webmaster mode (Duh)

I still do need help with further defining the help zone to specifc pages

Thanks
Mike
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
  #3  
Old 08-15-2006, 08:25 AM
 
maineiac maineiac is offline
 

Member
  
Join Date: Jun 2005
Location: USA
Posts: 29
 

Default display 'help section' location in breadcrumb

In include/help.php add the following for each section:

Code:
if ($section == 'Password_Recovery') {$location[] = array(func_get_langvar_by_name("lbl_forgot_password"), "");} if ($section == 'conditions') {$location[] = array(func_get_langvar_by_name("lbl_terms_n_conditions"), "");}
...etc.

This works for me with v4.0.18
__________________
maineiac

x-cart gold v4.0.18
x-cart gold v4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:57 PM.

   

 
X-Cart forums © 2001-2020