Author |
Topic  |
|
Sharon
VP-CART Super User
 
357 Posts |
Posted - August 13 2014 : 11:01:14
|
Extract from VPASP_700_User_Manual Xtitle Change this to be the title you wish to display when there is no dynamic title available. The default is VP-ASP Shopping Cart
I have Xdynamictitle set to Yes I have Xtitle set to display "Impact Test Equipment for civil engineering materials testing equipment" when there is no dynamic title available.
However, my page titles seem to consist of both
For example <title>Impact Test Equipment for civil engineering materials testing equipment - Air Entrainment Meter Type A</title>
The portion before the hyphen being the text entered in Xtitle & the portion after the hyphen being the content of the cname field.
I thought that the cname field should be my dynamic title & Xtitle would only be shown where there is no entry in cname.
Have I got it wrong?
|
|
g3nnin
VP-CART Super User
 
209 Posts |
Posted - August 15 2014 : 17:56:43
|
Hi,
By default, both xtitle and cname will be displayed on your product pages. If you would like to change on how the title is displayed, you could modify shopheaders.asp file.
Hope this helps! |
 |
|
Sharon
VP-CART Super User
 
357 Posts |
Posted - August 18 2014 : 04:56:54
|
Thanks g3nnin. I was rather hoping that it would work as the manual says it should. |
 |
|
g3nnin
VP-CART Super User
 
209 Posts |
Posted - August 18 2014 : 16:10:22
|
Hi,
To change how the dynamic title displayed, please modify the following code in shopheaders.asp. The code needed to change should be located under SetupdynamicProduct routine:
if trim(bccategoryname) <> "" then SetSess "Dynamictitle",GetConfig("xtitle") & " - " & bccategoryname & " - " & tempname else SetSess "Dynamictitle",GetConfig("xtitle") & " - " & tempname end if
Change it to this code:
if isnull(rs("cname")) = true then SetSess "Dynamictitle",GetConfig("xtitle") else if trim(bccategoryname) <> "" then SetSess "Dynamictitle",GetConfig("xtitle") & " - " & bccategoryname & " - " & tempname else SetSess "Dynamictitle",GetConfig("xtitle") & " - " & tempname end if end if
Hope this helps! |
 |
|
Sharon
VP-CART Super User
 
357 Posts |
Posted - August 20 2014 : 03:40:04
|
Thanks G3nnan. I might well give that a try. I wouldn''t have have know how to on my own. |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
Posted - August 26 2014 : 09:09:37
|
quote: Originally posted by g3nnin
Hi,
To change how the dynamic title displayed, please modify the following code in shopheaders.asp. The code needed to change should be located under SetupdynamicProduct routine:
if trim(bccategoryname) <> "" then SetSess "Dynamictitle",GetConfig("xtitle") & " - " & bccategoryname & " - " & tempname else SetSess "Dynamictitle",GetConfig("xtitle") & " - " & tempname end if
Change it to this code:
if isnull(rs("cname")) = true then SetSess "Dynamictitle",GetConfig("xtitle") else if trim(bccategoryname) <> "" then SetSess "Dynamictitle",GetConfig("xtitle") & " - " & bccategoryname & " - " & tempname else SetSess "Dynamictitle",GetConfig("xtitle") & " - " & tempname end if end if
Hope this helps!
hi,
what''s the differences with the default?
*serj* |
 |
|
g3nnin
VP-CART Super User
 
209 Posts |
Posted - September 11 2014 : 20:11:59
|
Hi,
It would display the xtitle if there is no cname in the product page.
Hope this helps! |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
Posted - September 15 2014 : 06:28:50
|
nice tips g3nnin!thanks!
*serj* |
 |
|
|
Topic  |
|