X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Two groups of categories? Is this possible? (https://forum.x-cart.com/showthread.php?t=40540)

sparrowdog 06-16-2008 02:38 AM

Two groups of categories? Is this possible?
 
I have a potential client who will be selling swimwear. For the categories, we want the following structure.

BRAND 1
> print a
> print b
> print c
BRAND 2
> print 1
> print 2
> print 3
BRAND 3
> style 1
> style 2
BRAND 4
> style a
> style b
Bikini Tops
Bikini Bottoms
One Piece
Chlorine Resitant
Sarongs

I would like a clear definintion between where the BRAND 4 and it's sub-catgories ends, and where Bikini Tops starts.

Is this possible? With a mod?

rkdiddy 06-16-2008 09:49 AM

Re: Two groups of categories? Is this possible?
 
What you need to do is create another categories.tpl file - categories2.tpl. You can then call to both of them in your home.tpl.

In the categories.tpl file you will need to add a line:
Quote:

{if $c.order_by gt 100 and $c.order_by lt 200}

And, in categories2.tpl file you will need to add a line:
Quote:

{if $c.order_by gt 201 and $c.order_by lt 300}

Then in the Admin area ID your categories in these ranges. It will place each category to the appropriate menu.

sparrowdog 06-16-2008 01:50 PM

Re: Two groups of categories? Is this possible?
 
Wow, didn't think it would be that simple. Thanks for that!

sparrowdog 07-29-2008 10:21 PM

Re: Two groups of categories? Is this possible?
 
I tried this and it didn't work. I have tried it with and without a closing {/if} tag in various positions in the categories.tpl file and I keep getting the complete list.

Is there any further information you can give me?

Asiaplay 08-03-2008 11:38 PM

Re: Two groups of categories? Is this possible?
 
You will need a closing {/if} for sure.

Perhaps a silly question / idea... have you checked your category "categoryid" code numbers, that are actually kept in the SQL database for each category (for example all mine fall into the 200-300 range)...
Note: these can only be seen when viewing the SQL table via something like phpMyAdmin
So just wondering if you perhaps have not change the ranges to be correct for the "category id" code number actually used in your own store?

Cheers - Asiaplay

sparrowdog 08-04-2008 12:22 AM

Re: Two groups of categories? Is this possible?
 
I changed all my category ID's and it still didn't work.

I'll just pay x-cart for the mod. No big deal. Thanks for the suggestion though.

Richard Walkling 08-10-2008 11:02 AM

Re: Two groups of categories? Is this possible?
 
There is a free mod from BCSengineering that lets you put page breaks in the category listings - if you use that and adapt the code to put your headings instead of a break it will work.

http://www.bcsengineering.com/store/catalog/Group_Categories_for_Better_Viewing__FREE_Xcart_Mo d-p-62.html


All times are GMT -8. The time now is 03:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.