Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default options_comments_position

    On my product info display, I needed (note the past-tense form, needed) to reverse the positions of my option attributes and my option comment. While searching for an admin control on the options_comments_position, I found this 2005 thread in the archives. (Would reply there, but posting replies on archives is not permitted.)

    I am curious whether anyone has developed an admin control for the options comments position. Thought I might find it under configuration / product info, but no luck. So, assuming the control is not yet available and taking a hint from the archive thread, I simply reversed the 0 and 1 values in two lines in my custom tpl_modules_attributes.php:
    Code:
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') // changed 1 to 0
    
    ... and several lines further down ...
    
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '1') // changed 0 to 1
    This achieved my aim of putting the option comment after the option name and attributes.

    If there is already an admin control for the options_comments_position in 1.3.6, maybe someone can tell me where it is. And if there is not, maybe this thread will prove useful to others.

  2. #2
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: options_comments_position

    Thank you!!! That saved me - the default order of the comment was driving me crazy!

  3. #3
    Join Date
    Aug 2005
    Location
    Cincinnati
    Posts
    334
    Plugin Contributions
    0

    Default Re: options_comments_position

    Glad you found that useful. In hindsight, I suppose the same result could be achieved more elegantly through CSS -- but what did I know way back in 2006!
    Quote Originally Posted by BassFace View Post
    Thank you!!! That saved me - the default order of the comment was driving me crazy!

 

 

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