Jump to content

Full Title on Latest Products?


Dirty Butter

Recommended Posts

  • 2 months later...

Hello,

Bloody hard to find, but there is a line in classes/cubecart.class.php that arbitrarily truncates the title. In version 5.0.7 it is line 114, and it looks like this:

$product['name'] = (strlen($product['name'])>42) ? substr($product['name'],0,38).'…' : $product['name'];

I commented it out and suddenly I had the full titles. You may need to alter the stylesheet that controls the product box height if you have extremely long product titles, to ensure they will fit cleanly.

Link to comment
Share on other sites

Hello,

Bloody hard to find, but there is a line in classes/cubecart.class.php that arbitrarily truncates the title. In version 5.0.7 it is line 114, and it looks like this:

$product['name'] = (strlen($product['name'])>42) ? substr($product['name'],0,38).'…' : $product['name'];

I commented it out and suddenly I had the full titles. You may need to alter the stylesheet that controls the product box height if you have extremely long product titles, to ensure they will fit cleanly.

Thanks, CBGitty! That helped a lot. I added a bit to the height in div.latest_product of common.css and an extra <br/> after the title in content.homepage.php, and it has the full title now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...