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

changing underlying breadcrumb links

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-23-2004, 09:05 AM
 
LimitedWish LimitedWish is offline
 

Newbie
  
Join Date: Feb 2004
Location: Fresno, CA
Posts: 4
 

Default 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
__________________
X-Cart Gold 3.5.8 (Unix)
Fresno, CA
Reply With Quote
  #2  
Old 06-24-2004, 04:01 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 09:32 AM.

   

 
X-Cart forums © 2001-2020