Forums / Addon Templates / Bestsellers Display Bug?- BareBones template

Bestsellers Display Bug?- BareBones template

Locked

Views: 1,408

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
30 Aug 2009, 10:23 PM
#1
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Bestsellers Display Bug?- BareBones template

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

etc.

30 Aug 2009, 10:31 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,682
Plugin Contributions:
0

Re: Bestsellers Display Bug?- BareBones template

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.

30 Aug 2009, 10:36 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Bestsellers Display Bug?- BareBones template

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.

30 Aug 2009, 11:46 PM
#4
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Bestsellers Display Bug?- BareBones template

DrByte:

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.

31 Aug 2009, 1:08 PM
#5
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Bestsellers Display Bug?- BareBones template

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

31 Aug 2009, 3:37 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,682
Plugin Contributions:
0

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.

2 Sep 2009, 1:20 PM
#7
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

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 //-->
2 Sep 2009, 6:48 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Bestsellers Display Bug?- BareBones template

Change this> shrimp-gumbo-mmmhhh:

#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)

2 Sep 2009, 11:08 PM
#9
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

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.