Opencart Version 1.5.2.1
Fresh Install
My problem was that the Option Text was being cut off in checkout as well as in the email sent to the customers.
I searched and initially found a similar problem this thread: http://forum.opencart.com/viewtopic.php?f=114&t=50209
I took what I found there and decided to edit the 20 in the code in several php files.
It appears to work but my questions are...
Will my edit be ok or will it cause any problems that you can think of or did I do it the wrong way and I should do what was in the above thread?
Is there a maximum that number should never go above?
Did I miss any files that should have the same edit?
THANKS!
These are the edits I made:
in... catalog > controler > checkout > cart.php
found:
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
Code: Select all
'value' => (utf8_strlen($value) > 100 ? utf8_substr($value, 0, 100) . '..' : $value)
in... catalog > controler > checkout > confirm.php
found:
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
and changed to:
Code: Select all
'value' => (utf8_strlen($value) > 100 ? utf8_substr($value, 0, 100) . '..' : $value)
in... catalog > model > checkout > order.php
found:
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
Code: Select all
'value' => (utf8_strlen($value) > 100 ? utf8_substr($value, 0, 100) . '..' : $value)
found:
Code: Select all
$text .= chr(9) . '-' . $option['name'] . ' ' . (utf8_strlen($option['value']) > 20 ? utf8_substr($option['value'], 0, 20) . '..' : $option['value']) . "\n";
and changed to:
Code: Select all
$text .= chr(9) . '-' . $option['name'] . ' ' . (utf8_strlen($option['value']) > 100 ? utf8_substr($option['value'], 0, 100) . '..' : $option['value']) . "\n";