| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Grouping Categories for better viewing | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Grouping Categories for better viewing
I've done this for a customer and helped someone out on the forums with this and thought it might be useful to post here.
This will basically get you started on how to group your main categories for better readability for those of you with lots of main categories. This can be greatly expanded to include image dividors, Headings to each of the groups, etc. I have this as a free tip on my site and thought I'd copy and paste the tip for everyone here too. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTE: You should always make a back-up copy of your files and/or database before installing any modification. This tip will help group categories with a line break, horiziontal rule, image, etc. inbetween category groups. Look for a section of code in skin1/customer/categories.tpl that looks like this: Quote:
and change it to this: Quote:
You can change the noted to a <HR> or an image or anything else you'd like to use to separate your categories. Example, all the categories in the first grouping have a position number less than say, 50. The next section is between 50-100, next 100-150, etc. This means that the categories you want to show up at the top of the sections will have to have category position, 50, 100, and 150 in this example. You can change the 50, 100, 150 to be what ever position numbers you want and you can add more "or"s to the if statement. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hope this helps some!! Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#2
|
|||||||
|
|||||||
You do good work!
This is just what I was looking for on a new project, thank you much.
__________________
X-Cart gold 4.1.9 |
|||||||
#3
|
|||||||||
|
|||||||||
I have finally implemented this on my site. So you can see an example of what you can do with this simple mod there. (http://www.bcsengineering.com/store/catalog)
Here's the exact code for on my site (notice the part set off in the middle is the new part): Code:
Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#4
|
|||||||
|
|||||||
How did you center your headings??
__________________
tekmind X-cart 4.0.7 [unix] |
|||||||
#5
|
|||||||||
|
|||||||||
Khar,
Here's an example lable for my site: lbl_heading1 is: Quote:
Does that help? I left the full control to be in the heading lable. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#6
|
|||||||
|
|||||||
Perfect!!!
Thanks again.
__________________
tekmind X-cart 4.0.7 [unix] |
|||||||
#7
|
|||||||||
|
|||||||||
YEAH!!!! Carrie. Big time Kuddos for you.
Thank you so much
__________________
X-CART Gold version 4.0.14 & 4.1.11 Apache Version 1.3.29 (Unix) EWDHosting-Quality X-cart Hosting We will always sell you the right shoe and the left one is free. |
|||||||||
#8
|
|||||||
|
|||||||
Hi
I tried this for 4.012 and it just shows nothing in the categories box. I have checked that I have the cats numbered corectly but no joy. Is it different on 4.012 or should it work?
__________________
X-Cart 4.7.12 (Live) Redux Template CDSEO |
|||||||
#9
|
|||||||||
|
|||||||||
Can you post the code you changed?
Thanks, Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#10
|
|||||||
|
|||||||
Will this work for products aswell?
I would like to have this work with products as well.
Example: Memory -> PC266 PC333 PC400 I would like to list all PC266 memory first then the PC333 and then the PC400 Is there a way to do this? Regards WP
__________________
X-Cart Gold 4.13 X-Configurator X-ROM Easy Checkout |
|||||||
|
|||
X-Cart forums © 2001-2020
|