Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Line break in shopaddtocart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rrold1
Starting Member

48 Posts

Posted - March 21 2006 :  11:33:17  Show Profile  Reply with Quote
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  Show Profile  Visit support's Homepage  Reply with Quote
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
Go to Top of Page

rrold1
Starting Member

48 Posts

Posted - March 27 2006 :  16:33:54  Show Profile  Reply with Quote
As always, another right on the mark VPASP support response. I think that this small touch really improves the appearance.

Thank you very much!
Go to Top of Page

tri-line
Starting Member

Denmark
30 Posts

Posted - November 30 2006 :  04:22:39  Show Profile  Reply with Quote
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
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