Welcome to /r/HTML. When asking a question, please ensure that you list what you've tried, and provide links to example code (e.g. JSFiddle/JSBin). If you're asking for help with an error, please include the full error message and any context around it. You're unlikely to get any meaningful responses if you do not provide enough information for other users to help.
Your submission should contain the answers to the following questions, at a minimum:
* What is it you're trying to do?
* How far have you got?
* What are you stuck on?
* What have you already tried?
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/HTML) if you have any questions or concerns.*
First of all this is primarily liquid code not html.
Secondly “product.name” is not correct. It is called “product.title”. For displaying the price you would have to add something like
{{ product.price }}
inside of the forloop.
To limit the amount of products shown change {% for product in category.products %} to {% for product in category.products limit: 4 %}
Welcome to /r/HTML. When asking a question, please ensure that you list what you've tried, and provide links to example code (e.g. JSFiddle/JSBin). If you're asking for help with an error, please include the full error message and any context around it. You're unlikely to get any meaningful responses if you do not provide enough information for other users to help. Your submission should contain the answers to the following questions, at a minimum: * What is it you're trying to do? * How far have you got? * What are you stuck on? * What have you already tried? *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/HTML) if you have any questions or concerns.*
First of all this is primarily liquid code not html. Secondly “product.name” is not correct. It is called “product.title”. For displaying the price you would have to add something like
{{ product.price }}
inside of the forloop. To limit the amount of products shown change {% for product in category.products %} to {% for product in category.products limit: 4 %}