[ic] Working with products and displaying specials, store logo

Norm Dressler norm at dressler.ca
Tue Nov 6 12:56:17 EST 2007


On Tue, 6 Nov 2007 16:21:10 +0200
  "Gert van der Spoel" <gert at 3edge.com> wrote:
> 
>> The other problem seems that items in the Specials box 
>>are
>> not uniform.  The first column is always wider then the
>> remaining columns, no matter how many I put in there.  I
>> can't seem to find a way to adjust that?
> 
> That is from what I can see another bug in the 
>component.
> Somewhere is a width scratch being set (open the 
>component and check the
> content).
> It should be calculating the % of width depending on the 
>items you show .. 
> 
> So 5 items should show 20% ... However it always shows 
>100% ...
> 
> Easiest solution:  If you know you are going to show 5 
>items, just sent the
> Width manually to 20% ...
> 
> More difficult solution:  Fix the component to calculate 
>the width
> correctly.

Ok, found this problem under templates/components/cross,

replace line 113 (and the or in line 114) with:
$Scratch->{width_percent} = int(100 / $n) . '%';

and you will get equal number of products correctly 
spaced.

Norm


More information about the interchange-users mailing list