Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    99
    Plugin Contributions
    0

    Default Adding explanatory text beneath option names on product page

    Hi - my product page is here.

    I'd like to be able to put in some explanatory text underneath some of the option attributes. For example,

    Attribute Description

    More explanatory text here to provide some details.

    This would be different than the comments field in the Product Options in the Admin area, because I'd like the explanatory text to go below the field. Any thoughts how I can accomplish this?

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding explanatory text beneath option names on product page

    To remain "dynamic" and load explanations for correct attributes -
    One would have to add a DB field for this text and then code for entering it in the admin side and then code for displaying it on the customer side

    Not impossible - but one should weigh the cost in time or $ against the benefit
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding explanatory text beneath option names on product page

    /includes/templates/your_template/templates/tpl_modules_attributes.php has these lines
    PHP Code:
      if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') { 
    PHP Code:
      if ($options_comment[$i] != '' and $options_comment_position[$i] == '1') { 
    where $options_comment_position[$i] == '0' puts the comment above the attribute and '1' puts it below. Unfortunately, there is no admin facility for setting that variable (I think there is a db field for it), so it defaults to 0 or false and puts the comment above the attribute.
    You could edit that code to bypass the position part of the test and just output below if you only want it in that location.

  4. #4
    Join Date
    Feb 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Adding explanatory text beneath option names on product page

    Thanks - I'll try that out!

 

 

Similar Threads

  1. v139h Adding Attribute names on product download page
    By skylab001 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Apr 2012, 05:59 PM
  2. Adding images beneath subcategory choice
    By kittykat in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Nov 2009, 07:28 PM
  3. Adding copied option names and option valuesto product pricing
    By Derek Bryant in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Apr 2009, 06:31 PM
  4. Adding Option Names & Values to Cart
    By MedallionMan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Jun 2008, 02:45 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR