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-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 use something else for meta description
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

143 Posts

Posted - October 04 2006 :  21:26:05  Show Profile  Reply with Quote
Is there an easy way to have anther field populate the meta description, or meta keyword field then the ones defined by VPASP 6.0.
For example the catmemo field from the category information populates the meta description for shopdisplayproducts.asp page.
I would rather have another field be used for that since my catmemo fields are usually very brief.
Could you simply insert in this line of code:
meta name="description" content="%shopdynamictitle "description"%>">
[cname] and have that the name included in the meta description.
If so where would you insert it or would it do you no good.
Hopefully, someone got to enjoy reading this and yes I'm not a programmer at all. You know what they say, nothing ventured nothing gained.
Thanks for all your help


4286 Posts

Posted - October 05 2006 :  20:56:18  Show Profile  Visit support's Homepage  Reply with Quote
Dear Dwight,

The dynamic meta tags are set up in the file shopheaders.asp.

By default the dynamic titles, descriptions and keywords are set up using the fields as follows:

For product pages: (using fields from PRODUCTS table)

Title: uses the "cname" field
Description: uses the "cdescription" field
Keywords: uses the "keywords" field

For category pages: (using fields from CATEGORIES table)

Title: uses the "catdescription" field
Description: uses the "catmemo" field
Keywords: uses the "catdescription" field

For content pages: (using fields from CONTENT table)

Title: uses the "message" field
Description: uses the "message2" field
Keywords: uses the "other1" field

To modify these to use different fields you will need to modify shopheaders.asp.

For product pages - modify lines as follows: (using fields from PRODUCTS table)

Title (line 131): tempname=rs("cname")
Description (line 135): tempdesc=rs("cdescription")
Keywords (line 141): tempkeywords=rs("keywords")

For category pages modify lines 110-112: (using fields from CATEGORIES table)

setsess "Dynamictitle",Removehtmlheaders(rs("catdescription"), "<br>")
setsess "Dynamicdescription",Removehtmlheaders(rs("catmemo"), "<br>")
setsess "Dynamickeywords",Removehtmlheaders(rs("catdescription"), "<br>")

For content pages - modify lines as follows: (using fields from CONTENT table)

Title (line 174): tempname=rs("message")
Description (line 178): tempdesc=rs("message2")
Keywords (line 182): tempkeywords=rs("other1")

Hope this helps!

Thank you

Go to Top of Page

VP-ASP New User

United Kingdom
131 Posts

Posted - October 06 2006 :  04:28:41  Show Profile  Visit jmccann's Homepage  Reply with Quote
Hi Dwight,

Just to add my experineces....

I've followed these susggestions and now can have unique Meta Tag entries for each product and category page.

I would also add that I've changed the default field displays in the Product and Category maintenance scripts to identify which fields I should be using.

jim mccann

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000