Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-ASP 7.0 Questions
 Dynamic Page Title
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sharon
VP-CART Super User

357 Posts

Posted - August 13 2014 :  11:01:14  Show Profile  Visit Sharon's Homepage  Reply with Quote
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  Show Profile  Reply with Quote
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!
Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - August 18 2014 :  04:56:54  Show Profile  Visit Sharon's Homepage  Reply with Quote
Thanks g3nnin.
I was rather hoping that it would work as the manual says it should.
Go to Top of Page

g3nnin
VP-CART Super User

209 Posts

Posted - August 18 2014 :  16:10:22  Show Profile  Reply with Quote
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!
Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - August 20 2014 :  03:40:04  Show Profile  Visit Sharon's Homepage  Reply with Quote
Thanks G3nnan. I might well give that a try. I wouldn''t have have know how to on my own.
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - August 26 2014 :  09:09:37  Show Profile  Visit serjtankian's Homepage  Reply with Quote
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*
Go to Top of Page

g3nnin
VP-CART Super User

209 Posts

Posted - September 11 2014 :  20:11:59  Show Profile  Reply with Quote
Hi,

It would display the xtitle if there is no cname in the product page.


Hope this helps!
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - September 15 2014 :  06:28:50  Show Profile  Visit serjtankian's Homepage  Reply with Quote
nice tips g3nnin!thanks!






*serj*
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