| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Category Dropdown Menu For vs 4.4.1 | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello, I am looking for help with this issue. I am in the process of upgrading my cart to 4.4.1 and I was trying to use some code that I had for my drop down category menu in version 4.3 but it is not working in vs 4.4.1. Can someone please help me convert this code to work with version 4.4.1? As you will notice in the code, I do not want any categories with Id's higher then 899 showing up in the list. Remember this code came from version 4.3 and earlier and I need to use it in version 4.4.1. It worked great before in previous versions.
Thank you very much in advance for your help. Merry Xmas to all! Shareen {* $Id: categories.tpl,v 1.35 2009/05/12 07:37:15 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} <div class="search"> <div class="valign-middle"> {if $active_modules.Fancy_Categories ne ""} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} {else} {if $config.General.root_categories eq "Y"} <select name="listCategories" onchange="window.location=this.options[selectedIndex].value"> <option value=""><font class="VertMenuItems">Select A Design Category</font></option> {foreach from=$categories item=c} {if $c.order_by < 899 && $c.product_count ne 0} <option value="home.php?cat={$c.categoryid}"><font class="VertMenuItems">{$c.category}</font></option> {/if} {/foreach} </select> {else} {foreach from=$subcategories item=c key=catid} <font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br /> {/foreach} {/if} {/if} </form> </div> </div>
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#2
|
|||||||
|
|||||||
![]() Hi
Hope this helps. <select name="listCategories" onchange="window.location=this.options[selectedIndex].value"> <option value="">Select A Category</option> {foreach from=$categories_menu_list item=c name=categories} <option value="home.php?cat={$c.categoryid}">{$c.category} </option> {/foreach} </select>
__________________
Garry http://www.natralife.co.uk X-Cart Gold version 4.5.4 PHP 5.3.18 MySQL client 5.0.96 |
|||||||
#3
|
|||||||
|
|||||||
![]() This works perfect. Thank you so much. I am using the smart template for vs. 4.4.1 and I put my category drop-down list on the custom horizontal menu. How would I move it to the far right? Look at the picture I have included. Thank you in advance for taking the time to help me.
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#4
|
|||||||
|
|||||||
![]() Garry, the drop down categories is working out great but do you know of a way to increase the size and make it wider? Some of the category names are being cut off. The code I am using is below.
Thank you for your help. <select name="listCategories" onchange="window.location=this.options[selectedIndex].value"> <option value=""><font class="VertMenuItems">Select A Product Category</font></option> {foreach from=$categories_menu_list item=c name=categories} {if $c.order_by < 899 && $c.product_count ne 0} <option value="home.php?cat={$c.categoryid}">{$c.category} </font></option> {/if} {/foreach} </select>
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#5
|
|||||||||
|
|||||||||
![]() The changes that you are looking to make aren't in that code, they will be css changes that you will need to make.
If you use Firebug in Firefox, you'll be able to see which css classes need to be altered.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#6
|
|||||||
|
|||||||
![]() Ok Thank you for your reply. I will have to figure this out. I am not sure how to go about this but I will do more digging. Thanks again for your help. Take care!
__________________
Shareen sparker2@cox.net http://www.stitches4u.com X-Cart Version 4.5.0 with Smart Template vs 4.4.x |
|||||||
#7
|
|||||||
|
|||||||
![]() Use Firefox and Firebug addon, click on the search bar with Firebug, you will see the class or id of the element, and you will see the CSS of it, and what CSS you need to modify. You can modify it in Firebug for temporary uses, but then you will need to go into the actual css and make the change and save it.
|
|||||||
#8
|
|||||||
|
|||||||
![]() Hi,
Is it possible to make dropdown category in hover like boots.com on the top??
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#9
|
|||||||
|
|||||||
![]() Hey, can you tell me how can i implement this into version 4.4.3
Thank you
__________________
X-cart version 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|