Edited to add: Finally came across a solution that seems to work (at least for me) in all places. I have now replaced all
Code: Select all
(utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
in the list of files above with
(Instructions provided via:
http://forum.opencart.com/viewtopic.php ... 55#p305096).
I just placed a dummy order and checked for my extended info and options in all areas (including confirmation email), and everything's there. Just thought I should update this post to say so in case anyone's still as frustrated as I am. Or was.
(Previous post left intact below)
-----
Daniel, I can kind of understand why you've set it up to behave like this; however, with all due respect, I personally don't care if my invoice looks "bad"... I want my customers to be able to review the custom text and details they sent through to me so they can pick up on any errors! It seems very rude (and a little counterproductive) to hide this information from customers for the sake of aesthetics. I'm a graphic designer so I most definitely care about aesthetics, but function is also super important (and possibly more so in this case!).
I've spent hours now trying to get workarounds working, and I'm just hit with "undefined index: option_value" errors on the customer order page, as well as blank fields for all options on this page (and in the confirmation email). Fortunately, mini cart, cart, and confirmation pages work perfectly though (if without line breaks, but I can deal with that if that's as bad as it gets), so thank you parkook (and others who I know have posted in other threads) for that information!
As for the others: I'm absolutely devastated to have come this far in the setting up of my shop only to discover this huge obstacle right at the finish line. I'm not great with php so this has been a tiring journey getting my head around the coding.
I'd really appreciate any assistance from you, Daniel, or anyone else who has had success updating those files listed by parkookk using the
Code: Select all
(wordwrap($option['option_value'],200, "<br />"))
line in place of
Code: Select all
(utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
. I've done everything perfectly but I can't get it working correctly. What could I possibly be doing wrong?
I've adjusted the "200" value down to 20 (didn't think that would help--and it didn't!). I've edited all the required files using a careful search and replace to ensure I don't make any typos. I'm using v. 1.5.4.1. I am using the default theme that I've made a lot of adjustments to, but they've been predominantly css and aesthetic alterations, so I don't think that's going to have done anything. Help please?
Thanks in advance.
Laura