Jump to content

Edit History

Darkenos

Darkenos

@krzysiuusSprawdziłem i mam w swoich plikach product-prices.tpl dodana schema od offers jednak mimo wszystko nie działa 😕

W bloku product.prices mam odwołanie

  {block name='product_prices'}
            {include file='catalog/_partials/product-prices.tpl'}
          {/block}

 

a w product-prices.tpl jest dodana schema.

    {block name='product_price'}
      <div
        class="product-price h5 {if $product.has_discount}has-discount{/if}"
        itemprop="offers"
        itemscope
        itemtype="https://schema.org/Offer"
      >
        <link itemprop="availability" href="https://schema.org/InStock"/>
        <meta itemprop="priceCurrency" content="{$currency.iso_code}">

        <div class="current-price">
          <span itemprop="price" content="{$product.price_amount}">{$product.price}</span>

          {if $product.has_discount}
            {if $product.discount_type === 'percentage'}
              <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
            {else}
              <span class="discount discount-amount">
                  {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
              </span>
            {/if}
          {/if}
        </div>

        {block name='product_unit_price'}
          {if $displayUnitPrice}
            <p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p>
          {/if}
        {/block}
      </div>
    {/block}

 

Jak patrzę jednak w logi google no to niestety nie widać itemprop ="offers".

Dorzucam logi i product.tpl i product-prices.tpl

 

Jeśli chodzi o opinie to nie chce zbierać informacji dodawac w tym momencie.

logi google.txt product.tpl product-prices.tpl

Darkenos

Darkenos

@krzysiuusSprawdziłem i mam w swoich plikach product-prices.tpl dodana schema od offers jednak mimo wszystko nie działa 😕

W bloku product.prices mam odwołanie

  {block name='product_prices'}
            {include file='catalog/_partials/product-prices.tpl'}
          {/block}

 

a w product-prices.tpl jest dodana schema.

    {block name='product_price'}
      <div
        class="product-price h5 {if $product.has_discount}has-discount{/if}"
        itemprop="offers"
        itemscope
        itemtype="https://schema.org/Offer"
      >
        <link itemprop="availability" href="https://schema.org/InStock"/>
        <meta itemprop="priceCurrency" content="{$currency.iso_code}">

        <div class="current-price">
          <span itemprop="price" content="{$product.price_amount}">{$product.price}</span>

          {if $product.has_discount}
            {if $product.discount_type === 'percentage'}
              <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
            {else}
              <span class="discount discount-amount">
                  {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}
              </span>
            {/if}
          {/if}
        </div>

        {block name='product_unit_price'}
          {if $displayUnitPrice}
            <p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p>
          {/if}
        {/block}
      </div>
    {/block}

 

Jak patrzę jednak w logi google no to niestety nie widać itemprop ="offers".

Dorzucam logi i product.tpl i product-prices.tpl

logi google.txt product.tpl product-prices.tpl

×
×
  • Create New...