Hi All,
I want to use the ability to select Checkbox Options for products. My problem is that the options text (under product name) is cut short in the shopping cart, order confirmation and confirmation mail. Just part of the text is visible. Can I make the text field longer and if so, how do I do that. Can you display the text in more than one line if on line (at max length) is too short?
Looking forward to your reply...
I want to use the ability to select Checkbox Options for products. My problem is that the options text (under product name) is cut short in the shopping cart, order confirmation and confirmation mail. Just part of the text is visible. Can I make the text field longer and if so, how do I do that. Can you display the text in more than one line if on line (at max length) is too short?
Looking forward to your reply...
You can work with wordrap() PHP function
For example at catalog/controller/checkout/cart.php
At line 408 replace
with
Best,
Hilde
For example at catalog/controller/checkout/cart.php
At line 408 replace
Code: Select all
'value' => (strlen($option['option_value']) > 20 ? substr($option['option_value'], 0, 20) . '..' : $option['option_value'])
Code: Select all
'value' => (wordwrap($option['option_value'],30, "<br />"))
Hilde
Commercial Contributions:Bulk Specials| Bulk Update Prices|Search Tyre Pro
Free Contributions: Youtube video (oc 1.5.x) | Search History Report (oc 1.5.x) | Product Filter by Category (oc 1.5.x)|Youtube Popup
More Free & commercial mods: www.fpress.com
I seem to be having the same problem but I'm using Opencart Version 1.5.2.1
The example code above doesn't appear for me, but I think I found the similar code below and I'm wondering if I can just change the 20 to a higher number as long as I don't go too high since it appears that only 20 characters are being shown (if I'm counting correctly lol)
or if I can't increase that number what are my options to prevent the Option text from getting cut off in the cart and in order confirmation emails?
Here's the code I'm looking to edit:
The example code above doesn't appear for me, but I think I found the similar code below and I'm wondering if I can just change the 20 to a higher number as long as I don't go too high since it appears that only 20 characters are being shown (if I'm counting correctly lol)
or if I can't increase that number what are my options to prevent the Option text from getting cut off in the cart and in order confirmation emails?
Here's the code I'm looking to edit:
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
);
For Version 1.5.4.x follow the directions above but the line to edit is now 215. Works in the Shoppica2 theme as well.
Professional Robotics Repair Center
Specializing in Roomba, Scooba, and Neato Robot Parts and Repair
http://www.iFixRobot.com
catalog/model/checkout/checkout.phponlymlove wrote:I got it to work for my cart. but which file do i need to edit to make it work for my email confirmations?
Hi.
This vQMod should do the trick for 1.5.4.1
Shows entire option value in:
Cart
Checkout
View order
Order confirm e-mail
Regards
Thomas
This vQMod should do the trick for 1.5.4.1
Shows entire option value in:
Cart
Checkout
View order
Order confirm e-mail
Regards
Thomas
I just wanted to add to the thread that if you don't want the text to get cut off in the PayPal page after someone checks out using PayPal Standard, then in catalog/controller/extension/payment/pp_standard.php you can edit the same line and in my case I just replaced the line with and it works. However, does anyone know if PayPal has a limit to how many characters get passed in an option value field? I recall reading somewhere that if you have too many characters in a field, then the transaction won't go through. Anyone know anything about this?
Code: Select all
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
Code: Select all
'value' => $value
Who is online
Users browsing this forum: No registered users and 5 guests