Either offers review or aggregaterating should be specified là gì năm 2024

Hello. I finally found how to make those errors disappear from Google Search Console in Niara. I found how to do it from community theme, from github:

//github.com/thirtybees/community-theme-default/blob/1.1.x/product-list-item.tpl

So, edit /themes/niara/product-list-item.tpl

In line 126 put:

            
line 130:

                    
                    
And finally close the
tag in line 150:

I'm not sure if it's perfect, but google now finds 'offers' and 'price' under categories lists.

Here is all that part of product-list-item.tpl with number lines:

            {if [!$PS_CATALOG_MODE AND [[isset[$product.show_price] && $product.show_price] || [isset[$product.available_for_order] && $product.available_for_order]]]}
            
{if isset[$product.show_price] && $product.show_price && !isset[$restricted_country_mode]} {hook h="displayProductPriceBlock" product=$product type='before_price'} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if $product.price_without_reduction > 0 && isset[$product.specific_prices] && $product.specific_prices && isset[$product.specific_prices.reduction] && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} {displayWtPrice p=$product.price_without_reduction} {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {if $product.specific_prices.reduction_type == 'percentage'} -{$product.specific_prices.reduction * 100} % {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if}
{/if}
Hope it's useful.

I found some forum's threads saying that there is no need to use rich content in product listing, I don't know if it's better or not having it.

Chủ Đề