the product controller has
that is what gives it the name. You could use an existing product field that you don't need like "location" and use that as your title field. Then globally change all controllers to:
Code: Select all
$this->document->title = $product_info['name'];
Code: Select all
$this->document->title = ($product_info['name'] . ' :: ' . $product_info['location']) ;
if i add the 'location' in database, i think it should be 'product_description' table, if i add a field named 'location' next to 'description' field.
should i define the keywords 'location' in php sourcecode ? where and how to do it ?
if possible , i would like to add 'location' item in producut of admin pages,just in the middle of Product Name: any Meta Tag Description:
(of course , the direct operation of database is more fast!)
should i define the keywords 'location' in php sourcecode ? where and how to do it ?
if possible , i would like to add 'location' item in producut of admin pages,just in the middle of Product Name: any Meta Tag Description:
(of course , the direct operation of database is more fast!)
no. there already is a location field. but its usually not used by anyone i know so I always recommend that since it's already there. You don't have to do any db or code edits.. If you were going to add your own field then you wouldn't call it "location" you would add it to product_description and call it "title" but thts a lot of work
thanks you very much, i had test it ,i add a product_title field in product_description table,and add a category_title field in category_description table, and $this->document->title = ($product_info['name'].'|'.$product_info['product_title']) ; works fine !!!!!!!!!!
thank you!
i had another question bothering me for a long time, i should buy a space that use apache,however, I mistakenly purchased a iis6 space, and i want to use url rewrite, but i dont know how to change the .htaccess file, can you help me ?
thank you!
i had another question bothering me for a long time, i should buy a space that use apache,however, I mistakenly purchased a iis6 space, and i want to use url rewrite, but i dont know how to change the .htaccess file, can you help me ?
Hello Qphoria, jkungfu
I can not find where to extend limit of home page "meta description" as i did for "product" and "category page"
Also the i cant find "Location" field in data base, please explain me where to find or How to add new "Column" in Table
Thank you in advance
I can not find where to extend limit of home page "meta description" as i did for "product" and "category page"
Also the i cant find "Location" field in data base, please explain me where to find or How to add new "Column" in Table
Thank you in advance
I just wanted to say thankyou for this, did the mod on the meta title in a matter of seconds and it works absolutely fine!
Keep up the good work
Keep up the good work
........................................................................
http://www.basicsdesignerclothing.co.uk
........................................................................
I'm very keen to add Title Tags to my site for the category / product pages.jkungfu wrote:thanks you very much, i had test it ,i add a product_title field in product_description table,and add a category_title field in category_description table, and $this->document->title = ($product_info['name'].'|'.$product_info['product_title']) ; works fine !!!!!!!!!!
I've managed to add the fields to my database and have tried adding the info directly in there and then changing the category.php but I'm getting a bit lost as it's not showing up.
Would you mind expanding on how you managed to achieve it?
Thank you so much. Melanie.
I have added the code necessary to edit the custom title tag from the admin side. I am using OC 1.4.7. I simply used the same code formatting similar to meta_description line and replaced references to 'title' matching the new field in the db.
The store edit:
catalog/controller/product/category.php
- title tag to use title field added to database LINE 49
$this->document->title = $category_info['title'];
The admin edits:
admin/controller/catalog/category.php
- value for title LINE 52
admin/model/catalog/category.php
- value for title LINE 14
admin/language/english/catalog/category.php
- value for title LINE 16
$_['entry_title'] = 'Category Page Title:';
admin/model/tool/export.php
- value for title LINE 455, LINE 910
I'm no PHP expert by any stretch of the imagination, hardly a novice, but it seems the magic connection to making things appear in the admin lies with the export.php file.
Hope this helps some. Working great for me.
The store edit:
catalog/controller/product/category.php
- title tag to use title field added to database LINE 49
$this->document->title = $category_info['title'];
The admin edits:
admin/controller/catalog/category.php
- value for title LINE 52
admin/model/catalog/category.php
- value for title LINE 14
admin/language/english/catalog/category.php
- value for title LINE 16
$_['entry_title'] = 'Category Page Title:';
admin/model/tool/export.php
- value for title LINE 455, LINE 910
I'm no PHP expert by any stretch of the imagination, hardly a novice, but it seems the magic connection to making things appear in the admin lies with the export.php file.
Hope this helps some. Working great for me.
STONEHINGED
Handcrafted, Semi-Precious Jewelry
http://www.stonehinged.com/
I wish we could have a easy module like the Wordpress SEO Ultimate where you can do a title tag rewriter all in one simple step. I really would like to easily be able to have custom title, meta description and keywords for each page on my site. Any help or guidance would be greatly appreciated!
Yes I agree with atxutexas05, I would be willing to pay for a module like the Wordpress 'All in One SEO Pack' for OpenCart, does anyone know if one exists yet?
Cheers
Warren
Cheers
Warren
Hi using Version 1.5.1.3 and would like a dummy's guide to adding meta titles to all pages not just home page and all products /Categories. Anyone done this and if so how easy is it. Quite happy to pay someone to do it for me if price is affordable.
Cheers Dave .
Cheers Dave .
I really wonder why this isn't standard. If you look at the features of Opencart, it has a checkpoint that says: Search Engine Optimization (SEO) ... I would hardly call a platform that doesn't have user-editable fields for title tags "Search Engine Optimized". Kind of a BIG oversight in terms of SEO. Guess I have to pay for a module just to have this basic feature.
I'm a little confused as to how the 'location' field title tag works. Is this in addition to the product title? Apologies, but I don't really understand what is needed in order to set the location field up to act as a title tag. I looked at the code above but I don't quite get what I need to do. ?? help would be much appreciated
It is easy. Qphoria explained in a very easy way but it could be complicated if you are not good with mathematics or associations.
Qphoria says: "the 'variable' (location) is rarely used by any OC administrator"
Translation: Under the admin panel, use location to set the page title. Pretend 'location' means 'title'
Qphoria says: "globally change all controllers to... "
Translation: Add that variable - location -, to the title controller.
Before: $this->document->title = $product_info['name'];
After: $this->document->title = ($product_info['name'] . ' :: ' . $product_info['location']) ;
Thanks Qphoria !!
Qphoria says: "the 'variable' (location) is rarely used by any OC administrator"
Translation: Under the admin panel, use location to set the page title. Pretend 'location' means 'title'
Qphoria says: "globally change all controllers to... "
Translation: Add that variable - location -, to the title controller.
Before: $this->document->title = $product_info['name'];
After: $this->document->title = ($product_info['name'] . ' :: ' . $product_info['location']) ;
Thanks Qphoria !!
Our latest page: http://www.paginas.in
http://www.macClasificados.com - Encuentra tu Apple PC mas barato, sin intermediarios
Who is online
Users browsing this forum: No registered users and 83 guests