Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Want to add a line between Attributes

    Hi Folks!

    What file should I modify to be able to have a horisontal line separating the attributes on a product page?

    thanks!
    Gabstero

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Want to add a line between Attributes

    Quote Originally Posted by gabstero View Post
    Hi Folks!

    What file should I modify to be able to have a horisontal line separating the attributes on a product page?

    thanks!
    Gabstero
    Try this... (a bit of hardcode hacking which I normally avoid!)

    includes/templates/template_default/templates/tpl_modules_attributes.php

    Find this section - around line 30

    PHP Code:
    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    <div class="back"><?php echo "\n" $options_menu[$i]; ?></div>
    <br class="clearBoth" />
    </div>
    Put <hr> after the closing div

    PHP Code:
    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    <div class="back"><?php echo "\n" $options_menu[$i]; ?></div>
    <br class="clearBoth" />
    </div><hr>
    You may do well to also set a style for this <hr>
    20 years a Zencart User

  3. #3
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Want to add a line between Attributes

    Thanks a TON!!!!!

    Worked like a charm!

    Gabstero

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

    Default Re: Want to add a line between Attributes

    You don't need to edit any PHP files. This can be done in your stylesheet (/includes/templates/your_template/css/stylesheet.css).

    Add to your stylesheet in a location that you can remember:


    .wrapperAttribsOptions {border-bottom: 1px solid #aabbcc;}

    Adjust to taste.
    This will put a line under each attribute including the last one. If you want lines only between attributes, and you don't have to cater to IE6 users, you can use this instead:

    .clearBoth+.wrapperAttribsOptions {
    border-top: 1px solid #aabbcc;
    padding-top:1.5em;
    }

    IE6 does not support the Adjacent Selectors standard in CSS, so it will not be able to function properly here.

    PS - if you do want to use the tpl_modules_attributes.php edit method, you should never change files in /template_default/. Copy the file to /your_template/ and edit there:

    includes/templates/your_template/templates/tpl_modules_attributes.php
    Last edited by gjh42; 12 Feb 2008 at 06:34 PM.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Want to add a line between Attributes

    Quote Originally Posted by gjh42 View Post
    You don't need to edit any PHP files. This can be done in your stylesheet (/includes/templates/your_template/css/stylesheet.css).
    Thanks Glenn !

    I knew there had to be a CSS way of doing this - only I'm hopeless at most CSS stuff.

    Yes... rather than hard-code a php file, always better to use the stylesheet.
    20 years a Zencart User

  6. #6
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Want to add a line between Attributes

    Glenn and Schoolboy!

    Thanks a lot! It makes sense NOT to modify the php files indeed.

    Since we are at it (for the sake of not posting another thread), where would one usually paste the code that will show the SSL Certification on the home page? Should that be in one of the side boxes? Footer?

    Thanks again!

    Gabstero

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

    Default Re: Want to add a line between Attributes

    The page location depends on what you want it to look like.

    If you want it in a sidebox, there are mods in Downloads intended for displaying ssl seals and the like. Look at them and decide which is best for you.

  8. #8
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Want to add a line between Attributes

    Glenn!

    thanks a lot again! I found a sidebox for my GeTrust! Sooper!

    thanks again!
    G

 

 

Similar Threads

  1. v151 Can I make attributes have a line break in between them?
    By accracin in forum Setting Up Categories, Products, Attributes
    Replies: 21
    Last Post: 22 Jan 2013, 08:31 PM
  2. Add HR line between Items
    By azimpact in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Aug 2012, 10:38 PM
  3. Need a line break between attributes.
    By powpcs in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 6 Aug 2010, 08:15 AM
  4. Order Confirmation - how do I add line breaks between attributes?
    By SammyD in forum Managing Customers and Orders
    Replies: 13
    Last Post: 19 May 2008, 10:30 AM
  5. EZ Pages - Want to Add spacing or a line between each entry
    By e8u99 in forum Basic Configuration
    Replies: 1
    Last Post: 12 Apr 2008, 01:19 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