X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need help defining current location (https://forum.x-cart.com/showthread.php?t=21779)

bridal-land 05-14-2006 11:51 AM

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

bridal-land 05-14-2006 08:09 PM

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

maineiac 08-15-2006 08:25 AM

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


All times are GMT -8. The time now is 06:52 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.