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)
-   -   changing underlying breadcrumb links (https://forum.x-cart.com/showthread.php?t=8214)

LimitedWish 06-23-2004 09:05 AM

changing underlying breadcrumb links
 
I've customized my site in such a way that the breadcrumb urls at the top of category/subcategory/product pages are incorrect. By default, these are .../home.php?.... , and it seems they come from the $location variable. I can't really grasp what's happening in location.tpl beyond the first few lines.

How can I set this variable? How can I change the underlying breadcrumb links?

thanks

B00MER 06-24-2004 04:01 AM

In most .tpl's you'll find:
Code:

{ include file="location.tpl" last_location="Last Location" }
Which sets the last element of the location variable.

This is in home.php which sets the first part of the location:

Code:

if(!empty($current_category)) $location = $category_location;

You can also find more in include/categories.php:

Code:

$category_location[]=array(ereg_replace(".*/","",$val),"home.php?cat=".$categoryid);

hth. ;)


All times are GMT -8. The time now is 06:01 AM.

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