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

breadcrumb links

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-16-2013, 07:04 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default breadcrumb links

I was wondering where I go to change this line
Quote:
<div id="location">
<a href="/" class="bread-crumb">Home</a>
to
Quote:
<div id="location">
<a href="www.uscandleco.com" class="bread-crumb">Home</a>

I wanna drop the "/" and use "www.uscandleco.com" instead.
Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #2  
Old 04-16-2013, 07:11 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: breadcrumb links

If you are using Windows you can use Search tool (F3). Just search for all files (*.*) in a directory containing your string. If you want only tpl, just use this sequence *.tpl.

I prefer to give you this solution instead of mentioning the right file. You will discover it is a great tip.

PS Do you think is a good idea for SEO to use a domain name in your breadcrumb?
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #3  
Old 04-16-2013, 07:32 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: breadcrumb links

Hi Addison,
the line am looking for is in a .tpl file but the "home" location is a variable pulled from some where else. I already know what .tpl file the lines of code are from that I posted earlier, that is where I copied the lines from. The "/" is being set somewhere else but I'm not sure where. I am familiar with the search tool, I use it quite a lot. You are correct that it is very handy.

As far as the SEO goes, I'm not sure if it really matters much but I've read a few places that having the url is better so I want to give it a shot.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #4  
Old 04-16-2013, 10:35 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: breadcrumb links

Search for that variable inside php files. I am using Sublime Text as editor and finding variables inside files is so easy.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #5  
Old 04-17-2013, 03:19 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: breadcrumb links

skin/common_files/customer/bread_crumbs.tpl

Replace...

Quote:
<a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|amp}{/if}</a>

With...

Quote:
<a href="{if $l.0|amp eq "Home"}{$http_location}{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{if $webmaster_mode eq "editor"}{$l.0}{else}{$l.0|amp}{/if}</a>

Though as Addison says, not sure it's advisable.

Having too many links to the homepage is not good for SEO.

Interesting article
__________________
xcartmods.co.uk
Reply With Quote
  #6  
Old 04-17-2013, 05:58 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: breadcrumb links

Thanks Phil and Addison. I still haven't decided if I want to make the switch to the URL yet. I do have a few other places that have the absolute url instead of the relative so those may be enough. I'll check out the article you posted, thanks for that.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
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 02:11 PM.

   

 
X-Cart forums © 2001-2020