Page 1 of 1

ALPHABETICAL LISTING OF PRODUCTS

Posted: Mon Feb 28, 2011 2:03 am
by karthikeyan
Hi friends,

Can anyone help me in doing alphabetical listing of products as like below

A B C D E ...... Z

1. When I click the letter A, it should list all the products starting with letter A and so on.
2. It should be display on the current page

If you dont get the above please contact me.
Thank you.

Regards,
Karthikeyan

Re: ALPHABETICAL LISTING OF PRODUCTS

Posted: Mon Feb 28, 2011 2:39 am
by SXGuy
make sure all products and categorys have a sort order of 1, and that will put them all in alphabetical order.

Re: ALPHABETICAL LISTING OF PRODUCTS

Posted: Mon Feb 28, 2011 4:26 am
by Qphoria
That's not what he wants.. he wants this:
http://www.johnlewis.com/Shop+by+Brand/A/Area.aspx

Re: ALPHABETICAL LISTING OF PRODUCTS

Posted: Mon Feb 28, 2011 7:21 am
by SXGuy
it appears to me to be a horizontal category menu with products in each category starting with the letter of the alphabet

if you notice the urls to each one for example http://www.johnlewis.com/Shop+by+Brand/A/Area.aspx

im guessing the top level category has a seo keyword of Shop+By+Brand, and all sub level categories are the letters of the alphabet. A, B, C etc

This is possible to do, you would need to create a category list that populates all sub categories from the top category, and aligns them right to each other.
pull categorys from top level category then echo the output in a list.
this is just an example and by now means does it work, its just to show you how it would look.
<div id="menu">
<ul>
<li><?php echo $categories; ?></li>
<ul>
</div>

Define the div in the styleheet.

then you would have a little javascript code to place each li horizontal to the last instead of below each other in your header.tpl file.

then you create a top level category called, i dunno, "products"

Then sub level categories called "A", "B", "C", etc etc.

Place all products in the correct categories.

Example url links for each category A, B, C, Etc would be http://www.yourshop.com/Products/A/ and http://www.yourshop.com/Products/B/ and http://www.yourshop.com/Products/C/

As for all products to be displayed below, that requires pulling all products and arranging them in alphabetical order which you could do with a simple sql query

Re: ALPHABETICAL LISTING OF PRODUCTS

Posted: Mon Feb 28, 2011 8:29 am
by opencartnovice
Hi,

I've posted a similar query few months ago http://forum.opencart.com/viewtopic.php?f=110&t=21879. Just post a reply to keep this thread in my posted list so that I can see possible solution.

Regards,
a baby of OC

Re: ALPHABETICAL LISTING OF PRODUCTS

Posted: Mon Feb 28, 2011 4:56 pm
by karthikeyan
Thank you, I wilkl try.

Re: ALPHABETICAL LISTING OF PRODUCTS

Posted: Tue Feb 14, 2012 3:35 pm
by subashkc1