Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Bestsellers Display Bug?- BareBones template

    1.3.8a If I have more than 9 items in the bestsellers sidebox it numbers them incorrectly.

    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    0.
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    0.
    etc.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Bestsellers Bug

    The URL for this problem?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Bestsellers Bug

    I can't replicate that scenario on a clean install of v1.3.8a. The bug must be in the styling you've done in your template.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Bestsellers Bug

    Quote Originally Posted by DrByte View Post
    I can't replicate that scenario on a clean install of v1.3.8a. The bug must be in the styling you've done in your template.

    Thanks! This appears to be an issue with the barebones template.

  5. #5
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Bestsellers Display Bug?- BareBones template

    Can anyone give a hint as to why the template would be causing the sidebox to count incorrectly?

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Bestsellers Display Bug?- BareBones template

    It isn't counting wrong - it is displaying incorrectly - look at your stylesheet.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Bestsellers Display Bug?- BareBones template

    I don't know anything about css....... to my untrained eye I don't see where the problem is.... pointers? Am I looking at the right css items?

    I don't see the items being numbered in the html but see them on the screen!

    The barebones stylesheet has this:

    #bestsellers ol {
    padding: 0;
    margin: 0 0 0 1.5em;
    }

    while my current template has this:

    #bestsellers .wrapper {
    margin: 0em 0em 0em 1.5em;
    }
    #bestsellers ol {
    padding: 0;
    margin-left: 1.1em;
    }
    #bestsellers li {
    padding: 0;
    margin: 0.3em 0em 0.3em 0em;
    }

    The barebones bestsellers looks like this:

    <!--// bof: bestsellers //-->
    <div class="rightBoxContainer" id="bestsellers" style="width: 150px">
    <h3 class="rightBoxHeading" id="bestsellersHeading">Bestsellers</h3>
    <div id="bestsellersContent" class="sideBoxContent">
    <div class="wrapper">
    <ol>
    <li><a href="">Product 1</a></li>
    <li><a href="">Product 2</a></li>
    <li><a href="">Product 3</a></li>
    <li><a href="">Product 4</a></li>
    <li><a href="">Product 5</a></li>
    <li><a href="">Product 6</a></li>
    <li><a href="">Product 7</a></li>
    <li><a href="">Product 8</a></li>
    <li><a href="">Product 9</a></li>
    <li><a href="">Product 10</a></li>
    </ol>
    </div>
    </div></div>
    <!--// eof: bestsellers //-->

    while my current template bestsellers code looks like this:

    <!--// bof: bestsellers //-->
    <div class="leftBoxContainer" id="bestsellers" >
    <h3 class="leftBoxHeading" id="bestsellersHeading">Bestsellers</h3>
    <div id="bestsellersContent" class="sideBoxContent">
    <div class="wrapper">
    <ol>
    <li><a href="">Product 1</a></li>
    <li><a href="">Product 2</a></li>
    <li><a href="">Product 3</a></li>
    <li><a href="">Product 4</a></li>
    <li><a href="">Product 5</a></li>
    <li><a href="">Product 6</a></li>
    <li><a href="">Product 7</a></li>
    <li><a href="">Product 8</a></li>
    <li><a href="">Product 9</a></li>
    <li><a href="">Product 10</a></li>
    </ol>
    </div>
    </div></div>
    <!--// eof: bestsellers //-->

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Bestsellers Display Bug?- BareBones template

    Change this
    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    #bestsellers ol {
    padding: 0;
    margin: 0 0 0 1.5em;
    }
    To this
    #bestsellers ol {
    padding: 0;
    margin: 0 0 0 2em;
    }
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Bestsellers Display Bug?- BareBones template

    Thank you! That did it....

    Now... here is what I have learned:

    margin: 0 0 0 2em;

    the 1st 0 is the top margin
    the 2nd 0 is the right margin
    the 3rd 0 is the bottom margin
    and the 2 is the left margin

    em :: 1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit in CSS, since it can adapt automatically to the font that the reader uses

    http://www.w3schools.com/css/css_margin.asp

    now why making the margin bigger allows the 1st digit of the 10 to show... I don't understand.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 30 Jun 2011, 07:37 PM
  2. Display more bestsellers
    By iwantone in forum General Questions
    Replies: 1
    Last Post: 16 Aug 2009, 06:53 PM
  3. BareBones Template Modification
    By bobthemolder in forum Addon Templates
    Replies: 1
    Last Post: 11 Nov 2008, 04:48 PM
  4. ??? Using BareBones to Learn Template Designe???
    By wtashby in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 23 Aug 2008, 12:59 AM
  5. Image in Header for Barebones template
    By gschep in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Jul 2007, 09:27 PM

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