Hi,
I have searched around several places to get the new custom field on product list and home featured page, but in vain. I used this http://nemops.com/prestashop-products-new-tabs-fields/ tutorial to create this field in database and back office. Also, I did receive the expected value for the field in product detail page (Front end) using below code;
product.php
added below one liner under class ProductCore extends ObjectModel
public $custom_field;
product.tpl
<p class="custom_field">
<a href="{$product->custom_field|escape:'htmlall':'UTF-8'}">My Field</a> </p>
In order to make use of this field in product listing, I tried the below code in product-list.tpl, but the custom field is blank, though it holds value in database and works very well in product detail page. This code did not work in homefeatured.tpl as well.
<p class="custom_field">
<a href="{$product.custom_field|escape:'htmlall':'UTF-8'}">My Field</a> </p>
I know I am missing something here. Can someone shed light on this please?