I need reduce products title length in case the name in one line, I changed product_name value TEXT in the database, but nothing happened. I have searched around, and followed some suggestions, but still cannot change product title length. Please help, many thanks.
do it programatically with php in the display templates
Can you please tell me what's code I need add, many thanks.
there is already a VM function limitStringByWord() in the FE helper
call it something like echo shopFunctionsF::limitStringByWord ($product->product_title, 4, ' ...') ;
or write your own -- there are plenty on Google
or do by css if your titles are fixed width
add a class truncate and
.truncate {
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Thank you so much GJC