I was wondering if it's possible to display the subcategories and related categories at the top of a category page automatically. Maybe an existing variable that contains the subcategories for a certain category that I could use a stringreplace command on to get the right code in a new variable?
Here's a handmade example of what I mean: http://www.sjaakshobbyshop.nl/?p=productsList&iCategory=2&sName=Houten-Modelbouw All other categories on the site have the same handmade links, it's just a lot of work to maintain when you delete or add a category.
Thanks in advance >)
» Quick.Cart v1.x
-DmD-
merci
2007-05-24 10:55
Proxivire - open file actions_client/products.php and paste above line
open file templates/products_list.php and paste for example after $sCategoryDesc variable $sSubcategories. Of course you have to make it looks good :)
Proxivire
2007-05-24 14:23
merci,
Thanks for your quick reply, as usual. However, this method you described doesn't work entirely. Here is an example of what this does: http://www.sjaakshobbyshop.nl/Develop/quick.cart.test/?p=productsList&iCategory=127&sName=Auto's
It shows a big list with logos, and some errors at the top, the links don't work, and it doesn't show the subcategories on the left anymore.
What I need, is basically the link code of the subcategories of the main list, copied to a new variable that I could use at the top of a category.
Explaination, what I need is this line: "<dd><a href="?p=productsList&iCategory=$aList[iCategory]&sName=$aList[sNameUrl]"> ;$aList[sName]</a></dd>" from categories_menu.tpl, which gets used for the subcategories in the categories list in $sCategoriesMenu, in a new variable that I could use elsewhere, while still having the subcategories to the left as well.
I hope this text isn't too jumbled and that you can still get what I mean from it, and thanks for your help so far :D
Proxivire - firstly it is impossible to show in left menu sub-sub-categories, so it is why you don't have "Italeri", "Revell", and so on in left menu.
secondly if you want it looks good you should make new template file. Copy contant of file templates/contents_more.tpl and change it to display subcategory one next to the other. Then line you added change for example:
At the end you have to add block SUB_PHOTO to templates/categories_menu.tpl because of this errors. Paste to this faile:
<!-- BEGIN SUB_PHOTO --><!-- END SUB_PHOTO -->
Proxivire
2007-05-25 09:35
idaryl:
Hey dude, what's up >) 'though, just mail me if you wanna chat, don't want the topic closed due to offtopicness or something, dunno how strict they are here ;)
-DmD-
Proxivire
2007-05-25 11:44
merci,
You're misunderstanding me, but that's okay, using your info I found out a new, different look, that I like even better than my original ideas, so thanks a bunch :D If I still need what I originally meant I'll ask again in the future, but hopefully more clearly ;)
One odd thing though, using your method subcategories with images added to them show up like you'd expect them to, in their new location at the top-middle of the screen. But subcategories without images still show up below their main categories, like the original quick.cart setup. Any idea what's up with that?
I'm not going off topic - I tpp am interested in this - here is what I'm seeing on a 10.4.6 (Tiger system) Mac on Safari 2.0.4 - link below
http://www.idaryl.com/picture1.png
Proxivire
2007-05-26 09:59
Wewior,
That worked well, thanks >) I was being an idiot, lol, your replacement code worked well, but I still had the problem of subcategories without images not being added. I forgot to have the SUB and SUB_PHOTO the same in One of my templates, and I kept looking in the other one. One of those days I suppose ;)
Thanks a bunch, both of you
idaryl: Good to see that Safari renders the site well too ;) I don't use the Development part of the site anymore, it's just so I can externally show what was up. Meanwhile I've been busy working on this on a webserver set up on my work computer, makes making quick changes and seeing how it looks Much easier.
So the example there is out of data again already, I've got it rendering right now (thanks to merci and wewior ;) )
-DmD-
fasnail
2007-07-12 21:51
I tried the same. I think it should work. But I don't know how could I handle in admin section.