Author |
Topic |
|
rrold1
Starting Member
48 Posts |
Posted - March 21 2006 : 11:33:17
|
I though I knew my way around this cart pretty well but this one has me stumped.
I want to remove a line break in the description cell and replace it with a dash. I have the item number, name and description displayed. The first two could definately fit on the first line.
So instead of
2345434 Handle Assembly Handle Assembly for Model 5
I want to do: 2345434 - Handle Assembly (possibly bold font) Handle Assembly for Model 5
I can't seem to find the place in code where the current line break tags are inserted.
Thanks
Steve |
|
support
Administrator
4679 Posts |
Posted - March 22 2006 : 20:10:16
|
Dear Steve,
To achieve this functionality you will need to edit your shopproductsubs.asp file.
Please locate approximately line 56 and 57
fieldvalue=translatelanguage(dbc, "products", "cname","catalogid", tempcatalogid, fieldvalue) end if
and add below this line
If lcase(cartfields(i))="ccode" then fieldvalue=translatelanguage(dbc, "products", "ccode","catalogid", tempcatalogid, fieldvalue) end if
also locate approximately line 59
if not isnull(fieldvalue) then if nameincart<>"" then nameincart=nameincart & "<br>" end if nameincart=nameincart & fieldvalue end if
and replace this with
if not isnull(fieldvalue) then
nameincart=nameincart & fieldvalue if cartfields(i) = "ccode" then nameincart=nameincart & " - " else nameincart=nameincart & " <br> " end if end if
Regards
Dean Vosko VP-ASP Support |
|
|
rrold1
Starting Member
48 Posts |
Posted - March 27 2006 : 16:33:54
|
As always, another right on the mark VPASP support response. I think that this small touch really improves the appearance.
Thank you very much! |
|
|
tri-line
Starting Member
Denmark
30 Posts |
Posted - November 30 2006 : 04:22:39
|
Hello,
Thanks! I also used this code, but would like the item no. and the product name to be in bold. Then the important info will stand out from the rest. Have'nt been able to figure out where to put the <b> tags just for that. Anything I try seems to make everything in bold, also the product description. Best regards, Kjeld |
|
|
|
Topic |
|