Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Manufacturers Select SideBox - Changing # of DISPLAYED chars of manufacturer's name

Manufacturers Select SideBox - Changing # of DISPLAYED chars of manufacturer's name

Locked
This thread is locked. New replies are disabled.
11 Feb 2009, 11:57 PM
#1
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Post #1 by donn

Hi...........

I've been reading about / playing with the stylesheet in my new 1.3.8A ZC installation.

I have an issue with the manufacturers select side box:

Ony the first 14 characters of a Manufacturer's name appears, follwed by three periods...

After that, the rest is truncated and even when I mouse over the partial name in the list, the full name never appears. I am only guessing that that was how it was supposed to work.

I found this class reference

#manufacturersContent.sideBoxContent form, select, input {

}

This allowed me to change the font size and font family.

But even making the font smaller, only 14 chars display...

I looked in the tpl_manufacturers_select.php file, and found this, lines 12 & 13:

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
  $content.= zen_draw_form('manufacturers_form', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');

Nothing here seems relevant...........

:huh::huh:

12 Feb 2009, 12:00 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Just change the setting in Admin->Configuration->Maximum Values->Length of Manufacturers Name

.
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.

12 Feb 2009, 12:02 AM
#3
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Post #3 by donn

FOUND IT!

I looked in CONFIGURATION

MAXIMUM VALUES

and sure enough....

Length of Manufacturers Name

is there.

I will change it, and I'm guessing it will work, as it hasn't set the maximum limit of the number of chars in the manufacturers' names to 15, and the # of displayed chars is 15 (oops thought it was 14)

So...this should work...

PLUS, Dr. Byte seems to have answered my question before I could even post this, and his response seems to suggest this is correct - thank you!!!!!!!! :laugh::laugh::laugh: