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

changing .home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-16-2009, 10:29 AM
 
pp1984 pp1984 is offline
 

Newbie
  
Join Date: Feb 2009
Posts: 3
 

Default 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
__________________
X-Cart DB Version: 4.2.0 GOLD
Reply With Quote
  #2  
Old 02-16-2009, 12:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-16-2009, 12:11 PM
 
pp1984 pp1984 is offline
 

Newbie
  
Join Date: Feb 2009
Posts: 3
 

Default Re: changing .home.php

Thanks for the the link ill check that out now .. updated my sig also
__________________
X-Cart DB Version: 4.2.0 GOLD
Reply With Quote
  #4  
Old 02-17-2009, 03:46 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default 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>
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote

The following user thanks Victor D for this useful post:
parekh81 (04-18-2009)
  #5  
Old 02-17-2009, 04:30 AM
 
pp1984 pp1984 is offline
 

Newbie
  
Join Date: Feb 2009
Posts: 3
 

Default Re: changing .home.php

thanks very much Victor. That has sorted it!
__________________
X-Cart DB Version: 4.2.0 GOLD
Reply With Quote
  #6  
Old 02-17-2009, 02:10 PM
 
chris@earmark chris@earmark is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 42
 

Default 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
__________________
x-cart 4.2.0
fancy categories
Reply With Quote

The following user thanks chris@earmark for this useful post:
parekh81 (04-18-2009)
  #7  
Old 02-18-2009, 02:36 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default 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>
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #8  
Old 02-18-2009, 10:27 AM
 
chris@earmark chris@earmark is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 42
 

Default Re: changing .home.php

Victor, that solution worked excellent. Thanks for the help!
__________________
x-cart 4.2.0
fancy categories
Reply With Quote
  #9  
Old 05-30-2011, 10:33 PM
 
pteerapr pteerapr is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 48
 

Default 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,
__________________
x cart 4.4.3 gold Unix U.S.A
Reply With Quote
  #10  
Old 08-02-2011, 04:22 PM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default 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!)
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
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 03:23 AM.

   

 
X-Cart forums © 2001-2020