Zen Cart Logo
Forums / Addon Sideboxes / Simple manufacturer list to replace scrolling list - add-on

Simple manufacturer list to replace scrolling list - add-on

Views: 44,799

Results 61 to 80 of 124
30 Jan 2008, 2:08 PM
#61
jrstaatsiii avatar

jrstaatsiii

New Zenner

Join Date:
Sep 2007
Posts:
48
Plugin Contributions:
0

Simple manufacturer list to replace scrolling list - add-on

Again thanks for the quick response. That did the job. For anyone else in the same situation, you might notice that the top margin is a bit off from the categories list in all browsers. The quick fix is very similar:

{margin-top:0}

All lines up nicely.

Rich

Rich Staats
Your snowboarding, web designing, problem solving, social networking, trying to f' with eCommerce type of Guy.

5 Feb 2008, 10:29 AM
#62
daddio53 avatar

daddio53

New Zenner

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

Re: Simple manufacturer list to replace scrolling list - add-on

Am I wrong in wanting to have the manufacturers_info box display along with this list? e.g., when a manufacturer's link is clicked and the product list displays, I'd like the info box to display. Yes, I have the info box on and set to appear in the right column.

Perhaps I am just daft or it's been to many hours with no sleep...but as soon as I enabled the list sidebox, the info box quit working.

Tim Holder

Aging webaholic

5 Feb 2008, 10:36 AM
#63
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple manufacturer list to replace scrolling list - add-on

Daddio53:

Am I wrong in wanting to have the manufacturers_info box display along with this list?Absolutely no reason why you can't. They're completely independent of each other.

Don't really want to sidetrack this support thread into questions about a standard sidebox, but do you have a link to a page where its not working so that I can take a look and see if there's a quick answer?

Kuroi Web Design and Development | Twitter

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

5 Feb 2008, 10:42 AM
#64
daddio53 avatar

daddio53

New Zenner

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

Re: Simple manufacturer list to replace scrolling list - add-on

Ok, sorry, answered my own question. I discovered that the info box only displays with the product page. I wish it would display for a manufacturer, but that discussion is for elsewhere. Sorry for the trouble.

5 Feb 2008, 12:54 PM
#65
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple manufacturer list to replace scrolling list - add-on

Daddio53:

I wish it would display for a manufacturer, but that discussion is for elsewhere.No discussion needed. Here it is.

Kuroi Web Design and Development | Twitter

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

6 Feb 2008, 10:11 PM
#66
chris1974 avatar

chris1974

New Zenner

Join Date:
Feb 2008
Posts:
12
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

Newb question, I know. And yes, I am new to Zen Cart. But not PHP or CSS/HTML or anything necessarily.

I'd like to use this in a custom template. What code would i insert into my tpl_product_info_display.php override file to call this sidebox? I'm not using the column layout at all, and have gutted the aforementioned override template to suit my needs. I have installed this sidebox correctly, activated it in admin and have some manufacturers in there, but don't know how to write the code to call this sidebox within my new custom template.

Thanks

7 Feb 2008, 10:59 AM
#67
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple manufacturer list to replace scrolling list - add-on

chris1974:

Newb question, I know. And yes, I am new to Zen Cart. But not PHP or CSS/HTML or anything necessarily.

I'd like to use this in a custom template. What code would i insert into my tpl_product_info_display.php override file to call this sidebox? I'm not using the column layout at all, and have gutted the aforementioned override template to suit my needs. I have installed this sidebox correctly, activated it in admin and have some manufacturers in there, but don't know how to write the code to call this sidebox within my new custom template.Trying to make the sidebox work when, by the sounds of it, you've thrown away the code used to display the contents, would be a long way around.

Since you know PHP, etc. I would recommend instead using the sidebox module and template files from the manufacturers list box as an example and refacturing the core code into a template module with associated module file then just including it in the product_info file.

Kuroi Web Design and Development | Twitter

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

11 Mar 2008, 5:10 AM
#68
r_lo avatar

r_lo

New Zenner

Join Date:
Oct 2006
Posts:
29
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

its a great contrib!

just one question, would it be possible to clone this for browsing by style or by age etc?

and what would I need to do to accomplish this?
thx

11 Mar 2008, 10:11 AM
#69
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple manufacturer list to replace scrolling list - add-on

R-Lo:

would it be possible to clone this for browsing by style or by age etc?Yes for styles but it would take more work for ages.

R-Lo:

and what would I need to do to accomplish this?For styles you would need to clone the manufacturers table (though it contains some data that you could probably drop) and add a styles_id into your products table. You'd then need to extend the product maintenance modules in the admin to allow you to maintain the new field and similarly clone the admin manufacturers page.

Ages is more complicated as unlike manufacturers and styles you would probably want to search on a range. You could fix your ranges upfront and then the work would be the same as for manufacturers and styles, but that would be a poor solution. For monkeyshine.co.uk, we did something rather better.

