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
Author « Topic »  

jimhuang
Advanced Member

Taiwan
247 Posts

Posted - 04/11/2019 :  23:56:18  
I used search engine friendly URL in product page ONLY such as https://3dlens.com/taiwan/%E9%8F%A1%E7%89%87/
The meta title, description and H1 tag are missing.

Here is my setting in products.php

<title><?php print $pagetitle;?> | 3Dlens®</title>
<meta name="Description" content="<?php print str_replace('"','"',$sectiondescription)?>">
<h1><?php print $pagetitle;?></h1>


Jim

Edited by - jimhuang on 04/11/2019 23:58:15

Andy
ECT Moderator

95440 Posts

Posted - 04/12/2019 :  00:06:55  
Hi Jim

That looks like your main products page so it won't have any information pulled from the section (category) as it is the main products page. Have a look at the advanced settings here to remedy that

https://www.ecommercetemplates.com/seo/dynamic-title-meta-php.asp

Andy

Please feel free to review / rate our software

jimhuang
Advanced Member

Taiwan
247 Posts

Posted - 04/12/2019 :  00:36:18  
Hi Andy

There is no issue on all product page and product detail page.

Before I switch to no extension URL, there is no problem on products.php
Now I use search engine friendly URL without .php, so the issue come out.

Before: products.php (no problem)
After: /#37857;#29255;/ (problem appears)

Andy
ECT Moderator

95440 Posts

Posted - 04/12/2019 :  00:38:15  
On this page https://3dlens.com/taiwan/%E9%8F%A1%E7%89%87/ I see

<title> | 3Dlens®</title>
<meta name="Description" content="">

and that's what I would expect as there is no category to take the section information from, that's why you could use the advanced settings to populate it.

Andy

Please feel free to review / rate our software

jimhuang
Advanced Member

Taiwan
247 Posts

Posted - 04/12/2019 :  01:07:42  
Thanks Andy:

I added following in includes.php (changing the text for your own)

$GLOBALS['sitename']='The name of your site goes here (around 50-60 characters)';
$GLOBALS['allpagestitle']='The page title to appear on the main products.php page (around 50-60 characters)';
$GLOBALS['allpagesdescription']='The page meta description to appear on the main products.php page (around 160 characters max)';

But no luck!

Andy
ECT Moderator

95440 Posts

Posted - 04/12/2019 :  01:10:35  
I don't think you have completed the second part under "Replace the title and meta description tags on products.php with the following" https://www.ecommercetemplates.com/seo/dynamic-title-meta-php.asp

Andy

Please feel free to review / rate our software

jimhuang
Advanced Member

Taiwan
247 Posts

Posted - 04/12/2019 :  01:21:47  
Thanks Andy

title and description have been fixed.

Other issue, the H1 tag is empty

<!-- #BeginEditable "body" -->
<div class="middle_contain_top">
<h1></h1>

Andy
ECT Moderator

95440 Posts

Posted - 04/12/2019 :  01:28:33  
You couldn't really use that on products.php, it would only really make sense on proddetail.php where there is just one product, you wouldn't want to have multiple h1 tags on a page.

Andy

Please feel free to review / rate our software
  « 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