CCSupport Posted May 15, 2014 Share Posted May 15, 2014 Hello all, I want to modify the 'Choose Another Category' link that you can click for the other product categories to appear. The standard config is that the other products are hidden until the 'Choose Another Ca...' is clicked, however I would like it the other way around, so the other categories show by default and if the linked is clicked they get hidden....or in fact I don't really mind if the link does anything at all as I am sure no one will want to hide the products. I have found the code for the oneclick show, however no matter what I do it doesn't show on default so I am guessing the actual showing/hiding is done elsewhere within the code. Code found in product.tpl: <div align="center"><a href="#" onclick="showcats();return true;">{$LANG.cartchooseanothercategory}</a></div> Any ideas on this one? Cheers 0 Quote Link to comment Share on other sites More sharing options...
CCSupport Posted May 15, 2014 Author Share Posted May 15, 2014 OK, so I have managed to do it...however not sure how clean it is or what other effects it would have. I have removed line 104 out of orderform/formchoice/style.css: display: none; This then stops the default display as 'none'. However as mentioned no idea if this is the best way to do it as of yet! 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 15, 2014 Share Posted May 15, 2014 yes this work, see also here http://forums.whmcs.com/showthread.php?88418-Help-with-code i modified display:none; to display:block !important; 0 Quote Link to comment Share on other sites More sharing options...
CCSupport Posted May 15, 2014 Author Share Posted May 15, 2014 Thanks. Appreciated. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.