Print Page | Close Window

Root in the title bar

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1546
Printed Date: 17-July-2025 at 3:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Root in the title bar
Posted By: ammonihah
Subject: Root in the title bar
Date Posted: 18-April-2008 at 10:41am
Anybody know if there is a way to change the title bar on the viewcategories.asp page so that it does not say root?



Replies:
Posted By: Hamish
Date Posted: 18-April-2008 at 11:38am
I took a look at your site & see what you mean.

The title is generated in :
pc/include-metatags.asp &  has some default values coded, but then builds it & the metatags dynamically if possible.
I'm surprised it says root instead of "Product Cart Shopping Software" - or something more specific.
Root is the name of the very top level of the categories so I guess that's where it's coming from. HTH
 


Posted By: ammonihah
Date Posted: 18-April-2008 at 1:27pm

Originally posted by Hamish Hamish wrote:

I took a look at your site & see what you mean.

The title is generated in :
pc/include-metatags.asp &  has some default values coded, but then builds it & the metatags dynamically if possible.
I'm surprised it says root instead of "Product Cart Shopping Software" - or something more specific.
Root is the name of the very top level of the categories so I guess that's where it's coming from. HTH
 

Sure would like to know how to change it so that my title is more seo friendly.



Posted By: Greg Dinger
Date Posted: 18-April-2008 at 1:43pm

Open the file /pc/include-metatags.asp and find this section and edit the 3 specified lines:

' ************************************************************ ******************
' Edit the content for the following constants
' ************************************************************ ******************

' The following is used as the page title when the page that is being loaded is not
' a product or category page. If it is a product or category page, the page title is
' the product name and category name respectively. Replace the ProductCart title
' shown below with your own.
Const DefaultTitle = "ProductCart shopping cart software"

' The following is used as the "Content" for the default "Keywords" meta tag. When the
' page is a product or category page, the product or category names are also added to
' the keywords. Replace the following keywords with your own.
Const DefaultKeywords = "shopping cart software, ecommerce software, asp shopping cart, shopping carts, ecommerce solutions, e-commerce, ProductCart, Early Impact"

' The following is used as the "Content" for the default "Description" meta tag. When the
' page is a product or category page, the product or category descriptions replace the
' default category description.
Const DefaultDescription = "We offer shopping cart software to run ecommerce stores. Our shopping carts are used by businesses to build and manage an online storefront."



-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: EarlJ
Date Posted: 18-April-2008 at 2:55pm
Greg,

editing the /pc/include-metatags.asp doesn't take care of the issue.

I believe how the include works is that it pulls the "category name" and inserts it into the title bar.  Which works perfectly when you are in 1 category.  The problem is that the "main category" that holds all of the categories is named root.

So when you access the viewcategories.asp page the "category" name being called is root.

Is there a way to change root to another name, such as Categories or to hard code it?


Posted By: Greg Dinger
Date Posted: 18-April-2008 at 3:20pm

Oh, ok. I see that now. I'm so accustomed to newbies not updating the default meta tags I thought that's what he was referring to.

My guess is that the store has "root" as the name of a category and just needs to be changed to something else.



-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: ammonihah
Date Posted: 18-April-2008 at 3:42pm
Sorry guys.  Maybe I should have been more specific.  I have about 30 level 2 categories in my cart.  They are all part of the level one category which product cart shows as "Category Name: Top Level Category (Root) which viewing ManageCategories.asp.  I want to know if the name root can be changed to something relevant to my search terms so when you browse by category in the cart my title has relevant words in in for SEO.


Posted By: MarkCoyle
Date Posted: 18-April-2008 at 3:48pm

I think you do this in the language.asp file in /includes.

This is how you do it if you mean as I have here where my root category is 'Our Music':

http://www.wovenwheatwhispers.co.uk/Folk_community/pc/viewCategories.asp?idCategory=77 - http://www.wovenwheatwhispers.co.uk/Folk_community/pc/viewCa tegories.asp?idCategory=77

cheers

Mark



Posted By: ammonihah
Date Posted: 18-April-2008 at 4:49pm
Looked in Languages.asp... Nothing there.  I think it would have to be in a config file or the database itself.  Still searching.


Posted By: MarkCoyle
Date Posted: 18-April-2008 at 4:57pm

I think I am right on this.  It is this line within languages.asp:

dictLanguage.Add "english_viewCat_P_2", "<a href='viewCategories.asp'>Our Music</a>: "

cheers

Mark



Posted By: ammonihah
Date Posted: 18-April-2008 at 5:02pm

I think that this is where you set the bread crumb trail text for the root.

If you look here you will see what I mean:

http://www.disasterstuff.com/store/pc/Stretchers-Backboards-c8.htm - http://www.disasterstuff.com/store/pc/Stretchers-Backboards- c8.htm

I have dictLanguage.Add "english_viewCat_P_2 set to "Our Products" which shows in the bread crumbs.

But, if you go click on our products which takes you back to ViewCategories.asp, then you still see "Root" in the title bar.



Posted By: MarkCoyle
Date Posted: 18-April-2008 at 5:45pm

I believe this is a combination of the include-metatags.asp and your settings.asp includes file.  Have you set the company store name in Store Settings for example?

So you need to set this line in include-metatags.asp:

Const DefaultTitle = "<your name>" and the store title which I think is substituted then into the title.

cheers

Mark

 



Posted By: ammonihah
Date Posted: 05-May-2008 at 9:59pm
Thanks to everyone that has offered suggestions on this one, but nothing suggested has worked yet.  My default.asp is a copy of viewcategories.asp.  This page draws from the database to populate.  Since the categories are all part of the root, that seems to be where product cart is getting the name root and putting it in the title.  If you go to a category, then root does not show up.  Instead, the category shows up such as Country Living Grain Mill and so on.  The question becomes, can you change the name of the root category?  If not, is there a way to trap what is happening and replace it with what I want to put in there as my text.




Posted By: Matt
Date Posted: 05-May-2008 at 10:45pm

The word "root" is saved in the first row the table "categories" in your database.  If you can find an experienced db editor, or if you are familiar with db editing, then you can change the word. Just remember to backup before you do any editing of the db.



Posted By: Hamish
Date Posted: 06-May-2008 at 5:44am
Hi Ammonihah,
      Which version of Product Cart are you running? - I just checked a site I have running V3.11 (With BTO - but I doubt that makes a difference) and I'm not seeing the results you are getting. The Backboards page you provided a link to is not showing Root in the title, but your "Home" and "viewcategories" pages do.

If you running V3.11 try putting back in place the default version and see if it still mentions "Root". If not, then you can update the 3 lines with the default meta data  and away you go.
If so then let us know.

Looking at the code in the member the title is built up in several possible ways, so we may need to work through them to determine the root cause of "Root" - which as Matt says comes from the DB, but I don't believe should be being displayed.
 





Posted By: ammonihah
Date Posted: 06-May-2008 at 10:12am
Matt,

Is this correct?  If the word root is coming from the database, is there something that I have done to make it appear in the title or is this normal?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net