Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 11-21-2014 13:35:48

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Title and Description fields are not correct in the cart xhtml

Below is what I get when I display the HTML put out by the cart.  In this situation, the title was entered as "Yucca Schidigera Extract Products" but it is ending up in the "description" meta tags.   What I put in as  "description text" ended up in the HTML title fields.   The title and description fields were filled in on the category definition. 


<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<base href="http://www.tandjenterprises.com/CCPRO/" />

<meta name="generator" content="Kryptronic Software" />
<meta name="keywords" content="BioVam, Mycorrhiza helper bacteria, trichoderma fungi, Yucca, Schidigera, Extract, Products" />
<meta name="description" content="Yucca Schidigera Extract Products" />
<title>Yucca Schidigera Extract Products - Affordable organic gardening products for gardeners and growers.</title>
<meta name="robots" content="index,follow" />
<meta property="og:title" content="Yucca Schidigera Extract Products - Affordable organic gardening products for gardeners and growers." />
<meta property="og:site_name" content="T&J Enterprises" />
<meta property="og:description" content="Yucca Schidigera Extract Products" />
<script type="text/javascript">

Offline

 

#2 11-21-2014 23:10:00

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Title and Description fields are not correct in the cart xhtml

I also looked at the HTML generated by the cart when a product is displayed.   The meta tag for "title" is not picking up the product title field off the product record.   The meta tag for description is correct.   I don't know where it is getting the text that is put in the title field.  That text is not in the product record. 

In the product record this is what is in the title field:  BioMinerals 2.5-4-.2 for growing high brix plants.
In the product record this is what is in the description field:  BioMinerals 2.5-4-.2 General Purpose Fertilizer: part of Organic Garden Kit for growing High Brix Plants.

The xhtml for the product looks like below...


<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<base href="http://www.tandjenterprises.com/CCPRO/" />

<meta name="generator" content="Kryptronic Software" />
<meta name="keywords" content="BioMinerals 2.5-4-2, Organic Garden Kit" />
<meta name="description" content="BioMinerals 2.5-4-.2 General Purpose Fertilizer: part of Organic Garden Kit for growing High Brix Plants." />
<title>BioMinerals 2.5-4-.2 for growing high brix plants. - Affordable organic gardening products for gardeners and growers.</title>
<meta name="robots" content="index,follow" />
<meta property="og:title" content="BioMinerals 2.5-4-.2 for growing high brix plants. - Affordable organic gardening products for gardeners and growers." />
<meta property="og:image" content="http://www.tandjenterprises.com/CCPRO/media/ecom/prodlg/BioMinerals.JPG" />
<meta property="og:site_name" content="T&J Enterprises" />
<meta property="og:description" content="BioMinerals 2.5-4-.2 General Purpose Fertilizer: part of Organic Garden Kit for growing High Brix Plants." />
<script type="text/javascript">

Offline

 

#3 11-23-2014 09:34:05

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Title and Description fields are not correct in the cart xhtml

I set up a test "category" and test "product" and put in names tied to the category and product so I could tell where fields are coming from.  It appears that only the titles are messed up with something additional being appended to them. 

This is the product display.  The title should be “Meta test product title.”   The rest of the data is being appended from somewhere.
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<base href="http://www.tandjenterprises.com/CCPRO/" />

<meta name="generator" content="Kryptronic Software" />
<meta name="keywords" content="Test Product Keywords" />
<meta name="description" content="Meta test product description" />
<title>Meta test product title. - Affordable organic gardening products for gardeners and growers.</title>
<meta name="robots" content="index,follow" />
<meta property="og:title" content="Meta test product title. - Affordable organic gardening products for gardeners and growers." />
<meta property="og:site_name" content="T&J Enterprises" />
<meta property="og:description" content="Meta test product description" />


This is the category display.  The title should be “meta test cat title”.  The additional data is being appended.
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<base href="http://www.tandjenterprises.com/CCPRO/" />

<meta name="generator" content="Kryptronic Software" />
<meta name="keywords" content="test cat keywords" />
<meta name="description" content="meta test cat description" />
<title>meta test cat title - Affordable organic gardening products for gardeners and growers.</title>
<meta name="robots" content="index,follow" />
<meta property="og:title" content="meta test cat title - Affordable organic gardening products for gardeners and growers." />
<meta property="og:site_name" content="T&J Enterprises" />
<meta property="og:description" content="meta test cat description" />
<script type="text/javascript">

Offline

 

#4 11-24-2014 10:07:03

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Title and Description fields are not correct in the cart xhtml

