Post by quocbinhvip » Sun Oct 30, 2011 10:16 pm

Please help me!
I want to display a short name for these products such long names is displayed: ADMIN Show ... instead of: ADMIN CATEGORY Show in Category Edit

Attachments

shost name product.png

shost name product.png (24.46 KiB) Viewed 639 times


https://quocbinhvip.blogspot.com
https://sites.google.com/site/qbinh68/
https://sites.google.com/site/qbinh68/t ... t/opencart


New member

Posts

Joined
Sun Mar 20, 2011 3:58 pm

Post by Jeremy Fisk » Mon Oct 31, 2011 4:56 pm

I don't know what version of opencart you are using or which page you are trying to mod... so i wont go into any to in depth thinking...

but of the top of my head, this might be your answer...

Go to your corrosponding controller .php and find a line simmilar to the below:

Code: Select all

'name'    => $result['name'],
and change it to

Code: Select all

'name'    => (substr(html_entity_decode($result['name']),0,100000))."...",
Good luck

Jem

If i have helped... please click here to donate

Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover


User avatar
Active Member

Posts

Joined
Thu Nov 11, 2010 6:11 pm
Location - New Zealand (Tokomaru, Palmerston North)

Post by quocbinhvip » Sun Dec 04, 2011 12:22 pm

thank you very much. but I want only the name is too long new product cut short such a short name for raw products. do not know to do that I have to modify how?

https://quocbinhvip.blogspot.com
https://sites.google.com/site/qbinh68/
https://sites.google.com/site/qbinh68/t ... t/opencart


New member

Posts

Joined
Sun Mar 20, 2011 3:58 pm
Who is online

Users browsing this forum: No registered users and 12 guests