Post by cartgirl » Tue Aug 11, 2020 8:20 pm

v OC 3.0.3.6)

When viewing the shopping cart: The character limit for options is getting cut-off at about 72 characters.

1). How do I extend this limit to unlimited (or at least longer)?

2). Email invoice options text is also getting cut off.

See screenshot.

TIA!

Attachments

Screen Shot 2020-08-11 at 8.18.01 AM.png

Screen Shot 2020-08-11 at 8.18.01 AM.png (120.98 KiB) Viewed 572 times


Active Member

Posts

Joined
Fri Aug 03, 2012 10:12 pm

Post by IP_CAM » Wed Aug 12, 2020 2:38 am

check in the controller / checkout / Files, to find something like this, and change the value:

Code: Select all

$option_data[] = array(
'name'  => $option['name'],
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value) 
---
Image

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by cartgirl » Thu Aug 13, 2020 2:01 am

Thank you so much for going through the trouble of looking into this. I went ahead and updated the applicable files as listed, but it didn't change anything.
I cleared my cache, tried different browser and even waited a couple of hours.

I changed this:
$option_data[] = array(
'name' => $option['name'],
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)


To this:
$option_data[] = array(
'name' => $option['name'],
'value' => (utf8_strlen($value) > 100 ? utf8_substr($value, 0, 100) . '..' : $value)


Did I miss anything?

Active Member

Posts

Joined
Fri Aug 03, 2012 10:12 pm

Post by ADD Creative » Thu Aug 13, 2020 2:32 am

Did you refresh the modifications cache?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by cartgirl » Thu Aug 13, 2020 2:52 am

THANK YOU! I didn't think to do that, but yes. The final thing that got it working was clearing the modification cache.

Active Member

Posts

Joined
Fri Aug 03, 2012 10:12 pm

Post by jrr » Fri Aug 14, 2020 3:15 am

cartgirl wrote:
Thu Aug 13, 2020 2:52 am
THANK YOU! I didn't think to do that, but yes. The final thing that got it working was clearing the modification cache.
Please add [SOLVED] to your original post's Subject field. Use the Edit pencil...
Thanks!

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm
Who is online

Users browsing this forum: No registered users and 46 guests