Main Categories as a drop down list
I couldn't find a post dealing with this.
By default, main categories are listed showing all categories either on the right or left side of the page. What I would like to do is show all main categories as a drop down list. Selecting a category will take the user to the respective subcategories page as happens now. This must be quite simple, I guess.... |
|
not exactly what I am looking for.
Here is a drawing of how I want it to appear... http://www.shopping.com.mv/mall/images/images2/cat.GIF |
I am sure this is quite simple to do ... Waiting for someone to save the day...
|
Hi there,
We have done this already. Backup /skin1/customer/categories.tpl Old Code Code:
{* $Id: categories.tpl,v 1.19 2003/11/11 14:02:32 svowl Exp $ *} Replace with this - New Code Code:
{* $Id: categories.tpl,v 1.19 2003/11/11 14:02:32 svowl Exp $ *} This for 3.5.0. May be incompatible with 3.4.x series. Always back up first!!!!! |
Could a moderator move this thread to "custom mods" for the benefit of other xcart users.
|
Thanks a lot for this mod... I was able to get it working on 3.4 with some minor modifications....
One question though: How can we make the selected category be shown in the drop down list even if we browse thorugh the subcategories... Now, when we select a subcategory the option select shown gets reset to "Select a category...."? |
To select the current category, change your option statement to:
<option class=CategoriesList value="{$categories[cat_num].categoryid}" {if $current_category eq $categories[cat_num]}selected{/if}>{$categories[cat_num].category_name|escape}</option> -> Al |
MOD possible also for just 1 category?
Great MOD!
Is it possible to have this MOD on just 1 category. I have setup categories for different products and 1 which is the main, this is the "Shop by brand". What would I need to change in this MOD to have it just for the shop by brand category so the customer is taken right to the selected brand page with subcategories? Thanks for any input. |
Inside the {section} loop use
Code:
{if $cateogires[cat_num].categoryid eq "55"} |
All times are GMT -8. The time now is 09:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.