Uploaded image for project: 'PrestaShop 1.7'
  1. PrestaShop 1.7
  2. BOOM-3371

catalog miniature product.tpl - unclosed div with product thumb

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0.0, 1.7.0.1, 1.7.0.2, 1.7.0.3, 1.7.0.4, 1.7.0.5, 1.7.0.6, 1.7.1.0, 1.7.1.1, 1.7.1.2
    • Fix Version/s: 1.7.2.1
    • Component/s: None
    • Labels:
      None
    • How to reproduce the issue ?:
      Analyse the code of the product.tpl miniature or just open the page in web browser and analyse the page source. Each thumbnail is inside unclosed div.
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      file with bad code: themes/classic/templates/catalog/_partials/miniatures/product.tpl
      There is a div "thumbnail-container" - it is unclosed. Each instance of product on list of products generates one unclosed div. This distorts the theme.

      code:

      <div class="thumbnail-container">

      Unknown macro: {block name='product_thumbnail'}

      <a href="{$product.url}" class="thumbnail product-thumbnail">
      <img
      src = "{$product.cover.bySize.home_default.url}"
      alt = "{$product.cover.legend}"
      data-full-size-image-url = "{$product.cover.large.url}"
      >
      </a>

      Unknown macro: {/block}

      online html validator reports this problem too:
      https://validator.w3.org/nu/?doc=http%3A%2F%2Ffo.demo.prestashop.com%2Fen%2F

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xborderie Xavier Borderie
                Reporter:
                vekia Milos Myszczuk
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: