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)
-   -   Adding a second 'categories' section (https://forum.x-cart.com/showthread.php?t=37234)

RickDavisFL 02-01-2008 05:05 AM

Adding a second 'categories' section
 
Is it possible to add a second "categories" box below the first?

I have the categories and subcategories setup however I would also like to make a seperate listing below that for "product lines". This way both the categories listing and a second listing would be stationary as the customers looked through the products.

rkdiddy 03-01-2008 11:42 AM

Re: Adding a second 'categories' section
 
I would like to know the same. When I upgraded my cart, it seems the code was lost and now the code from 4.0 doesn't work with 4.1.

Please help.

EN4U 03-01-2008 09:56 PM

Re: Adding a second 'categories' section
 
Yes i would like to know basically the same as the above posters do. Per the left navigation, instead of just one long list of links under a category, how would you add a caption to each one.

For instance

Mens Items
xxxx
xxxx
xxxx
Womens items
xxxx
xxxx
xxxx

etc,... how can this be done?

EyeDreamers 03-18-2008 03:48 PM

Re: Adding a second 'categories' section
 
Try this mod:
X-Cart 3 Level Advanced Dynamic Category Menu v4.x

It gives the appearance for what you are wanting and with positioning you can get it exactly the way you want.
http://www.xcartmods.co.uk/category/x-cart-navigation/

Duramax 6.6L 03-18-2008 04:02 PM

Re: Adding a second 'categories' section
 
I believe that this could be done with an if statement so that products say numbered from 1 - 500 appear in the first box and products from 501 - 1000 appear in the second box.

You would have to copy the original categories tpl file to a second file name with the if statement in place in both files.

You would also have to modify the customers home page to include the new box.

I am not exactly sure how to write the if statement, by I will work on it.

Hopefully someone will help out here.

EN4U 03-18-2008 04:04 PM

Re: Adding a second 'categories' section
 
Quote:

Originally Posted by Duramax 6.6L
I believe that this could be done with an if statement so that products say numbered from 1 - 500 appear in the first box and products from 501 - 1000 appear in the second box.

You would have to copy the original categories tpl file to a second file name with the if statement in place in both files.

You would also have to modify the customers home page to include the new box.

I am not exactly sure how to write the if statement, by I will work on it.


Thank you Duramax for looking into this.

balinor 03-18-2008 04:24 PM

Re: Adding a second 'categories' section
 
That would be something like this:

{foreach from=$categories item=c}
{if $c.order_by gt 200 and $c.order_by lt 300}
<div class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></div>
{/if}
{/foreach}

That will show categories with a POS between 200 and 300.

Duramax 6.6L 03-18-2008 04:52 PM

Re: Adding a second 'categories' section
 
Thank you balinor, You are always a help here.

There was a post on here on how to add a second box. Do you by chance know where it is, I am searching and can not find.

balinor 03-18-2008 04:53 PM

Re: Adding a second 'categories' section
 
Only when I'm not bugging people to update their signature or post in the right place ;)

rkdiddy 06-10-2008 11:21 AM

Re: Adding a second 'categories' section
 
Thanks Ryan.


All times are GMT -8. The time now is 09:15 PM.

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