Alphabet Selector Menu

  • Posts: 1
  • Thank you received: 0
3 years 3 weeks ago #339562

Is it possible to have an alphabet menu selector for products? I am planning on a catalog only configuration and would like the customer to select a group of products by first letter of the products name (perennial plants). A horizontal menu with a - z that when clicked will bring up those products whose name begins with that letter.

There will be over 500 plant listings so being able to select by 1st letter would be a needed.

The current site is running an old version of Virtuemart with an alpha selector add on.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 3 weeks ago #339563

Hi,

You could create a custom product field with a single dropdown with the 26 letters so that you could select the letter in each product. And then you could create a list filter on that custom field to get such a selector on the products listing.
And finally, you could have a mass action to automatically fill the custom product field based on the product name. You could do that with an action "update the values" on the column of the custom field with the mode "operation" and the code:

upper(left(product.product_name, 1))
That way, when you run the mass action, it would automatically get the first letter, uppercase it and store it in the custom field.
And you could add a trigger "after a product is created" and another one "after a product is updated" to the mass action so that it would run the mass action automatically for you when you create/update products.

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum