The problem is that the code retry a list of the vendors in alphabetical order, but when i try to change it to get the products title i get an error. I guess that I ain’t doing it correctly. Has anyone a solution for this?
You need to switch things up a bit, in order to accommodate products, instead of vendors. Mainly, you need to loop through all of your store’s products, kind of like this:
Now, this will only work if the number of products on your store are less than the pagination limit. Otherwise you’d need to paginate the results, which would mean that you’d also need to alter your letter index snippet as well.
{% for tag in collection.all_tags %}
{% if tag contains ’ ’ %}
Could you provide a code like this for the product tags, not vendor tags under the alphabet letter with no bullet points listed in a paragraph format? Thanks