joshsherm Posted June 11, 2010 Share Posted June 11, 2010 I would like to have a select dropdown box containing a list of manufacturers (like the manufacturer block already has), but instead of the ordinary select box, I want a the manufacturers to have a dropdown meny inside the select box...so users can select a category of products by the manufacturer they hover over.... For a refereance,please view http://www.bidyell.com/ right hand side ("select a category")Instead of categories I would like to have "browse manufacturers", and upon hovering over a particular manufacturer... it will display in the dropdown the categories they have products inPlease PM or reply if you could make this happen properly in awell built module Link to comment Share on other sites More sharing options...
yodapt Posted June 15, 2010 Share Posted June 15, 2010 Is this a simple request or a payed module? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted June 16, 2010 Share Posted June 16, 2010 The control you are looking at is a mcDropdown jQuery Plug-in. Check it out here:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm.It should be no problem getting it setup in your Manufacturers module. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 15, 2010 Share Posted July 15, 2010 Hi would anyone be kind enough to fix up an example of how you can do this for the manufactureres List please?Regards,Aaron Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 15, 2010 Share Posted July 15, 2010 Give me some time, I may be able to work it out for you but I'm not guaranteeing anything. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 15, 2010 Share Posted July 15, 2010 Ok mate cheers,just i am new to PrestaShop, and have never used McDropdown before lol Otherwise i would try and incorporate it but know what codes i need to use etc Regards,Aaron Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 19, 2010 Share Posted July 19, 2010 Sorry to be impatient but any luck Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 20, 2010 Share Posted July 20, 2010 To be honest, I haven't had the time. I will try to work on it tomorrow evening. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 20, 2010 Share Posted July 20, 2010 Ow ok mate no worries cheers Regards,Aaron Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 sorry to be a pain, MrBaseball but anyluck CheersAaron Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 Sorry, been busy with other things, will try to get to it this weekend, for sure. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Ok mate cheers, i be waiting for a great response saying Yes i fixed it , ould you also be able to do it so it does it in columns so if i say have 10 in one column then it will move to the next column and have another 10 etc? if thats not to much to askRegards,Aaron Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 I'm not sure it can be configured in that manner.Edit:Options:maxRows: 25 //specify the maximum rows in a column Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 No worries do it how you can cause any way will be great , also have you used the module menu 2.6.4 ? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 Which module menu you talking about? Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Horiztonal Menu 2.6.4 the one from this Thread: http://www.prestashop.com/forums/viewthread/58775/P0/third_party_modules/module_menu_horizontal_v2_dot_6_free_as i got a few issues, and i not sure if host or anything as i have installed the menu from scratch without any modification so many times now but still not working because as options you can change via backend but not changing them Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 No I haven't used that one, but, let me ask you this...how many manufacturers do you have?I ask because we have 381 and it looks terrible. This mcDropDown is really for hierarchicaldata, such as Categories->subCategories.Are you still sure you want to do this because I have it working. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Hi yes i do what this well at the moment all i have is like 4 or 5 manufacturers Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 ok, are you ready for this???First, download the mcDropdown control from Giva, unzip these files and these files only into the directories mentioned: /lib/jquery.bgiframe.js -> /js/jquery directory /lib/jquery.mcdropdown.min.js -> /js/jquery directory /css/jquery.mcdropdown.css -> /css directory /images/mcdropdown/* -> /images/mcdropdown directory Create msdropdown.js file, place in your js folder. This is the contents: $(document).ready(function (){ $("#mfg").mcDropdown("#mfgmenu", {"maxRows": "10"}); }); Open header.tpl. add this code: <link type="text/css" href="{$content_dir}css/jquery.mcdropdown.css" rel="stylesheet" media="all" /> on the line after: {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} Note: should be placed before the {/if}Then, place this code (it removes script tags so fix it when pasting): < script type="text/javascript" src="{$content_dir}js/jquery/jquery.mcdropdown.min.js"></ script> < script type="text/javascript" src="{$content_dir}js/jquery/jquery.bgiframe.js"></ script> on the line BEFORE this line: {if isset($js_files)} Now, to modify the blockmanufacturers template, open modules\blockmanufacturer\blockmanufacturer.tplAdd this code <input type="text" name="mfg" id="mfg" value="" /> on the line BEFORE this line: {if $manufacturers} Modify this line: > </pre> <ul> to look like this: > </pre> <ul> Now, you also need to give each LI a rel attribute so change this line: getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'} to look like this: getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'} And the last thing is to add this line(it removes script tags so fix it when pasting): < script type="text/javascript" src="{$content_dir}js/mcdropdown.js" ></ script> on the line BEFORE this code: <!-- /Block manufacturers module --> Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 After looking at this, I've decided to not add it to our manufacturers block due to the fact that when you select one of the manufacturers, it performs a search by manuf and then refreshes without the manufacturer being selected in the control.. I might be able to figure that part out someday??? Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Yes ok mate i will give it a go now Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Hey i get a "blank page" http://www.more4beauty.co.uk/ Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Hey i fixed the white page bit lol was me, i have set the manufacturer to Top but its not displaying? do you have any ideas whyCheers,Aaron Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 No, make sure you have your paths correct for the files you are including, css, js.That is one thing that got me. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 Since you have JBX_MENU, I don' t know if you're going to get it to work like I said.I don't see a Manufacturers module block anywhere in that code. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 Hi its because i disabled the manufacturers block as the styling was not good lol i wanted it like the menu i have on JBX_MENU which i think will be hard work And this JBX_MENU i got to do it all manually as via the backend of the module it wont change the settings for some reason so i got to change via the css file which is a pain cause cant get it to look how i wantAaron Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 Hi its because i disabled the manufacturers block as the styling was not good lol i wanted it like the menu i have on JBX_MENU Now, what you originally asked was to add this to the manufacturers block. That is what I did and the code I showed does that. It has nothing to do with the JBX Menu and won't do anything to it. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 30, 2010 Share Posted July 30, 2010 I know that lol , if you look at my menu i want to have a background image to the Brands drop down list and then a hover color of the text? how can this be done please i have tried just cant get it right as you can see i have background image there but it has that extra color at bottom of the power tan one which i dont want.I been trying all day and havent had any luck, Also i have published the Manufacturers block to the left column so you can see what it looks likeRegards,Aaron Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 30, 2010 Share Posted July 30, 2010 I have no idea, I've never seen the JBX menu.Also, I don't see a mfg block at all. Link to comment Share on other sites More sharing options...
Aaron Healey Posted July 31, 2010 Share Posted July 31, 2010 Hi mate its cool i fixed the menu manually lol i will use the mcdropdown soon when i have time to customize it.Aaron Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now