Post by karthikeyan » Mon Feb 28, 2011 2:03 am

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

Newbie

Posts

Joined
Fri Feb 11, 2011 3:08 pm

Post by SXGuy » Mon Feb 28, 2011 2:39 am

make sure all products and categorys have a sort order of 1, and that will put them all in alphabetical order.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by Qphoria » Mon Feb 28, 2011 4:26 am

That's not what he wants.. he wants this:
http://www.johnlewis.com/Shop+by+Brand/A/Area.aspx

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by SXGuy » Mon Feb 28, 2011 7:21 am

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

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by opencartnovice » Mon Feb 28, 2011 8:29 am

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

New member

Posts

Joined
Thu Oct 07, 2010 5:12 am

Post by karthikeyan » Mon Feb 28, 2011 4:56 pm

Thank you, I wilkl try.

Newbie

Posts

Joined
Fri Feb 11, 2011 3:08 pm

Newbie

Posts

Joined
Sun Feb 05, 2012 5:13 pm
Who is online

Users browsing this forum: No registered users and 13 guests