Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    help question Add unique text to each product page

    Just started supporting this site that uses ZC.

    I am looking for assistance to set up a unique <h2> text line on each product page above the product name line.

    My site:
    http://www.moriahherbs.com/index.php...&products_id=3

    Can anyone tell me whether I can accomplish this within the admin controls or whether I need to somehow update the templates directly - which ones? - with new PHP code - probably using an array so that the text is selected based on the product ID.

    Thank you.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Add unique text to each product page

    Can anyone tell me whether I can accomplish this within the admin controls
    No you can't.

    whether I need to somehow update the templates directly - which ones? - with new PHP code - probably using an array so that the text is selected based on the product ID.
    Well, actually the way you would do it is add a new field to the products table in the database then do some edits to tpl_product_info_display to output that field from the database to the page in the right place.

    If you happened not to be using one of the existing fields ( perhaps model ) then you could use this as the field which would stop you having to create a new entry in the database. In other words you would enter your text in the model field when you created the product.

    So, the simplest 'work around' is to use the product model for your line of text and then edit tpl_product_info_display.php

  3. #3
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Add unique text to each product page

    Thank you Nick.

    That sounds promising.

    Is there a way to increase the length of the products model field?

 

 

Similar Threads

  1. v139h Can I set a Unique ID for each product?
    By palpalani in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 9 Feb 2012, 08:31 AM
  2. Is it possible to create a unique page header for each EZ Page?
    By ThomasT in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Jul 2010, 06:06 PM
  3. Adding another unique ID-number to each product
    By koenvandamme in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Mar 2009, 02:15 PM
  4. Product layout unique for each category?
    By DocRocks in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 23 Jun 2008, 09:53 AM
  5. Unique SKUs for each product variation
    By moltar in forum General Questions
    Replies: 7
    Last Post: 29 May 2007, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg