| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Drop down/flyout categories... where do I start? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#41
|
|||||||
|
|||||||
![]() 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
__________________
X-Cart version 3.4.11 Apache: 1.3.29 PHP: 4.3.4 MySQL: 4.0.17 Server: Red Hat 9 |
|||||||
#42
|
|||||||
|
|||||||
![]() 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. |
|||||||
#43
|
|||||||
|
|||||||
![]() 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.
__________________
Current project: 4.4.2 |
|||||||
#44
|
|||||||
|
|||||||
![]() 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. |
|||||||
#45
|
|||||||
|
|||||||
![]() 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
__________________
Current project: 4.4.2 |
|||||||
#46
|
|||||||
|
|||||||
![]() 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:
Somehow somewhere, funky's codes need to be put in: Code:
and Code:
|
|||||||
#48
|
|||||||
|
|||||||
![]() 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:
__________________
Current project: 4.4.2 |
|||||||
#49
|
|||||||
|
|||||||
![]() 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:
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:
More things to note, in 4.0.x if you check out the SQL tables you will now see: Code:
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:
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 ![]() |
|||||||
#50
|
|||||||
|
|||||||
![]() 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.
__________________
X-Cart gold 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|