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)
-   -   3.5.12 - How To Put Product Name in <TITLE> (https://forum.x-cart.com/showthread.php?t=12199)

Jonathan501 02-15-2005 12:07 PM

3.5.12 - How To Put Product Name in <TITLE>
 
I am sure this has been discussed in here 1001 times but I swear the search function can't find it. :evil:

:arrow: I want to show the Product Name in the title bar of the browser window.

:?: What do I need to change to make that work?

I know all of the 4+'s do it, but since it is not stable I am scared to upgrade. I plan on going live in a week or so.

Any tips?

balinor 02-15-2005 12:19 PM

That should be in there by default...have you made any changes to home.tpl?

Jonathan501 02-15-2005 12:35 PM

No I haven't yet. Is there a setting somewhere in that version that turns that on and off. I see it change for Home, Contact Us, Checkout, etc, but not product names.

Check it out: http://gospelvideoexpress.com/xstore/customer/

I haven't removed the X-cart stuff off the bar yet.

Jonathan501 02-15-2005 12:59 PM

One more thing, I notice it working on your Dali website. I would want to reverse the order, Product Title - Comapny Name

(I like your work by the way!!!!)

balinor 02-15-2005 01:10 PM

Thanks for the compliment! :)

Here's what your title tag should look like in skin1/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}
{elseif $main eq "help"}
{$lng.txt_subtitle_help}
{elseif $main eq "cart"}
{$lng.txt_subtitle_cart}
{elseif $main eq "checkout"}
{$lng.txt_subtitle_checkout}
{elseif $main eq "order_message"}
{$lng.txt_subtitle_thankyou}
{elseif $main eq "wishlist"}
{$lng.txt_subtitle_wishlist}
{elseif $main eq "giftcert"}
{$lng.txt_subtitle_giftcerts}
{/if}
</title>


Let me know if that does the trick....

Jonathan501 02-15-2005 01:16 PM

I think that will work, I won't be able to check it until I get to my other pc but that looks different from what I remember being in there.

I will send a status update tonight.

Can I PM you about some of the mods you've done so I know where to find them on here?

balinor 02-15-2005 01:17 PM

Sure, but only if you put your X-Cart version number in your signature ;)

Jonathan501 02-21-2005 01:38 PM

Thanks! Worked like a charm!

BCSE 02-21-2005 09:03 PM

I have a free site title tip on my site that you can "buy" for free that may also help. It's a bit different from what balinor suggested I think, if I remember right. :lol: It will put your product name First, then store name.

Carrie


All times are GMT -8. The time now is 04:31 PM.

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