![]() |
I really like the first one BOOMER, with the flyout DHTML. Is that only for the HTML catalog? Are you willing to share your code?
:P |
this mod is awesome, the new version 4.0.0 is awesome, this mod doesn't work with 4.0.0= not awesome
I think it has to do with Xcart upgrading Smarty that prevents this mod from working. Does anyone know how to use this with 4.0? If so please share your wisdom. |
Did you get it to work in 3.5.x? I managed to get it working in a 3.5.7 (or close to that) version. Had to go through categories.php *very* carefully and insert code from funky's version where needed. I'll post the categories.php for that site if you want, although I'm sure you'll have to do the same kind of thing for version 4, inserting the modified code where appropriate. If it's not categories.php though, I won't be much help to you.
|
I had it working for 3.5.9, when I upgraded to 4.00, I didn't touch include/categories.php, customer/categories.tpl, or customer/dropdown.tpl.
Now the menu just shows all the categories instead of sliding out to the side. If you get it to work for 4.0, please let me know. |
That's a tricky one if your upgrade didn't change any of those files. I won't be going to version 4 for a while, and probably not with the site that I have the slide out menu on at all, so I won't be much help to you.
The best thing I can say would be to double check and make sure the upgrade process didn't change your categories.php/.tpl files, and once that is ruled out, trace the changes that occurred (or should have occurred) in the upgrade to see if there is something now *missing* from those 2 files that a clean install of version 4 would have. I'd bet there is. See if you can set up a clean install of a test site in version 4, then retro-fit this mod to it's categories.php If it's smarty only, that's tough. But I have a feeling it's something else. Cameron |
ok, i figured one thing out:
for skin1/customer/categories.tpl and skin1/customer/dropdown.tpl, you have to change all instances of: $categories[cat_num].category_name to $categories[cat_num].category and $subcategories[cat_num].category_name to $subcategories[cat_num].category The hard part is include/categories.php, the code is drastically different from the 3.5.x branch. This is the include/categories.php for 4.0.0: Code:
<?php Somehow somewhere, funky's codes need to be put in: Code:
// funkydunk modification and Code:
// funkydunk code |
Moving to Custom Scripts ...
|
I received a request via pm for the categories.php I'm using on a 3.5.3 (or close to that) store for a fly out menu. Here it is.
Quote:
|
Well, I have been trying to get this booger to work with 4.0.1 for quite a while now (to not avail I shall add), but I am also new to this Smarty/PHP and SQL stuff. But I will give as much info as I can (I grasp onto stuff pretty quick).
Here is the original code by Funk Code:
$categories_data = func_query("select $sql_tbl[categories].*, SUBSTRING_INDEX($sql_tbl[categories].category, '\/', -1) as category_name, SUBSTRING_INDEX($sql_tbl[categories].category, '\/', 1) as maincat, SUBSTRING_INDEX($sql_tbl[categories].category, '\/', 2) as subcat from $sql_tbl[categories] ".($current_area=="C"?"where $sql_tbl[categories].avail='Y' $membership_condition ":"")." group by $sql_tbl[categories].categoryid order by ".($current_area=="C" ? "order_by" : "category")); If you look inside the categories.php in 4.0.x you will see that many of those things are not applicable (mostly due to this section): Code:
function func_get_categories_list($cat=0, $short_list=true, $flag=NULL) { More things to note, in 4.0.x if you check out the SQL tables you will now see: Code:
$sql_tbl[categories].parentid which in the long run, may make this hack even easier (I just don't know how to do it). You will not that the parentid will match the categoryid of the root category it belongs to. So from what I understand we will need to modify Funks code to drop: Code:
($sql_tbl[categories].membership='".addslashes($user_account["membership"])."' OR $sql_tbl[categories].membership='')"; Since it is defined when getting the value of $customer_search_condition Also $category_data doesn't apply to us, we would have to modify that depending on which view setting you wanted to change, if you want it to be global, I believe you would have to create a completly new variable to have them all equal it (but again, this may be my ignorance talking). Well, I have more findings, but I am dead tired and quite frankly all these letter and stuff give me a headache.. hopefully I didn't buther this up too much, like I said before, I am new to this :) |
Cameron,
Thank you for posting that code. I am still getting nothing though, and will have to look it over some more. I had this working quickly on a 3.4.x demo store, but now no joy on the 3.5.8. |
I just had another thought (I feel like Cosmo from the Fairly Oddparents, so sad, I wish I could say I was old enough to have kids, so I could blame it on them that I know caracters from cartoons on nick.).
Ok, so here are some more of my thoughts (beware): I don't think the categories.php has to be changed at all, but ONLY the dropdown.tpl, home.tpl (to include the dropdown, DUH) and the categories.tpl. This is why.. In funks original code (again here): Code:
// funkydunk modification It seems to me all that is being done is verifying the category is avaliable, and the biggest thing is, this is where the values of maincat and subcat are defined, but in 4.0.x we have parentid, which also should mean we don't have to set the index's right? Or am I wrong? If we need to define the SUBSTRINGS we can define them much simpler by going SUBSTRING_INDEX($sql_tbl[categories].categoryid ? or something like that, again my ignorance to programming is where I can not be helpful. So here are some of my thoughts:. (note I am only putting up the modifying part of the dropdown.tpl) Code:
{section name=cat_num loop=$categories} Would we just modify this section: Code:
{if $allcategories[cat].maincat eq $categories[cat_num].category} to say something like: Code:
{if $allcategories[cat].categoryid eq $categories[cat_num].category} or something along those lines. We would also have to change the categories.tpl to match these changes.. Am I making any sense? Or am I on the wrong path to completion for 4.0.x? Thanks for pointing me in some kind of direction, because I feel like I am getting myself even more confused. Thanks |
Another quality mod from funkydunk!
------------------------------------------- I've just implemented this and am really pleased with it, thanks, man! I too have a question, however..... How do you make the flyout menu flyout again, to display a sub-category's subcategories? Answers on a postcard! Many Thanks |
Finally a question that I can help with. :) The mod only provides for popping out one sub category -- to do more would significantly increase a page's load time and database stress. Funky said words to that effect waaaayyyy early in this thread somewhere.
Quote:
|
OK Cool, thanks.
I didn't pick up on that because I was speed reading but I'm glad you cleared it up for me, good work. Regards, |
Anyone feel like helping me out? Just AIM me..
I think I have most of it figured out.. With how the 4.0.1 is, I am still going to have to do a substring index or try to explode the categoryid_path sql entry and do a if eq statement for those.. If someone wants to help me.. please let me know. |
NetScape & Mozilla Firefox Support?
I was curious if anyone has tried this Mod and tried viewing it in Netscape or Mozilla Firefox?
I tried Netscape 7.2 and Mozilla Firefox 0.8 and neither work properly with the popup menus. It kind of just overlaps the main category item. Hard to explain. It works just fine in my IE 6.0. But a small amount of my clients use Netscape / Mac / Mozilla. I knoe they should prolly just use IE but.... ANy suggesstions??? Funkydunk? :) THanks so much in advance! `Mike Using X-Cart 3.4.14 - Linux |
Re: NetScape & Mozilla Firefox Support?
Quote:
I have a mod similar to this working on 4.0.1 and have tested with Firefox .9 and Konquror 3.2.3-2.kde Red Hat and it works just fine for both :) If you could check www.mtgcardhouse.com/store for me with Nutscrape 6.x or 7.x that would be awesome :) |
Wow, this is a fantastic mod, I am ever grateful for this. I got it to work a treat in 3.5.7.
Just what I wanted. |
Hey - How did you get it to work with 3.5.7? I have 3.5.7 and I can't get it to work on this one site - I get a java script error...
|
Hey
I used funkydunk's code and instructions on the first page of this post. Just followed exactly what he said and it worked. Then added the CSS code from page two to my skin.css file. I will post my code if you want, but it is the same as his. |
its weird - i followed every step and it doesnt work... hmm any ideas
|
I'm only just getting to grips with xcart, so not that great with it, but post your web site address and I'll take a look.
|
let me go through all the steps again... if i cant get it I will ask for help :D I think that I was trying to get it to work on my 3.5.7 cart and it wasnt working not 100% sure tho... let me try it
|
Could someone/anyone post some finished code here with version #'s?
It would be much appreciated. |
So anyone have this mod running right on 4.0? yet? uped to this version and so much different to me it's like starting over again 8O
|
I would also like to use this mod on 4.0.11.
Has anybody got it working on that version? or a version close to it? Cheers. |
Will this work on the latest version of Pro?
|
|
Re: Drop down/flyout categories... where do I start?
I know this is an old thread, but has anyone put this on their site? I've got another inquiry in another thread...
|
All times are GMT -8. The time now is 05:53 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.