- Posts: 212
- Thank you received: 17
A-Z keyword index
- smithshop123
-
Topic Author
- Offline
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Opera 45
Hi, is it possible to set up an A-Z index based on the keywords or titles of categories and products?
Regards,
Ian and Stu
Please Log in or Create an account to join the conversation.
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
Thanks,
Ian & Stu
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
this is also different from the other question because I'm talking about a separate view using the Keyword/metadata not the category titles. Sorry for any confusion.
Cheers,
Ian & Stu
Please Log in or Create an account to join the conversation.
We've had people creating an A-Z index so that you can click on the letter to display only the products starting with that letter.
What you need is to create a custom field of the table "product" via the menu Display>Custom fields and of the type single dropdown and with the 26 letters as values.
Then, in each product select the value in the custom field.
And finally, you can create a filter of the type "list" on that custom field via the menu Display>Filters so that it will display on the top of the products listings.
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
Ian and Stu
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
Regards,
Ian and Stu
Please Log in or Create an account to join the conversation.
It's not possible with the mass action system. But you can create a MySQL query and run it on your database in order to do that.
It's quite easy:
Also, you need the values of your custom field to be lower case. If you want upper case, that's possible and you need to change LOWER by UPPER in the query.
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
Much appreciated,
Ian and Stu
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
the mass action worked. I did one for each letter which were identical. Grabbing the first letter in one hit would have been neater but I decided not mess with the db.
Just wanted to let you know,
Ian &Stu
Please Log in or Create an account to join the conversation.
Is there any way to do the same logic with categories (not products)? I need to create A-Z index filter for categories listing.
Managed to create category table with first letter category name values, but cant apply filter to this view. This available only for products custom views tables.
Thank you in advance.
Regards,
Arunas
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
1. Create the custom view and field (as you have done) for the letter
2. Populate the categories or products with their Alpha code
3. Create a custom filter for use on the front end
4. I can't remember if a module needs to be activated thereafter or if this happens automatically
We decided that our catalogue was too big for this to be of any use and went with category based menu systems and predictive text searching.
Regards,
Ian and Stu
Please Log in or Create an account to join the conversation.
But when I create category custom view, I can't apply this on filter - only products table custom views available.
With product custom table of course filter not working - tried hoping that it will work somehow
Thanks,
Arunas
Please Log in or Create an account to join the conversation.
There is no filter feature for categories listings, only for products listings.
Please Log in or Create an account to join the conversation.
- smithshop123
-
Topic Author
- Offline
- Posts: 212
- Thank you received: 17
you can use the menu system to create and A-Z manually. It's better to just use the top level categories but you can include lower level sub-categories starting with the same letter. In this example I've included both 'B > BABY' AND 'B > BOTTLE' but you can make it as complex as you like.
bmcpharm.com.au/a-z-index.html
If you categories don't change that much, it's a good option. If you come up with something slicker let me know.
Cheers,
Ian and Stu
Please Log in or Create an account to join the conversation.