Author |
Topic |
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - January 21 2007 : 12:22:00
|
Hi All,
Im looking to add the Manufacturer 'mfg' to the dynamic product titles that display in the browsers title bar.
I think I have found the code in shopheaders.asp
if not rs.eof then tempname=rs("cname") tempname=translatelanguage(conn, "products", "cname","catalogid", catalogid, tempname) tempname= Removehtmlheaders(tempname, "<br>")
Can anyone help me add the mfg to the above?
Regards,
Mark |
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - February 13 2007 : 19:41:23
|
Im still trying to fathom this out, but not getting very far,
Can anyone PLEASE tell me why this wont display the mfg then the cname in the title of the product page.
sub SetupdynamicProduct ( conn, catalogid) setsess "dynamictitle","" setsess "Dynamicdescription","" setsess "Dynamickeywords","" dim tempmfg,tempname,tempdesc,tempkeywords on error resume next dim sql, rs If getconfig("xdynamictitle")<>"Yes" then exit sub end if sql="select * from products where catalogid=" & catalogid set rs=conn.execute(sql) ' translate logic if not rs.eof then tempmfg=rs("mfg") tempname=rs("cname") tempmfg=translatelanguage(conn, "products", "mfg","catalogid", catalogid, tempmfg) tempname=translatelanguage(conn, "products", "cname","catalogid", catalogid, tempname) tempname= Removehtmlheaders(tempmfg, tempname, "<br>")
Regards,
Mark http://www.fireworkcrazy.com |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - February 13 2007 : 19:48:52
|
try changing:
tempname= Removehtmlheaders(tempmfg, tempname, "<br>")
to:
if (tempmfg<>"" and IsNull(tempmfg)=false) then tempname=Removehtmlheaders(tempmfg&" "&tempname,"<br>") else tempname=Removehtmlheaders(tempname,"<br>") end if
(& is the text-string concatenation/joining command in vbscript)
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
Edited by - devshb on February 13 2007 20:01:32 |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
|
|
Topic |
|