There is a catalog with the goods. Each product has an additional text field ( tv ), which should be displayed in the catalog.

The output in the directory looks like this:

 <li>[[!pdoPage? &parents=`[[*id]]` &ajaxMode=`default` &limit=`16` &element=`msProducts` &tpl=`tpl.productsListItem` ]]</li> 

Respectively in tpl.productsListItem :

 <div class="list_products_img"> <a href="[[~[[+id]]]]"><img src="[[!phpthumbon? &input=`[[+image]]` &options=`w=200&h=203&zc=1`]]" alt=""></a> </div> <div class="list_products_name"> [[+product]] </div> 

The field displays, but 0 displayed instead of the text value of the product field. How to fix?

    1 answer 1

    add &includeTVs=`product`