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
 Line break in shopaddtocart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

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

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.




4262 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 & " - "
nameincart=nameincart & " <br> "
end if
end if


Dean Vosko
VP-ASP Support
Go to Top of Page

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

Starting Member

30 Posts

Posted - November 30 2006 :  04:22:39  Show Profile  Reply with Quote

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,
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000