Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 Category Page not reflecting Cat Desc and Meta Des
Author « Topic »  

mapspots
Starting Member

Canada
16 Posts

Posted - 03/21/2021 :  18:03:19  
Hi,

I am on 7.3.0
It seems that on the products.asp page, if I inspect page source in chrome, i am not able to see the Category Description (in Title) and Meta Description (in Meta desc) set on the category in admin.asp.

productdetail.asp page is ok, it is reflecting the correct Title and Meta Desc

I recall before I upgraded on 7.2.4 I didnt have this problem.

Please see screenshot.
https://ibb.co/zGjZS9Z
https://ibb.co/rGtCjGZ

Any idea?

thanks
Ivan
www.bogushop.com

dbdave
ECT Moderator

USA
10413 Posts

Posted - 03/21/2021 :  18:33:32  
Hi, you will want to check what you have set in your pages (categories.asp and products.asp) for the title and description tags.
You need to have some code in place for that to work.
The code is usually done in a way so that if nothing is entered into the admin, a logical substitute is used based on the category names.

Setup and examples here - https://www.ecommercetemplates.com/seo/dynamic-title-meta-asp.asp

Check your pages in your html editor to see what you have there.
Post back if you need more help.

Thanks,
David

mapspots
Starting Member

Canada
16 Posts

Posted - 03/22/2021 :  09:07:55  
Thanks for the reply Dave,

I checked productdetail.asp (Good, has the info), against products.asp (missing) and they looked similar. Products.asp has the code from the SEO page you recommended.
https://ibb.co/kgfFpKV

Anything else to check for?

thanks

Ivan

Edited by - mapspots on 03/22/2021 11:09:10

dbdave
ECT Moderator

USA
10413 Posts

Posted - 03/22/2021 :  12:16:37  
Try this - It's what I use...

Categories.asp
<title><%
if pagetitle<>"" then
response.write pagetitle
elseif topsection<>"" then
response.write sectionname & " | " & topsection & " for sale by COMPANY NAME "
else
response.write "SOME GENERIC TITLE THAT WILL SHOW WHEN NOTING ELSE DOES"
end if %></title>
<meta name="Description" content="<%
if sectiondescription<>"" then
response.write replace(sectiondescription,"""",""")
elseif sectionname<>"" then
response.write "Shop " & sectionname & " now. COMPANY NAME has " & sectionname & " in stock at the best price"
else
response.write "Shop our selection of WIDGET products online. You'll find WIDGETS and other items."
end if
%>"/>

Of course you need to replace some of that with your message...

Products.asp
<title><%
if pagetitle<>"" then
response.write pagetitle
else
if topsection<>"" then print topsection & " | "
print sectionname
print " for sale by COMPANY NAME "
end if %></title>
<meta name="Description" content="<% if sectiondescription<>"" then response.write sectiondescription else response.write "Shop WIDGETS for " & sectionname & ". The best deals on " & topsection %>"/>


See if that gets those pages going..
David

mapspots
Starting Member

Canada
16 Posts

Posted - 03/22/2021 :  14:29:07  
Thanks David, I tried your suggestions but same thing. It seems this page doesn't know how to grab the names from the meta areas set in category. Productdetail.asp works fine. My code is identical to the SEO tutorial and I tried your code but same thing.

I am wondering if anyone has 7.3.0 to give it a try? I remember I didnt have this problem is 7.2.4 as this was one of my test cases.

thanks!
Ivan

dbdave
ECT Moderator

USA
10413 Posts

Posted - 03/22/2021 :  18:11:47  
Check to be sure you have the line <!--#include file="vsadmin/inc/metainfo.asp"--> in your pages...
BEFORE the title and description tags.
That will stop it in it's tracks.

As a matter of fact, check all of those include lines.
Let me know if you're still having problems.

Thanks,
David

mapspots
Starting Member

Canada
16 Posts

Posted - 03/22/2021 :  18:23:53  
David thats awesome. This fixed it, i had all those include files but the key was to put the db_conn one and the metainfo ones above the HTML tag suggested by the article.

Appreciate it!

dbdave
ECT Moderator

USA
10413 Posts

Posted - 03/22/2021 :  18:54:16  
Hi Ivan, Glad it's sorted and I'm happy to help.

David
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000