Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Trying to add something else to h1 title

Trying to add something else to h1 title

Started by dannyvarley on 23 May 2013, 11:43 AM · Views: 854

Results 1 to 8 of 8
23 May 2013, 11:43 AM
#1
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Trying to add something else to h1 title

On

http://kitchenwarehouseltd.com/kitchen-doors/high-gloss

Im trying to make the header actually also contain the category name that it is in?

I can see where I need to edit is:

<h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1>

But im not sure what to put?

23 May 2013, 12:47 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,139
Plugin Contributions:
56

Re: Trying to add something else to h1 title

A search using my admin's Tools->Developers Tool Kit looking for **productlistheading **in all files catalog brought up /includes/templates/template_default/templates/tpl_index_product_list.php. If you don't already have that file in the /includes/templates/YOUR_TEMPLATE/templates directory, copy the one from template_default and make your edits there.

23 May 2013, 12:57 PM
#3
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Trying to add something else to h1 title

Like I said, I used the devtoolkit and found the file in /includes/templates/YOUR_TEMPLATE/templates directory.

I know I needed to edit:

<h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1>

But i'm not sure what I would need to add to the above code to do what I need. I'll try explain better. So currently at http://kitchenwarehouseltd.com/kitchen-doors/high-gloss you see the header is "High Gloss" I want to change the code so that this header also includes the catagory that this in is so for this particular page it would say "High Gloss Kitchen Doors"

I just dont know what the code would be! :(

23 May 2013, 1:11 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Trying to add something else to h1 title

DannyVarley:

http://kitchenwarehouseltd.com/kitchen-doors/high-gloss

Im trying to make the header actually also contain the category name that it is in?

Is there a business case that requires this, or is it just that you like to make things difficult for yourself?

Just asking.....

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

23 May 2013, 1:55 PM
#5
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Trying to add something else to h1 title

I could just change the actual name of the category as this would achieve the same thing. Except the breadcrumb would be a little longer. I think I was going at it a bit of a long way around

23 May 2013, 2:19 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,899
Plugin Contributions:
22

Re: Trying to add something else to h1 title

DannyVarley:

I think I was going at it a bit of a long way aroundUnderstatement.

Most folks on the internet are more than comfortable with the ZC breadcrumb structure. We will only change if the confirmation e-mail or packing slip does not have enough information to determine the actual item bought.

For now, I would look away from where you are and focus on the validity of your code and the content of your pages.

The page you posted has many errors that have been introduced either through poor editing or the use of an editor that embeds proprietary code. Type Hello World into Word and save it as an html page. Then, view the source and you'll see what I mean about proprietary code.

Also, when I click on one of the cabinet faces, the product page has content errors (grammatical) and 158 code errors.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 May 2013, 3:02 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,899
Plugin Contributions:
22

Re: Trying to add something else to h1 title

Also, you did not specify the version of ZC when you posted but, you are going to be a victim of much spam if you leave the review and/or tell a friend active without locking them down somehow.

Lastly, I would rethink your product listing in that the customer may be confused in adding products. If I wanted the Aubergine sample, two of the 110mm x 596mm, and three of the 140mm x 395mm it could confuse the customer that they are clicking on an add-to-cart value of one. Conversely, if I change the sample quantity to one and change the Add to Cart to 3 (what a customer might think is the correct way to get three samples), the cart will only show one sample. Therefore, it appears that the Add to Cart value has no effect on the number of product ordered. In addition to the quantity confusion, you have added cornice, plinth, and bar backs into the mix. The product listing for Plinth (3m Length) is much better but, it too could be improved with images of the "Range".

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

28 May 2013, 11:45 AM
#8
dannyvarley avatar

dannyvarley

Zen Follower

Join Date:
Dec 2011
Posts:
287
Plugin Contributions:
0

Re: Trying to add something else to h1 title

Thanks for the input!

The god awful amount of errors is to do with writing the code in a WYSIWYG in zencart. I am now going through and getting them all ironed out.

I'm also in the process of redoing all the images to make them a little more simple to understand so that on the units listing page they will be easily identified. as currently a 300mm wide base unit and a 600mm wide base unit are the same pictures but with just different writing on them. I am actually changing the pictures so they are all relevantly correct.

I also completely agree with the add to card box, There is no need for the quantity when you select the quantity needed in the grid, I'm not sure how to deal with this though as I do need the quantity box for certain items such as handles or the individual plinths.

Im slowly ploughing through the problems though!