Hi, I want to edit my collection-template.liquid section so on my collections pages, the words “LOW STOCK” in red letters appear next to some of the item titles. Right now the item titles are under the image, which is good, but I don’t know how to modify or add to that text at all. Again, I’m using the Simple theme.
It seems like a quick fix that only involves 2 lines of code - I could be wrong about that- if anyone knows what to do, please help.
{% for product in collection.products %}
{% if collection.products.size == 1 %}
{% assign grid_item_width = ‘medium-up–one-third small–one-whole’ %}
{% else %}
{% assign grid_item_width = ‘medium-up–one-third small–one-half’ %}
{% endif %}
{% include ‘product-grid-item’ %}
{% else %}
{% comment %}
Add default products to help with onboarding for collections/all only.
The onboarding styles and products are only loaded if the
store has no products.
{% endcomment %}
{% if shop.products_count == 0 and collection.handle == ‘all’ %}
{% unless onboardingLoaded %}
{% comment %}
Only load onboarding styles if they have not already been loaded.
{% endcomment %}
{% assign onboardingLoaded = true %}
{% endunless %}
{% assign collection_index = 1 %}
{% for i in (1..6) %}
@KetanKumar@AvadaCommerce Do I need to use metafields to implement what I showed in the picture two posts above, maybe? I could be off but that seems the best way to do this. I’ll have to investigate further.
Any of the collections could use this change, but let’s focus on smartphones and I’ll copy and paste from there Don’t forget my picture from above which shows what I’m looking for, any help is super appreciated!