Jump to content

Edit History

Peter Liska

Peter Liska

18 hours ago, Michi001 said:

Maybe can you help me where i need to place the Code in the product-listgrid.tpl to solve the warnings?

That is a lot of problems.

1.) itemprop="image

You can get inspiration from here: product-cover-thumbnails.tpl

        <img
          class="js-qv-product-cover"
          src="{$product.default_image.bySize.large_default.url}"
          {if !empty($product.default_image.legend)}
            alt="{$product.default_image.legend}"
            title="{$product.default_image.legend}"
          {else}
            alt="{$product.name}"
          {/if}
          style="width:100%;"
          itemprop="image"
          loading="lazy"
        >

2.) itemprop="description

You can get inspiration from here: product.tpl

{block name='product_description_short'}
  <div id="product-description-short-{$product.id}" class="product-description" itemprop="description">{$product.description_short nofilter}</div>
{/block}

Rest you have to try find or try to figure it out by yourself.

Good luck!

Product schema: product Offer schema: offer

Peter Liska

Peter Liska

44 minutes ago, Michi001 said:

Maybe can you help me where i need to place the Code in the product-listgrid.tpl to solve the warnings?

That is a lot of problems.

1.) itemprop="image

You can get inspiration from here: product-cover-thumbnails.tpl

        <img
          class="js-qv-product-cover"
          src="{$product.default_image.bySize.large_default.url}"
          {if !empty($product.default_image.legend)}
            alt="{$product.default_image.legend}"
            title="{$product.default_image.legend}"
          {else}
            alt="{$product.name}"
          {/if}
          style="width:100%;"
          itemprop="image"
          loading="lazy"
        >

2.) itemprop="description

You can get inspiration from here: product.tpl

{block name='product_description_short'}
  <div id="product-description-short-{$product.id}" class="product-description" itemprop="description">{$product.description_short nofilter}</div>
{/block}

Rest you have to try find or try to figure it out by yourself. Product schema: product Offer schema: offer

Good luck!

Peter Liska

Peter Liska

28 minutes ago, Michi001 said:

Maybe can you help me where i need to place the Code in the product-listgrid.tpl to solve the warnings?

That is a lot of problems.

1.) itemprop="image

You can get inspiration from here: https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl

        <img
          class="js-qv-product-cover"
          src="{$product.default_image.bySize.large_default.url}"
          {if !empty($product.default_image.legend)}
            alt="{$product.default_image.legend}"
            title="{$product.default_image.legend}"
          {else}
            alt="{$product.name}"
          {/if}
          style="width:100%;"
          itemprop="image"
          loading="lazy"
        >

2.) itemprop="descritpion

You can get inspiration from here: https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/templates/catalog/product.tpl

{block name='product_description_short'}
  <div id="product-description-short-{$product.id}" class="product-description" itemprop="description">{$product.description_short nofilter}</div>
{/block}

Rest you have to try find or try to figure it out by yourself. Product schema: https://schema.org/Product Offer schema: https://schema.org/Offer

Good luck!

×
×
  • Create New...