Would someone be able to help me troubleshoot this code for me? I'm trying to display a product feature on the product listing page. I have the same code working on the product details page - but I'm doing something wrong with the include to prevent it to work. Here's my code:
On the product_multicolumns_list.override.tpl file:
{assign var=“name” value=“name_$obj_id”}{$smarty.capture.$name}
{include file="views/products/components/product_features-artist.tpl" product_features=$product.product_features details_page=true}
{assign var="old_price" value="old_price_`$obj_id`"}
{if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price} {/if}
{assign var="price" value="price_`$obj_id`"}
{$smarty.capture.$price}
{assign var="clean_price" value="clean_price_`$obj_id`"}
{$smarty.capture.$clean_price}
{if $capture_buttons}{capture name="buttons"}{/if}
{if $capture_buttons}{/capture}{/if}
```
This is the code on the product_features-artist.tpl page - which works just fine on the product details page.
```php
{foreach from=$product_features item=“feature”}
{if $feature.feature_type != “G”}
{strip}
{if $feature.feature_type == “S” || $feature.feature_type == “E”}
by
{foreach from=$feature.variants item="var"}
{if $var.selected}{$var.variant}{/if}
{/foreach}
{/if}
{/strip}
{/if}
{/foreach}
```
What do I need to change to display this information on the grid list page?
Thanks in advance for anyone's help!