Hi,
I am on OC 2.2. the option texts are cut off(turncated) in confirmation emails so I have to login to admin to check again. Please advise. Thank you.
I am on OC 2.2. the option texts are cut off(turncated) in confirmation emails so I have to login to admin to check again. Please advise. Thank you.
For demonstration purposes, in your catalog/model/checkout/order.php file,
find:
replace with:
Then, find twice:
replace both instances with:
This should resolved the truncated text to be full text in the next order confirmation bills. Not previous ones, though.
find:
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
Code: Select all
'value' => $value
Code: Select all
$text .= chr(9) . '-' . $option['name'] . ' ' . (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value) . "\n";
Code: Select all
$text .= chr(9) . '-' . $option['name'] . ' ' . $value . "\n";
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
check here for such:
http://www.opencart.com/index.php?route ... ion%20Text
there is only one free Extension on the Board, but it's only for OC v.1.5.6.x:
http://www.opencart.com/index.php?route ... n_id=13125
and check on this one, it may suit your needs:
http://www.opencart.com/index.php?route ... n_id=19655
Good Luck!
Ernie
http://www.opencart.com/index.php?route ... ion%20Text
there is only one free Extension on the Board, but it's only for OC v.1.5.6.x:
http://www.opencart.com/index.php?route ... n_id=13125
and check on this one, it may suit your needs:
http://www.opencart.com/index.php?route ... n_id=19655
Good Luck!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
- The first link points to inaccurate subjects.IP_CAM wrote:check here for such:
http://www.opencart.com/index.php?route ... ion%20Text
there is only one free Extension on the Board, but it's only for OC v.1.5.6.x:
http://www.opencart.com/index.php?route ... n_id=13125
and check on this one, it may suit your needs:
http://www.opencart.com/index.php?route ... n_id=19655
Good Luck!
Ernie
- The second post links to an invalid contribution link or no longer active.
- The third link does not demonstrate any facts from the XML or TXT files which indicates the removal of the truncated functions.
while my solution above not only provides an accurate solution but also FREE as demonstration purposes and explained on my previous post as such. The third link also does NOT demonstrate the use for OC v2.2 release.
Edit: The 2nd link has now been restored by the developer who handles that particular extension.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Sorry, but all my links work swell, but I did not see your posting, before I replied to, I should have been reloading the page first. Will never happen again , I promise ..., next time, I'll wait for a day first...
Ernie
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Does anyone know how to do this on OC 3? Because code below isn't in this file catalog/model/checkout/order.php in OC 3
NEVER MIND in OC3 I found the above code in: catalog/controller/mail/order.php if anyone needs this in the future
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
~ OC 3.0.3.2 and OCmods only ~
Who is online
Users browsing this forum: No registered users and 162 guests