Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Can't figure out how to remove "HEADING_TITLE" from Product Detail Section

Can't figure out how to remove "HEADING_TITLE" from Product Detail Section

Started by westseedfarm on 5 Feb 2013, 6:05 AM · Views: 1,827

Results 1 to 10 of 10
5 Feb 2013, 6:05 AM
#1
westseedfarm avatar

westseedfarm

New Zenner

Join Date:
Aug 2012
Posts:
17
Plugin Contributions:
0

Post #1 by westseedfarm

If you click the link below, you can see that it says HEADING_TITLE at the top of the product listing.

http://westseedfarm.com/index.php?main_page=product_info&cPath=65&products_id=182

I have located how to easily fix this in firebug. I simply need to edit this line.

<td height="25" valign="middle" bgcolor="#5C7800" class="txt_content02">HEADING_TITLE</td>

The problem is, I have no idea where this file is. Where is the file?

5 Feb 2013, 7:08 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

HEADING_TITLE will be in a language file. Or, at least that's where its definition belongs. But, the only reason why you'd see it show up in your browser is because the definition has been removed ... which suggests someone has been monkeying with language defines, or has deleted language files, or has uploaded partial files without fixing upload errors.

If you were trying to remove whatever HEADING_TITLE was originally defined as, then you should have changed the definition to "" instead of deleting the whole thing.
More about this same issue here: http://www.zen-cart.com/content.php?137-ive-got-text_main-being-displayed-on-my-page-%28or-other-unexpected-uppercase-words%29

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2013, 5:03 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #3 by gjh42

Just a note... I see that the template is completely table-based, and also the homepage has a body id of #indexBody and not #indexHomeBody. This was changed around v1.3.0 (a LONG time ago) and suggests that you are either using a very antiquated and unsafe version of Zen Cart, or your template files are that old and have not been properly merged with updated versions when you upgraded. Either way, your site may be at serious risk of being hacked, and you need to make proper upgrades.

5 Feb 2013, 7:37 PM
#4
westseedfarm avatar

westseedfarm

New Zenner

Join Date:
Aug 2012
Posts:
17
Plugin Contributions:
0

Post #4 by westseedfarm

gjh42:

Just a note... I see that the template is completely table-based, and also the homepage has a body id of #indexBody and not #indexHomeBody. This was changed around v1.3.0 (a LONG time ago) and suggests that you are either using a very antiquated and unsafe version of Zen Cart, or your template files are that old and have not been properly merged with updated versions when you upgraded. Either way, your site may be at serious risk of being hacked, and you need to make proper upgrades.

I'm using Zencart, fresh install. The template files may be old though.

Dr. Byte, I have not changed anything, and I would simply take it out of the quotes, if I could find which language file to edit.

5 Feb 2013, 7:50 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #5 by stevesh

Use the Developers Tool Kit to search for heading_title. You'll get a lot of files returned, but you may be able to see which one the template designer messed up. It will most likely be in one of the template override files.

5 Feb 2013, 8:54 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #6 by gjh42

Of course, if the template designer deleted the define, it will not be there to find:) If you find it in a default language file but not in the template version of the same file, copy the define from the default file to the template file and edit as desired.

If your site is a fresh install of Zen Cart, your template files are not updated to include recent improvements in the stock versions of them (or even six year old improvements). It really is possible that your antique template files could open a door to hackers, which new versions secure.

6 Feb 2013, 4:02 PM
#7
westseedfarm avatar

westseedfarm

New Zenner

Join Date:
Aug 2012
Posts:
17
Plugin Contributions:
0

Post #7 by westseedfarm

I understand the template is Old and dangerous, but I love this template most of all the templates I had browsed through. I don't want to change it. I have searched for heading_title in the developers tool kit to no avail.

If the definition is removed, then what definition can I fill in, and in what language file?

I thought for sure tpl_product_info_display.php was the culprit, but now I am hearing it can be any language file.

6 Feb 2013, 8:01 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #8 by gjh42

I don't know how many functional changes are incorporated into this template, but the appearance could easily be replicated more robustly with modern div/CSS coding. For example, one of the boxes has rounded corners which are broken because the box is higher than the corner image allows for. All modern browsers allow you to simply say with one CSS rule "make certain corners of this box rounded with a certain radius" without needing extra images and table cells.

There are dozens of "HEADING_TITLE" defines in stock Zen Cart, so it will be a delicate matter to get the correct file to define it where needed and not cause a duplicate define attempt (which would cause one of them to fail).

6 Feb 2013, 10:30 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

In original Zen Cart code there is no HEADING_TITLE definition for the product_info page.

So, looks like your template designer added a HEADING_TITLE to that bar on the page, but didn't supply the text for it.
Simply add a definition for it yourself.
/includes/languages/english/name_of_your_template_folder_here/product_info.php

define('HEADING_TITLE', 'Whatever text you want to show on that bar here');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Feb 2013, 11:32 PM
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #10 by schoolboy

DrByte:

In original Zen Cart code there is no HEADING_TITLE definition for the product_info page.

So, looks like your template designer added a HEADING_TITLE to that bar on the page, but didn't supply the text for it.

This often suggests that a raft of hard-code stuff (or bad edits) have been done.

You would be better off getting a 1.5.1 compatible template then re-skinning it to suit your current style. Bear in mind any other custom stuff essential for FUNCTIONALITY that may have been embedded in your current template.

20 years a Zencart User