<div class="product-item-details">
<strong class="product-item-name">
<a title="<?= $block->escapeHtml($item->getName()) ?>"
href="<?= $block->escapeUrl($block->getProductUrl($item)) ?>"
class="product-item-link">
<?= $block->escapeHtml($item->getName()) ?>
</a>
I'm trying to use substr like this
substr($_helper->productAttribute($_product, $_product->getName() , 'name'),0,75)
But my code does not work correctly, it shows a 504 on product page.
Thanks