| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Search Upgrade | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
Just out of curiousity, do you have a URL I could look at?
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#22
|
|||||||
|
|||||||
Yep http://www.strollers.com/store/customer/search.php
I modified my search.php to expand the search to include anything in the descriptions, but other than that it is untouched. and in case I did something wrong in my categories.php, here is my whole file Quote:
Thanks, Cameron |
|||||||
#23
|
|||||||
|
|||||||
Cameron,
Glad you posted your code. Add this to the bottom where all the other smarty assignments are: Code:
Also, You can remove the following "last" line of code: Code:
It should work now, I think
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#24
|
|||||||
|
|||||||
Cool! It works!!! One (hopefully) last question though. How do I get it to display all of the subcategories instead of just the first five? I have 20 2nd level categories under one of my main categories, and 7-8 in the others.
Thanks! Cameron |
|||||||
#25
|
|||||||
|
|||||||
Cameron,
The mod is designed to only show the first level of sub categories under each main category. If you search any if the categories, the search automatically searchs all the subcategories under it. If you still want all your categories and subcategories listed, do the following: Replace the following lines of code in your advanced_search.tpl file: Code:
with: Code:
It's not as pretty, but it gets the job done.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#26
|
|||||||
|
|||||||
I think I asked the question in a murky way. I only have 2 levels of categories. The changes I made so far with your help are working. However, for my second level categories, it is only showing the first 5 second level categories, even if I have 8, 9, or 20 other second level categories.
If you look at http://www.strollers.com/store/customer/home.php?cat=3 and then at http://www.strollers.com/store/customer/search.php you will see that in the drop down box for categories, it shows the first 5 stroller brands only, but I would like it to show all 20 or so. Thanks, Cameron |
|||||||
#27
|
|||||||
|
|||||||
Cameron,
Just so I can see your db structure, change the code with the last post I put up and then let me know. I think this might have to do with the way your categories are stored. We'll change the code back after I have a look.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#28
|
|||||||
|
|||||||
I see what you're after now. I put it in as {section name=cat_num loop=$allcategories} which is what my categories.php has in it. (all_categories shows no categories.) What is odd is that it shows my main categories, then the rest of the categories aren't there, but there is space where they would be at.
|
|||||||
#29
|
|||||||
|
|||||||
Very strange indeed. Good call on the code, I'll edit my previous post now.
What does your xcart_categories table structure look like? PM me the exported file (if you have phpmyadmin) or post it (with contents) on the board, so I can have a look.
__________________
Following the signature guidelines : xcart pro 3.5.8 - [RedHat] |
|||||||
#30
|
|||||||
|
|||||||
categoryid
image_x image_y category description meta_tags avail views_stats order_by membership threshold_bestsellers Is that what you're looking for? |
|||||||
|
|||
X-Cart forums © 2001-2020
|