| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Main Categories as a drop down list | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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.... |
|||||||
#2
|
|||||||||
|
|||||||||
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
#4
|
|||||||
|
|||||||
I am sure this is quite simple to do ... Waiting for someone to save the day...
|
|||||||
#5
|
|||||||
|
|||||||
Hi there,
We have done this already. Backup /skin1/customer/categories.tpl Old Code Code:
Replace with this - New Code Code:
This for 3.5.0. May be incompatible with 3.4.x series. Always back up first!!!!! |
|||||||
#6
|
|||||||
|
|||||||
Could a moderator move this thread to "custom mods" for the benefit of other xcart users.
|
|||||||
#7
|
|||||||
|
|||||||
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...."? |
|||||||
#8
|
|||||||
|
|||||||
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 |
|||||||
#9
|
|||||||
|
|||||||
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.
__________________
Regards, Natalie Ver. X-cart-gold 4.1.3 [UNIX} -add on affiliate |
|||||||
#10
|
|||||||||
|
|||||||||
Inside the {section} loop use
Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|