Invalid block tag on line 95: 'endif', expected 'empty' or 'endfor'. Did you forget to register or load this tag? plz solve this

TemplateSyntaxError at /product/df/ Invalid block tag on line 95: 'endif', expected 'empty' or 'endfor'. Did you forget to register or load this tag?

i got this error when i making a ecommerce app

`


              </div> <!-- col.// -->
              {% if product.size_variant.count %}
              <div class="form-group col-md">
                <label>Select size</label>
                <div class="mt-1">
                  {% for size in product.size_variant.all %}

                  <label class="custom-control custom-radio custom-control-inline">
                    <input type="radio" onclick="get_correct_price('{{size.size_name}}')" name="select_size" {% if
                      selected_size==size.size_name %} checked {% endif %} class="custom-control-input">
                    <div class="custom-control-label">{{size.size_name}}</div>
                  </label>

                  {% endfor %}

`

please solve this problem

Back to Top