Take a look two places to clear this up:

(1) Where the tags are generated in {private}/core/CORE/includes/jslib.php

~and~

(2) Where the extra text is coming from - System > Component > Settings > Frontend Meta Information


Nick Hendler

Offline

 

#5 11-24-2014 11:53:18

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Title and Description fields are not correct in the cart xhtml

Ok.  The system>Component>settings>Frontend Meta Information  Title description is being appended to all the titles including itself.    When I looked at the cart's header page, the title meant for that page is also showing up as being appended to itself.   The front end title description is "Affordable gardening products for gardeners and growers."   That is what's being appended to every XHTML title as " - Affordable organic gardening products for gardeners and growers."   So, the solution is going to have to be to correct the code possibly in that jslib.php program. 

<meta property="og:title" content="Affordable gardening products for gardeners and growers. - Affordable organic gardening products for gardeners and growers." />

The meta title field is one of those important SEO fields.   This could make the title field be much too long.    It should not be appended to every meta title.

Offline

 

#6 11-24-2014 12:37:16

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Title and Description fields are not correct in the cart xhtml

I am not a PHP programmer, but I'll bet this is the code that is causing the appending to take place in the jslib.php program.

     if (!(preg_match('/' . preg_quote($this->globals('core_settings.core.metatitle'),'/') . '/',$meta_title))) {
          $meta_title .= ' - ' . $this->globals('core_settings.core.metatitle');
     } // End of if statement.

Offline

 

#7 11-25-2014 08:50:14

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Title and Description fields are not correct in the cart xhtml

Correct.  We always use a short default meta title on sites we build - usually the site name and/or short tagline.  Appending this to whatever title the software generates along the way (if it's not found in the title), gives good SEO results.


Nick Hendler

Offline

 

#8 11-25-2014 11:34:40

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Title and Description fields are not correct in the cart xhtml

Now I see what is going on.  I have entered the title for the home page of the cart.   I have also entered a title for each category in the cart.  And I have entered a title for each product in the cart.   The meta tag title that is generated in the html when I display the home page shows the front end title I generated with the front end title appended to itself.   When a category is displayed with the products in that category, the meta title is also too long because it contains the category title plus the front end title appended.   When only a product is displayed, the meta title is the product title with the front end title appended and that makes the meta title too long.   

From what you wrote above, it sounds like you meant to append the front end title only if the category or product titles were blank.    But the code is appending the front end title to every title field, blank or not blank.   When we fill out the title fields we try to load them up with pertinent key words and so they all are at the max length threshold.   Then when the code appends the front end title to the category title description or to the product title description, we are over the length permitted for the meta title description on every cart web page displayed for category pages and the product pages.  When the meta tag title description is too long like that, it is considered to be NOT SEO friendly.   All the SEO audit software will tell you the title is too long.

Offline

 

#9 11-25-2014 12:20:47

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Title and Description fields are not correct in the cart xhtml

From what you wrote above, it sounds like you meant to append the front end title only if the category or product titles were blank.

Incorrect.  As I said, we mean to append the global title to the computed title if the computed title does not contain the global title when compared before rendering.  That's why using the company name or tagline as the global title is suggested.  Keep it short and let the software do the work for you.

Or, comment out that line of code and you'll have full control over the meta titles, but titles for pages like contact, login, etc. will be very generic.


Nick Hendler

Offline

 

#10 11-25-2014 13:07:23

ThomasGiannou
Member
Registered: 02-10-2007
Posts: 184

Re: Title and Description fields are not correct in the cart xhtml

The way the software is currently working, if I put the company name in the global title, the company name will be appended to all the titles, but that makes the title description longer than the 60 character limit in the title meta tag.

When I display my cart home page,  I get the following and end up with a title that is longer than 60 characters.   In order to make the software do this correctly and not exceed the title length of 60 characters, I would have to restrict the title length I type in on all the various forms to 42 characters since my company name being appended takes up 18 of those 60 characters.

<title>Affordable gardening products for gardeners and growers. - T&J Enterprises</title>
<meta name="robots" content="index,follow" />
<meta property="og:title" content="Affordable gardening products for gardeners and growers. - T&J Enterprises" />

Offline

 

#11 11-26-2014 08:07:46

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Title and Description fields are not correct in the cart xhtml

In your case you may want to remove the append code from jslib and add your company name into some of your shorter tags.  We've found that the SEs only display 60, but read in up to 85, and should only give warnings for long titles if you exceed 85.  In my humble opinion, if you're only transmitting 60, you're losing juice.


Nick Hendler

Offline

 

Board footer