On that site we added a minimum and maximum age to the products table and fields in Admin to maintain them. We then created buttons (which in a sidebox might be links) and amended Zen Cart's search page to take the selected age range as a parameter and filter accordingly.

Neither of these projects would be trivial and would require at least intermediate knowledge of php and Zen Cart and some basic understanding of MySQL.

Kuroi Web Design and Development | Twitter

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

5 Apr 2008, 5:42 PM
#70
loxly avatar

loxly

New Zenner

Join Date:
Apr 2004
Location:
Las Vegas and NYC
Posts:
40
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

I just installed this addon with 1.3.8 and it worked perfectly, in case anyone is looking for this functionality with this version. Thanks kuroi!

23 Apr 2008, 8:06 PM
#71
tammyt avatar

tammyt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

My style sheet knowledge is very limited and am mods challenged so please excuse me if this is a dumb question or already been addressed. I checked all 7 pages and tried a few different things but so far no luck.

I have added the mod and it works, but I have bullets. In addition to the bullets, the text is lined up in the center of the box. For the life of me I can not figure out how to get rid of them and line everything up to the left. I added the code from the help file to the bottom of my style sheet. I made no other changes to the style sheet.

23 Apr 2008, 10:06 PM
#72
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple manufacturer list to replace scrolling list - add-on

@loxly

You're very welcome.

@tammyt

Could I have a link to your site.

Kuroi Web Design and Development | Twitter

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

25 Apr 2008, 7:23 AM
#74
kuroi avatar

kuroi

Totally Zenned

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

Re: Simple manufacturer list to replace scrolling list - add-on

tammyt:

I added the code from the help file to the bottom of my style sheet. I made no other changes to the style sheet.Those changes haven't made it into the stylesheet that is actually in use on your site.

Kuroi Web Design and Development | Twitter

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

26 Apr 2008, 4:10 AM
#75
tammyt avatar

tammyt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

Oh, okay thanks. I will look for the correct one.

26 Apr 2008, 1:19 PM
#76
tammyt avatar

tammyt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

I found the correct style sheet and it workd!! :clap:
Thank you for a great add on and the help!!

12 Jun 2008, 2:12 PM
#77
nicola avatar

nicola

New Zenner

Join Date:
Jun 2008
Posts:
8
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

Hi, i'm using zen cart 1.3.8a and classic template. I'm trying to get manufacturers to display as an image, when i add the mod v3.0 this is what i get

Link to full size image click here

Any thoughts? Thanks, in advance.

Regards, Nicola.

19 Jun 2008, 4:09 PM
#78
nicola avatar

nicola

New Zenner

Join Date:
Jun 2008
Posts:
8
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

Never mind, i fixed it. For anyone else with the same issue just add this into your stylesheet

#manufacturerslistContent ul {
list-style:none;
padding:0;
margin-left:0em;
text-align: center;
}

1 Aug 2008, 5:32 PM
#79
ivanc avatar

ivanc

New Zenner

Join Date:
Dec 2007
Posts:
54
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

nicola:

Never mind, i fixed it. For anyone else with the same issue just add this into your stylesheet

#manufacturerslistContent ul {
list-style:none;
padding:0;
margin-left:0em;
text-align: center;
}

thank you very much for this fix nicola!

11 Aug 2008, 3:36 PM
#80
doodlebee avatar

doodlebee

Inactive

Join Date:
Jan 2006
Posts:
228
Plugin Contributions:
0

Re: Simple manufacturer list to replace scrolling list - add-on

OMG - you are a lifesaver.

I wanted to add something, if you all don't mind. As it stands, this mod lists the manufacturers in alphabetical order. My client wanted 1) images to show (which, thank you for commenting this out very nicely - it was easy to do that), and 2) he wanted images to show in a particular order, and have it be easy to change.

I managed to accomplish this very easily, and I thought I'd tell you all how I did it - in case anyone else wanted to do the same.

Line 32 is currently:

  if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
    $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image

I changed it to include the other tables - the one in question is getting the "last modified" date:

  if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
    $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, m.date_added, m.last_modified

NOTE: I also put in the "date added" - in case you wanted the most recent manufacturer to show up.

then I simply changed two more lines....37 & 41, which were originally:

order by manufacturers_name";

and now they are:

order by last_modified DESC";

Now, all we have to do is just go into the "Catalog>Manufacturers" area, and when we want someone to show up at the top of the list, we just resave the info. (Adding a new one will also change the list, since it was the most recent one modified.)

Now...if only I can figure out how to use the mini icons we have for them rather than the HUGE icons we have, I'll be set ;) (But I can always resize them via CSS...so I'm fine either way)

Just thought I'd share! And thanks so much for the mod!