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

Title script!!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2004, 05:03 PM
  rjcbear's Avatar 
rjcbear rjcbear is offline
 

X-Adept
  
Join Date: Jun 2004
Location: Alabama,U.S.A
Posts: 503
 

Default Title script!!!

Hey guy,

I am looking for the post about a script that generates the product name for the TITLE of the page.
I looked for this script for several hours here in the forum and I cant find it. If some one has it or they remember the post would you please point me in the rigth direction.

As always thank you in advance.

Kind regards,
Ricky
__________________
X-CART Gold version 4.0.14 & 4.1.11
Apache Version 1.3.29 (Unix)
EWDHosting-Quality X-cart Hosting
We will always sell you the right shoe and the left one is free.
Reply With Quote
  #2  
Old 09-16-2004, 12:51 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

It's in customer/home.tpl.

Code:
<title>{$lng.txt_site_title} {if $main eq "catalog"} {if $location eq ""} {$lng.txt_subtitle_home} {else} {strip} {section name=position loop=$location start=0 } {if %position.last% eq "true"} - {$location[position].0|escape}{/if} {/section} {/strip} {/if} {elseif $main eq "product"} {if $product.product ne ''} - {$product.product}{/if}
This is a slightly customised title script but the bit you need is {$product.product}. Hope this is what you are looking for.
__________________
Version 3.4.8
Reply With Quote
  #3  
Old 09-16-2004, 06:52 AM
  rjcbear's Avatar 
rjcbear rjcbear is offline
 

X-Adept
  
Join Date: Jun 2004
Location: Alabama,U.S.A
Posts: 503
 

Default

Quote:
It's in customer/home.tpl.

Code:
<title>{$lng.txt_site_title} {if $main eq "catalog"} {if $location eq ""} {$lng.txt_subtitle_home} {else} {strip} {section name=position loop=$location start=0 } {if %position.last% eq "true"} - {$location[position].0|escape}{/if} {/section} {/strip} {/if} {elseif $main eq "product"} {if $product.product ne ''} - {$product.product}{/if}


This is a slightly customised title script but the bit you need is {$product.product}. Hope this is what you are looking for.

The code above will put the Site Title first follow by the Product name as part of the page Title.
This is my ignorance but I do not have a clue how to flip them so It will display the Product name first then the Site title as is done in the to links below.

http://worldbodyjewelry.net/xcart/catalog/zodiac-dangle-belly-button-rings-p-933.html

http://worldbodyjewelry.net/xcart/catalog/14g-5-8-double-jeweled-straight-barbell-p-317.html

http://worldbodyjewelry.net/xcart/customer/home.php?cat=101

Thank you for all your help

Kind regards,
Ricky
__________________
X-CART Gold version 4.0.14 & 4.1.11
Apache Version 1.3.29 (Unix)
EWDHosting-Quality X-cart Hosting
We will always sell you the right shoe and the left one is free.
Reply With Quote
  #4  
Old 09-17-2004, 12:46 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

Put the {$lng.txt_site_title} at the end of that script just before the </title> tag. You will get hypens in the wrong place so you will have to move those about (or remove them completely) but you can see these quite easily in the code.
__________________
Version 3.4.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:11 AM.

   

 
X-Cart forums © 2001-2020