VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

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

VP-ASP New User

63 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.

VP-ASP Expert

United Kingdom
948 Posts

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

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

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,

Go to Top of Page

VP-ASP New User

63 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