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 .home.php (https://forum.x-cart.com/showthread.php?t=45609)

pp1984 02-16-2009 10:29 AM

changing .home.php
 
I know a completely noob questions but still getting my head around editing this script

How do i change so that my logo and breadcrumb link to domain.com/ instead of domain.com/home.php?

Thanks :D/

balinor 02-16-2009 12:01 PM

Re: changing .home.php
 
Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:

http://forum.x-cart.com/showthread.php?t=23970

Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your questions correctly. Thanks! :)

pp1984 02-16-2009 12:11 PM

Re: changing .home.php
 
Thanks for the the link ill check that out now .. updated my sig also

Victor D 02-17-2009 03:46 AM

Re: changing .home.php
 
1) Logo is placed in the skin1/customer/head.tpl
just change href for the hyperlink from "home.php" to "/"

2) In skin1/customer/bread_crumbs.tpl replace the line
Code:

<a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a>
with
Code:

<a href="{if $smarty.foreach.location.first}{$l.1|replace:"home.php":""}{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a>

pp1984 02-17-2009 04:30 AM

Re: changing .home.php
 
thanks very much Victor. That has sorted it!

chris@earmark 02-17-2009 02:10 PM

Re: changing .home.php
 
Quote:

Originally Posted by Victor D
1) Logo is placed in the skin1/customer/head.tpl
just change href for the hyperlink from "home.php" to "/"

2) In skin1/customer/bread_crumbs.tpl replace the line
Code:

<a href="{$l.1|amp}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a>
with
Code:

<a href="{if $smarty.foreach.location.first}{$l.1|replace:"home.php":""}{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a>


Thanks for the good info Victor. I am trying to do the same thing but with a slight twist. How would you go about linking your bread crumb to a site that is not domain.com/ but a domain separate from your cart itself or possibly linking to another page within the cart itself? t.i.a

chris

Victor D 02-18-2009 02:36 AM

Re: changing .home.php
 
Quote:

Originally Posted by chris@earmark
Thanks for the good info Victor. I am trying to do the same thing but with a slight twist. How would you go about linking your bread crumb to a site that is not domain.com/ but a domain separate from your cart itself or possibly linking to another page within the cart itself? t.i.a
chris

So you want if for 'Home page' breadcrumb?
just replace the code mentioned above with
Code:

<a href="{if $smarty.foreach.location.first}http://put.link.here{else}{$l.1|amp}{/if}" class="bread-crumb{if $smarty.foreach.location.last} last-bread-crumb{/if}">{$l.0|escape}</a>

chris@earmark 02-18-2009 10:27 AM

Re: changing .home.php
 
Victor, that solution worked excellent. Thanks for the help!

pteerapr 05-30-2011 10:33 PM

Re: changing .home.php
 
what about in version 4.4.3 gold
I have examined bread_crumbs.tpl in customer folder under specific skin type, but could not figure out how to change link from home.php to point to domain name.

Thank you,

bugaminute 08-02-2011 04:22 PM

Re: changing .home.php
 
For version 4.4.3 gold: It is

Replace

<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

<a href="{if $smarty.foreach.location.first}http://put.link.here{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>

(..and thanks to Victor D for original post!)


All times are GMT -8. The time now is 09:27 AM.

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