-
Simple manufacturer list to replace scrolling list - add-on
This is a very simple add-on consisting of a new template file, a new module file and a couple of lines of CSS to provide an alternative to the default scrolling list and display a simple vertical list of links.
Download here:
http://www.zen-cart.com/index.php?ma...roducts_id=262
In addition to its obvious function, it doubles as an easily-grasped example of the over-ride system in action for anybody finding this aspect of Zen Cart challenging (i.e. all of us at some stage on our path to Zen Cart enlightenment).
This add-on has a wiki page which should be the first place to check if you have installation problems or questions about it. If they are not answered in the wiki, support questions can be posted here.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
How would we go about making this a custom page or footer rather than a sidebox?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I've now installed this twice making sure ALL (yeah... only 2 files) were in the right place...
I see it in admin, turned on, proper column (LEFT)... i dont see it on the store.
I feel ashamed for submitting this :(
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
toykilla
How would we go about making this a custom page or footer rather than a sidebox?
I'd like a manufacturers page too.
Someone got it to work, now I'm gonna try to do the same:
http://www.zen-cart.com/forum/showthread.php?t=29085
If anyone can write step by step instructions... :thumbsup:
bye,
colosimo
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I have this installed, however, it is visually only showing 15 characters. I would like it to show at least 30+. How do I do this?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Kuroi, Do you have a "See it in Action" link you can post? It sounds intriguing, but would like to see how it looks first.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I have installed this on two different websites, problem free. For some reason now I am getting this error
Quote:
Warning: main(includes/templates/template_default/sideboxes/tpl_manufacturers_list.php) [function.main]: failed to open stream: No such file or directory in /home/USER/public_html/shop/includes/modules/sideboxes/manufacturers_list.php on line 61
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
wtashby
Kuroi, Do you have a "See it in Action" link you can post? It sounds intriguing, but would like to see how it looks first.
Here is a site I installed it on so you can see what it looks like
Digital Candy
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
gabenn2, did you edit either of those files recently ? if you did, make sure there is no blank line at the end of the file.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
virtualahmad
I've now installed this twice making sure ALL (yeah... only 2 files) were in the right place...
I see it in admin, turned on, proper column (LEFT)... i dont see it on the store.
I feel ashamed for submitting this :(
I'm experiencing exactly the same thing. Install, including the script add-on in the styleshhet, admin/tools/layout box controller Sees the module but Nothing visible in the store.
I see this was released last Sept or so. That would be what, Zen version 1.3.4? Could there be a change that is generating this non-error?
I'm running 1.3.6. virtualahmad, what about you?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
MeltDown, I'm running 1.3.6 and 1.3.7 and 1.2.6 and 1.3.7 and 1.3.7 and.....
but none of my installs are using this mod. I was only replying with a suggestion that might help with that error.
Sorry.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
MeltDown
I'm experiencing exactly the same thing. Install, including the script add-on in the styleshhet, admin/tools/layout box controller Sees the module but Nothing visible in the store.
I see this was released last Sept or so. That would be what, Zen version 1.3.4? Could there be a change that is generating this non-error?
I'm running 1.3.6. virtualahmad, what about you?
OK, just figured it out. I Knew it was something simple! With such a simple mod, how complicated could it be?? :laugh:
First you need to add the Manufacturers name & details in admin/catalog/Manufacturers. Then, on the individual product page you must select that Manufacturer from the dropdown list. The mod default is to only display active Manufacturers in the list. None added - Nothing active.
Tim
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
PS - Be sure and turn off the pre-loaded sideboxes/Manufacturers.php in your admin/tools/layout box controller, as well.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I am sorry to jump in like this and go slightly off-topic but I can't seem to find or get any response to my query.
I am trying create a dropdown list of manufacturers and currencies in the header but I keep getting a particular error.
http://www.faceoffltd.co.uk/catalog/...ufacturers_id=
So how would i go about doing this.
Any comment would be much appreciated.
Thanks.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I haven't edited the file. The error is in this section of code. Any ideas?
Quote:
require($template->get_template_dir('tpl_manufacturers_list.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_manufacturers_list.php');
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I got it figured out, I needed to add the tpl_manufacturers_list.php to the template_default/sideboxes/templates dir.
Thanks
-
Announcement - New Version of Manufacturers List Sidebox
Firstly, my apologies to everybody who has posted in this thread. It turns out that although I started this support thread, I am somehow not subscribed to it and so was completely unaware that there were questions being asked about it.
Announcement
A new version of this mod has been posted to the downloads area.
This version has the following changes:
- The list has been changed from a simple list of links, to an unordered HTML list to extend the possibilities for CSS styling.
- The problematic LABEL tags around the box title have been removed.
- The installation guide has been re-written (and is now named readme.html).
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
dhia
I am sorry to jump in like this and go slightly off-topic but I can't seem to find or get any response to my query.
I am trying create a dropdown list of manufacturers and currencies in the header but I keep getting a particular error.
http://www.faceoffltd.co.uk/catalog/...ufacturers_id=
So how would i go about doing this.
Any comment would be much appreciated.
Thanks.
dhia
Your problem is that you have a missing file. We can't give you much more advice than that without knowing more about what file structure are trying to create, and what you have actually done.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
wtashby
Kuroi, Do you have a "See it in Action" link you can post? It sounds intriguing, but would like to see how it looks first.
There's not much to see really. It's just a list of links in a sidebox. How it looks depends upon what styling you choose to add.
However, you can see it in action at the site for which it was originally developed (though it's moved on a little from there). Look for "Shop by Brand" in the left column.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
MeltDown
OK, just figured it out. I Knew it was something simple! With such a simple mod, how complicated could it be?? :laugh:
First you need to add the Manufacturers name & details in admin/catalog/Manufacturers. Then, on the individual product page you must select that Manufacturer from the dropdown list. The mod default is to only display active Manufacturers in the list. None added - Nothing active.
Tim
Tim.
That's a good explanation. Certainly if you don't have any manufacturers, it will have nothing to show and there is code in there to suppress the box in that case.
You can however, still list manufacturers who have no associated products (not quite sure why you'd want to, but Zen Cart and this mod will allow it). You'd do this by going to Admin > Configuration > Maximum Values > Manufacturers List - Verify Product Exist and setting it to 0.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
Ophelia
I have this installed, however, it is visually only showing 15 characters. I would like it to show at least 30+. How do I do this?
I've installed this tonight with no problem. Looks like an easy plugin. Otherwise, is there any way to extend the max chars? Any help would be greatly appreciated. Thank you.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
donnafoo
I've installed this tonight with no problem. Looks like an easy plugin. Otherwise, is there any way to extend the max chars? Any help would be greatly appreciated. Thank you.
/bonk
Yep. Gone to Admin > Config > Max Values > Length of Manufacturer's Name
Thanks for the great mod.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Thanks for the update on how to adjust the Manufacturer's Name for the Manufacturers sidebox ... always a help to others ... :smile:
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Once again it's IE causing pain (spelled AAIIIIIEEE!)
Thanks Kuroi a very useful contribution - I'm having trouble getting CSS to apply to the box however...
the edit you provided in the readme did remove the bullets, but I added text-align left and it worked in FF, but IE is keeping it centered.
The text style is also applying a:visited { from the stylesheet
I can't seem to figure out how to create a class to override anything else that is trying to apply to it --- I don't understand enough CSS such as <ul> <li> and <a class=>
Thanks for the help
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
this appears to be due to padding (it is left justified but offset rather than centered).
I can't seem to track down the source of the pad or margin though.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
My apologies. I forgot about that old IE habit of adding lots of margin to UL tags. Silly of me, given the number of times I've explained this in the forums. Add the highlighted line to the CSS in the readme and take your text-align:left out.
Quote:
#manufacturerslistContent ul {
list-style:none;
padding:0;
margin:0;
}
and let me know how that goes.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I added a little bit of left padding and now things align nicely and look the same in both FF - IE... just to take up forum space I've included a snip from my stylesheet -- I want to make the text in the box smaller but it is getting ignored and reverting to a:visited from line 29 of the stylesheet
How do we create a class for the <a class level that will supersede other CSS?
I know there is extra code in what I have :blush: but it might give clues to those intrested:
Quote:
}
#manufacturerslistContent ul {
list-style: none;
list-style-type: none;
font-size: 10px;
background-color: #999966;
margin: 0em;
padding-left: .25em;
}
#manufacturerslistContent ul li{
padding-left: .25em
}
#manufacturerslistContent.sideBoxContent {
font-size:10px;
}
#manufacturerslistHeading {
background-image: url(../images/navbarbackground1.jpg);
}
THANKS
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
You're heading in the right direction, but with a twist against which i would strongly advise.
I recommend using ems for font sizes and pixels for horizontal widths especially, margins, padding and borders.
Why?
On the font sizes: most in Zen Cart are already expressed in ems and will scale in all browsers if a user who is getting on a bit (like me) and has dodgy eyes (like me) needs to increase the font size using browser settings (it's only a matter of time :wink:). All browsers will do the same for font sizes expressed in pixels too ... except for your favourite browser, Internet Explorer. That will stick resolutely to pixel size given, even when all text around it is expanding nicely.
For horizontal widths: there are some nice sites around that expand nicely as the font size is increased due to well-judged use of ems for all dimensions. The Apple Zen template is a good example. But you really have to know what you're doing otherwise the results can be catastrophic. Here's what goes wrong. In Zen Cart the side columns are usually a fixed width defined in pixels (not always, but usually). If the text size is increased, it needs more space, but if padding is expressed in ems that expands too, leaving the text not more space, but less. The only place it can go is into a very tall, sometimes very thin, often illegible and always unsightly column.
Hope this helps.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
oh aged yet wise...
I read somewhere long ago about where/how to set the starting em but it has been lost to me. Reason I went with px is because I was so frustrated changing CSS without really knowing what the starting em was... In lieu of searching maybe I can impose upon you to offer us tutelage yet again. You really have enlightened me (and others I am sure) on CSS -- I can see Zen from here....not there yet...but ever so much closer
Thanks
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
the box header has become possessed with a link...
the header links to product info pages that seem to be whatever the previously visited product was - but not presenting as the manufacturer's list - just to the product - and then if you keep clicking scrolls through the list (I only have a few test products so all characteristics not known) -
this is an issue because of font decorations visited/links etc -- and navigation confusion...
I tried looking at the tpl_manufacturers_list.php and manufacturers_list.php to see if I could disable any links and I actually saw this:
Quote:
$title = BOX_HEADING_MANUFACTURERS;
$title_link = false;
any ideas?
THANKS
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
wasana
oh aged yet wise...
I read somewhere long ago about where/how to set the starting em but it has been lost to me. Reason I went with px is because I was so frustrated changing CSS without really knowing what the starting em was... In lieu of searching maybe I can impose upon you to offer us tutelage yet again. You really have enlightened me (and others I am sure) on CSS -- I can see Zen from here....not there yet...but ever so much closer
Thanks
1em = the current font size. The default font size for browsers is equivalent to 16px. Many sites, Zen Cart included, then reset this in their body tag to 62.5%. that reduces the default font size to 10px and so 1em becomes equal to 10px, 1.2em = 12px etc.
However, if you reset the em for a div, everything inside it will take the new value and if you do it again for something inside the effect will be multiplicative. So for example, if you changed font size to 2em (20px) for a wrapper and then set the font-size for a piece of text inside that wrapper to 1.5em, the resulting text would not reduce to 15px, but increase to 30px.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
wasana
the box header has become possessed with a link...
Impossible to diagnose without seeing, but I'd take a look at what you have in your previous box. This sounds like an <a> tag not being closed in an earlier sidebox and carrying on until it find the next </a>, and very unlikely to be anything to do with this mod.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Thanks Kuroi -
nuts and bolts understanding of CSS coming together thanks to you.
---
I'm not sure what you mean by
Quote:
an <a> tag not being closed in an earlier sidebox
could one of the other contributed sideboxes be impacting this sidebox? wow. :huh: I will look. Login sidebox had a glitch regarding making links on words that shouldn't have link - which in turn could have been caused by another box... maybe it's going to be a bit of a do over and uninstall some contributions.:no:
Mfg List header link id'd by FireBug (my new best friend) as
Quote:
<h3 id="manufacturerslistHeading" class="rightBoxHeading">
<a _moz-rs-heading="" href="http://localhost/blahblahblah/index.php?main_page=product_info&product_id= numberX&zenid=xxxxxxx...
"_moz-rs-heading" search on google - suggested a few things but nothing definitive. it might be added by Firebug when there is an html error - something about <a> tags round block elements --- another site referred to it as "pseudo-attribute-selector"
I did change the name 'manufacturer' in english.php
Quote:
define('BOX_HEADING_MANUFACTURERS', 'somethingelse);
but not anywhere else and I don't think that is going to affect anything.
it is all just too weird :wacko: but it is sort of a important bothersome issue - the sidebox mfg list is going to be a prominent feature of the site...
Thanks for the support - if I uncover a solution I will post. If anyone recognizes what might be going on I'd appreciate a word or two.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
wasana
I did change the name 'manufacturer' in english.php
but not anywhere else and I don't think that is going to affect anything.
Better tell us exactly what that line now says!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Hi - I am pleased to announce that the problem is coming from another contributed sidebox. Once I diagnose whether I did it in edits or it came from them I'll let that forum know.
Thanks for the help - the one sidebox affecting another is something we mere mortals wouldn't have expected...
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Hi everyone,
I'm trying to use manufacturers list sidebox but what I would like to have is a list of 10 brands and then another column and another 10 of them next to the first column.
I would like to place it not as a sidebox but as a bigger box on the bottom of the page as shown on that web site: http://www.cherryculture.com/
I don't know php enaugh to do it by myself. Can anyone help to solve that problem? I'm pretty much familiar with the structure of that sidebox and zencart. Thanks a lot in advance.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Could someone direct me to where/how I would change the title "manufacturers" on the manufacturers box?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
corelus
Hi everyone,
I'm trying to use manufacturers list sidebox but what I would like to have is a list of 10 brands and then another column and another 10 of them next to the first column.
I would like to place it not as a sidebox but as a bigger box on the bottom of the page as shown on that web site:
http://www.cherryculture.com/
I don't know php enaugh to do it by myself. Can anyone help to solve that problem? I'm pretty much familiar with the structure of that sidebox and zencart. Thanks a lot in advance.
Apologies, only just seen your question. This can be done and isn't too difficult, but would require some programming in PHP. I've seen this done on other sites and have added it to my todo list. But if you need it in a hurry and aren't ready to learn some PHP, I'd recommend the commercial help wanted section of this site.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
tammyt
Could someone direct me to where/how I would change the title "manufacturers" on the manufacturers box?
Good question. I have added the answer to the wiki for this mod
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Kuroi,
I'm trying to attain something similar to my old layout here, but by using this manufacturer list mod. I previously created subcategories for each manufacturer, and that threw in a whole lot of strife in terms of duplicated content and everything else.
Currently I'm at this stage, where you can see the manufacturer list poking out the back of the top of the type column.
The entire left column has been set to display:none and I'm getting the manufacturer box to display in its current form by calling it in my /includes/templates/your_template/templates/tpl_index_categories.php through this code:
PHP Code:
* @version $Id: tpl_index_categories.php 4678 2006-10-05 21:02:50Z ajeh $
*/
?>
<div class="centerColumn" id="indexCategories">
<?php if ($cPath == '1' or $cPath == '2') { //show 3 subcat boxes
require(DIR_WS_MODULES . 'sideboxes/categories.php');
require(DIR_WS_MODULES . 'sideboxes/your_template/manufacturers_list.php');
} else { //standard output ?>
<?php if ($show_welcome == true) { ?>
<h1 id="indexCategoriesHeading"><?php echo HEADING_TITLE; ?></h1>
So, the manufacturer list appears in the main body of the page, but it is without a unique div id, so I can't style it in CSS.
Any recommendations? The code I am using to call the manufacturers list is seen in this post by gjh.
Thanks for any help!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Sorry, to simplify the above, all I need to do is to make the module output a div tag at the beginning of the list itself (not in the header) and a </div> tag at the end.
Edit: Solved this! It's really simple. Just add a normal css div tag at the beginning and end of manufacturer_list.php! Too easy!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I can see styled content hung off an unique ID for what appears to be manufacturer info. Does this mean that your now resolved all your issues?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
kuroi
I can see styled content hung off an unique ID for what appears to be manufacturer info. Does this mean that your now resolved all your issues?
Almost. IE is now chucking a fit, but firefox works perfectly. I assume it has something to do with my beginner trial-and-error coding style.
Thanks anyway!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Can somebody help me with this one
All I need is to use this on a ezpage .. what I mean is, instead of beeing on the sidebox, it is on a ezpage
can it be done ?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I would like the manufacturersbox to list the logos that are given on the admin for the manufacturers instead of boring text. Is it possible?
Thanks in advance!
Elli
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I use this manufacturerlist at www.rainbowhammocks.eu but the bullits drop out of the sidebox. I have tried to figure it out with FF webdeveloper but my CSS knowledge is not enough to get it.
I have also tried to remove the bullits by removing <li> in the file but then the manufacturers were shown without line brakes.
Any hints?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
NullMind
Can somebody help me with this one
All I need is to use this on a ezpage .. what I mean is, instead of being on the sidebox, it is on a ezpage
can it be done ?
Not really. EZ-Pages are designed for static text. If you want to put something more dynamic or database driven, such as this, it's best to create a new Zen Cart page, e.g. by adapting page_2, page_3 or page_4 included in the Zen Cart package for this reason.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
ellivir
I would like the manufacturersbox to list the logos that are given on the admin for the manufacturers instead of boring text. Is it possible?
Thanks in advance!
Elli
Such a simple idea. I like it. A lot!
So yes it's now possible. Version 3 of this mod contains a switch to allow you to choose between textual links or ones based on manufacturers' images / logos.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
erwin208
I use this manufacturerlist at
www.rainbowhammocks.eu but the bullits drop out of the sidebox. I have tried to figure it out with FF webdeveloper but my CSS knowledge is not enough to get it.
I have also tried to remove the bullits by removing <li> in the file but then the manufacturers were shown without line brakes.
Any hints?
I suggest that you start by putting back the unordered list tags that you have removed. That will allow the CSS that you added to provide basic styling for these links to be recognised.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
The tags were there all the time. I removed it just temporaly to investigate. The original files are now installed.
I have tried some settings in CSS like padding and margin, but no effect.
----------------------------------------
#manufacturerslistContent ul {
list-style:none;
padding:0;
}
----------------------------------------
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
erwin208
The tags were there all the time. I removed it just temporaly to investigate. The original files are now installed.
I have tried some settings in CSS like padding and margin, but no effect.
I wonder if the problem could be that the original files are not in the right place. There's still no sign of those UL tags on your site.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I used this mod to excellent effect on Headsonic.com.au. Thanks again Kuroi!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
kuroi, thank you for pointing me to a mistake.
indeed, the UL tag was still uncommented, but what was causing my trouble was a missing } in the CSS file just above the manufacturer list style.
Now the bullits are gone and the aligning is pefect.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Do anyone know ith this mod is it possible to list the manufacturers horizontally across the top like the categories display?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
How do I change "Manufacturers" to read "Brands".
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Download your english.php file and change the text
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Looks good in everything but IE.
for reference: fleurdepup.com/store
When viewed in IE the manufacturer names shift to the right quite a bit, no longer aligning themselves cleanly beneath the categories.
Has this happened to anyone else?
Anyone know of an IE bug fix to this?
Thanks
Rich
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
jrstaatsiii
Looks good in everything but IE.
Something weird and wonderful is going on with your margins. If you prefer normality, add the following to your stylesheet:
Quote:
#manufacturerslistContent {left-margin:0}
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
kuroi:
Thanks for the quick response.
I assume you meant:
#manufacturerslistContent {margin-left:0}
But sadly, though it shows up nicely in firebug, it does nothing when I view it in IE...
I'm so confused. Is there anything else I should be doing?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
jrstaatsiii
I assume you meant:
#manufacturerslistContent {margin-left:0}
Wow. I must have been having an off evening. I actually meant
Quote:
#manufacturerslistContent ul {margin-left:0}
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
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?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
Daddio53
I _wish_ it would display for a manufacturer, but that discussion is for elsewhere.
No discussion needed. Here it is.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
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.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
@loxly
You're very welcome.
@tammyt
Could I have a link to your site.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
My site is FairyDavis.com
Thanks!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
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.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Oh, okay thanks. I will look for the correct one.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I found the correct style sheet and it workd!! :clap:
Thank you for a great add on and the help!!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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
http://www.burn-it-now.co.uk/images/mlproblem-sm.jpg
Link to full size image click here
Any thoughts? Thanks, in advance.
Regards, Nicola.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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;
}
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
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!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
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:
Code:
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:
Code:
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:
Code:
order by manufacturers_name";
and now they are:
Code:
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!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Sorry for being thick, but how exactly are you meant to remove the bullets and what stylesheet are you meant to change? I tried to add the text to my template stylesheet but nothing changed, bullets are still there. Please could somebody just clarify what stylesheet and what text to add? thank you.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
I have just added this mod to my site and followed all the instructions to a T...and yes, I turned it on in the admin/tools/Layout Box Controller...but nothing shows on my site.
I read a bit back where someone else had this issue but never saw a resolution to the issue posted...
Can someone help?
Thanks!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Okay never mind. I figured out that I had to put it in the template I am using instead of using the one for all templates - my site is whacked out and I am in the process of creating a clean install of Zen placing all modifications in the default to use on all templates so I don't have this issue - I wish there were a simpler way but....
Great mod, thanks! I hated that scroll!
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
Opal
Sorry for being thick, but how exactly are you meant to remove the bullets and what stylesheet are you meant to change? I tried to add the text to my template stylesheet but nothing changed, bullets are still there. Please could somebody just clarify what stylesheet and what text to add? thank you.
I am having this problem too, but only on FF :(
IE seems to be fine?
www.black-technology.com
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
XxDrAg0nxX
Try refreshing your Firefox browser a few times. I find that its "advanced" caching means that it doesn't always pick up small changes to stylesheets immediately, and your manufacturers box looks fine to me in using FF.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Nvm, problem solved, directly edited the tpl_manufacturers_list.php
by replacing:
'<ul>'
with
'<ul style="margin: 0; padding: 0; list-style-type: none;">'
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
XxDrAg0nxX
Nvm, problem solved, directly edited the tpl_manufacturers_list.php
by replacing:
'<ul>'
with
'<ul style="margin: 0; padding: 0; list-style-type: none;">'
A horrible solution. The styling should be concentarted in the stylesheet - unless you want to make your site difficult to maintain and upgrade.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
but but but... I saw the tpl_infomation.php it was like that too :(
I just copied it wholesale :P
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
You are so right. I'll forgive you then and go slap a dev team member's wrist instead. I'm sure that it won't be like that in 1.4!
:wink:
-
1 Attachment(s)
Re: Simple manufacturer list to replace scrolling list - add-on now available
Hi, this is a great mod and it seems to be working well on 1.3.8a =)
I'm only having one issue with the spacing. I wonder if it's caused by the div structure in the code or the CSS. I doubt its the CSS since I've tried to fix it and I am using the same CSS as the "Important Links" section.
Please help me figure out how to get rid of these empty spaces.
My CSS:
HTML Code:
#manufacturerslistContent a {
color: #000000;
font-weight:800;
text-decoration: none;
display: block;
padding: 4px 0 4px 0px;
height: 1%;
list-style:none;
font-size: 12px;
}
#manufacturerslistContent a:hover {
color: #EEEEEE;
font-weight: bold;
background-color: #000000;
height: 1%;
}
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Ok, I may be totally off base here, but I thought that once added you could choose if you wanted the Manufacturer's "text" name to show or their logo .... in this store's case, its the Publisher of the comic. I set up the logo for several and plugged in a test comic, but as you can see, it only shows a bullet with the text name, not the Maximum Press logo...
http://www.nothingbutromance.com/thecomicrack
what am I missing? or was I misunderstanding what its supposed to do?:unsure:
Thanks!
I should add that I'm not even sure if my images are the correct size, I took them from my other store, or that I even want the images to show instead of the Publisher's name, but I wanted to see how it looked to compare which I feel is best. Comic guys know those logos like the back of their hands, so I think images would be a great way to go...if it works that way and IF I can get it to work that way !
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Version 3 of this mod contains a switch to allow you to choose between textual links or ones based on manufacturers' images / logos.
Well, I'm managed to find everything but the switch mentioned here in this post. Any clue as to where it is? Liz
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
southernlady
Well, I'm managed to find everything but the switch mentioned here in this post. Any clue as to where it is? Liz
The precise location is given in the readme file bundled with the mod.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
The precise location is given in the readme file bundled with the mod.
Actually, no it isn't. I downloaded version 3 twice to be sure. The read me file in version 3 is for version 2. Liz
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Zen Cart 1.38a
Manufacturers List Sidebox v3
I'm having an issue with the URL for the manufacturer's list. I can't seem to get the URL to show the manufacturer's name, i.e. "/store/audi". The URL comes up as "store/index/manufacturers_id/2". Is there a reason to it? Thanks for your help.
My other test install that does not have manufacturer list sidebox installed also can't show the manufacturer's name in the URL in the drop-down manufacturer's list.
My question is if anyone knows which file controls the URL creation for the manufacturer's name. I might have installed some other files which rendered this problem. thanks
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
@Kuroi, thanks for all the cool mods you develop. :clap:
Can you please help me add a number count to the manufacturers? Like how it would be if we were just using categories?
Example:
ZenCart (3)
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
southernlady
Actually, no it isn't. I downloaded version 3 twice to be sure. The read me file in version 3 is for version 2. Liz
I recommemd reading beyond the title (which is wrong, and has been corrected for version 4) to the section just below that gives the line number for the switch.
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
Svault
Zen Cart 1.38a
Manufacturers List Sidebox v3
I'm having an issue with the URL for the manufacturer's list. I can't seem to get the URL to show the manufacturer's name, i.e. "/store/audi". The URL comes up as "store/index/manufacturers_id/2". Is there a reason to it? Thanks for your help.
My other test install that does not have manufacturer list sidebox installed also can't show the manufacturer's name in the URL in the drop-down manufacturer's list.
My question is if anyone knows which file controls the URL creation for the manufacturer's name. I might have installed some other files which rendered this problem. thanks
Sounds like your using one of the SEO URL packages and it's making a mess of the manufacturer URLs in the core code. I would therefore expect it to mangle these too as they're basically the same, just presented differently. Are you willing to name the errant mod?
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
Quote:
Originally Posted by
pricediscrimination
@Kuroi, thanks for all the cool mods you develop. :clap:
Can you please help me add a number count to the manufacturers? Like how it would be if we were just using categories?
Example:
ZenCart (3)
No I can't. No way. Absolutely not.
(But if you watch the free software add-ons section carefully, you'll see version 4.0 appear with this functionality already built in.)
:wink:
-
Re: Simple manufacturer list to replace scrolling list - add-on now available
@Kuroi, Thanks for adding this feature so quickly and thanks for helping me get it all sorted out. The new number count is great and works well!
The count is showing up below the manufacturer's name. Not included in the hyperlink. How would I move it up to appear right next to the manu name?
As far I as I know this isn't an issue with my CSS.
Much obliged :yes: