Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 cname in admin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gledav
VP-CART New User

Australia
66 Posts

Posted - October 29 2008 :  19:42:46  Show Profile  Visit gledav's Homepage  Reply with Quote
Does anyone know how to alter the number of characters the cname field displays in view/edit products in admin? The default seems to be about 26 characters followed by a few dots but I need to be able to display more characters in order to differentiate between similarly named products.

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - October 30 2008 :  05:19:39  Show Profile  Reply with Quote
Hi,

the display is formatted in shopa_editdisplay.asp.
Open the file in a text or html editor
At around line 375 look for:

else
if len(rstemp(ArrayFields(i))) > 28 then
tempText = RemoveHtmlFileio(rstemp(ArrayFields(i)),"<br />")
response.write ReportDetailColumn & left(tempText, 26) & "..." & ReportDetailColumnEnd


This basically says that if the number of characters in a field is more than 28 then limit the display to 26, plus ...

You can alter the > 28 to perhaps 50 and have the display limit to 48 plus ...

Hope this helps,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

gledav
VP-CART New User

Australia
66 Posts

Posted - October 30 2008 :  19:48:27  Show Profile  Visit gledav's Homepage  Reply with Quote
Thanks Carrol. Fantastic.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00