NickAltena Posted December 18, 2012 Share Posted December 18, 2012 Presta 1.5.2.0 When I click on a product on the shop I see in the browsers tab the name from the product and behind it is always the name " -shop ". How do i remove or replace this " - shop " part ? PS: In the address bar this " -shop " is not showing, its only on the tabs of the browser. Thanks for you're time and answers. Link to comment Share on other sites More sharing options...
El Patron Posted December 18, 2012 Share Posted December 18, 2012 back office-->preferences-->store contacts scroll down to Contact Details Change Shop Name and save 1 Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 Thanks for the answer. I have try this... but nothing as result...the " _ shop " is stil in the tabs of the browser ? When i , afther changed this and save , it show that it is succesfuly changed . After this i go to another part in the back office and then return to this one. Then I still see the name " shop " and not the name i filt in a few minutes ago ? (sorry for my poor English, I hope you understand it... I'm Dutch) Link to comment Share on other sites More sharing options...
El Patron Posted December 18, 2012 Share Posted December 18, 2012 Hola your English is perfectly fine. try clearing your browser cache and cookies... 1 Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 Done that, but it's still there. I also try it in different browsers like Firefox, Maxthon, Opera , Goole Chrome and the standard Windows Explorer, but no effect ? Link to comment Share on other sites More sharing options...
yaniv14 Posted December 18, 2012 Share Posted December 18, 2012 try to copy "classes/meta.php" back from prestashop installation. or you can remove the shop name completely with this tutorial: http://mypresta.eu/en/art/developer/how-to-remove-shop-name-from-page-meta-title.html 1 Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 Yaniv14 Thanks, tis one is perhaps usefull, but there's a little problem. I think I don't understand the firts part , i don't have a clean meta.php ? What do i have to do with that copy ? When i look at that link of you i see the text : Ready? Let's start the show All of the works we will do by using "override" feature in prestashop. What does it mean? It mean that all of works we will do by overriding Meta class. For do that you must open override/clases/Meta.php file, you've got there empty class, like code below: That last part.... you've got there empty class, like code below... 1 <?php 2 3 class Meta extends MetaCore 4 { 5 // we will put overrided functions here 6 } When i look on my server in this meta.php I don't see the 1st code part of you're link. I see a page with a lot of text. Can / must I place that cmeta.php copy page in the overidemap or is it better to make a complete new one with alle the text on you're link (except the part i quote here)? Link to comment Share on other sites More sharing options...
yaniv14 Posted December 18, 2012 Share Posted December 18, 2012 Are you sure you are looking in override/classes/meta.php and not in classes/meta.php 1 Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 oops i'm sorry...wrong map indeed thanks i'm going to try this Link to comment Share on other sites More sharing options...
El Patron Posted December 18, 2012 Share Posted December 18, 2012 Done that, but it's still there. I also try it in different browsers like Firefox, Maxthon, Opera , Goole Chrome and the standard Windows Explorer, but no effect ? That is very difficult to understand. This works in my testing and I've made the same suggestion to others where it has worked at well...just goes to show 1.5 is broken...IMHO you should consider not using 1.5 and go with 1.4.9. When 1.5.3 comes out and it seems that it's truly stable then you could consider upgrading. And not because of this problem...but all the problems that have been reported... starting off changing files to get the bloody shop name in page title...should be your first clue that there are more problems to come.. 1 Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 (edited) Elpatron, you are right , but it is my first shop and this version was installed on my server before i know all the problems in this one. I thought this was the latest , and for that , must be a stable version , not in a test fase .... I have no experience bilding a webshop, this is the first one and the problem is also the (technical) language. I can read and speak a little English... but when its technical...i have a problem. Later when i finally get it to work and put the catagories and products on the site and bild it up as i want... i was by the first problem thinking of downgrade this version, but after all the trouble to install this one I was afraid I lost everythink again after a lot of work Fortunately I can reach the php files and I'm not afraid to test these things .... For me it is a hobby, but another should soon earn his living with this site So I have a lot to learn, the person for which the site is can no english Edited December 18, 2012 by NickAltena (see edit history) 1 Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 (edited) Thats strange.... ? I have make a copy from the original classes/meta.php and put that in the override/classes/meta.php Then I copy the code from the link above in this copy , the number 2 2. Removing shop name from category pages meta title tag in Prestashop In the catagory on the site the " -Shop " was still showing. Then I delete the part i just changed , saved it again... and return to the webshop... The " -Shop " was then gone ! ?? Only in the product page's it was still showing, But i did not see a code only for the products ? So I made the final decision to act I then paste the 7 part in this override/classes/meta.php 7. Removing shop name from complete meta title tag in Prestashop The page's after this action where...white... nothing to see.... I again delete the Removing shop name from complete meta title tag in Prestashop code.... And after this moment... i see the page's again. No more " -shop " behind the catagory tabs , but it is still there by the products.... Edited December 18, 2012 by NickAltena (see edit history) Link to comment Share on other sites More sharing options...
NickAltena Posted December 18, 2012 Author Share Posted December 18, 2012 (edited) As far as I understand this is the code from the original (from the classes/meta.php ) and at his moment also the copy in the override/classes/meta.php for the product : public static function getProductMetas($id_product, $id_lang, $page_name) { $sql = 'SELECT `name`, `meta_title`, `meta_description`, `meta_keywords`, `description_short` FROM `'._DB_PREFIX_.'product` p LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product`'.Shop::addSqlRestrictionOnLang('pl').') '.Shop::addSqlAssociation('product', 'p').' WHERE pl.id_lang = '.(int)$id_lang.' AND pl.id_product = '.(int)$id_product.' AND product_shop.active = 1'; if ($row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql)) { if (empty($row['meta_description'])) $row['meta_description'] = strip_tags($row['description_short']); return Meta::completeMetaTags($row, $row['name']); } return Meta::getHomeMetas($id_lang, $page_name); } any idea what part should be replaced or supplemented so that the " -shop " part is not been seen in the product tabs ? On the link above is no code for the products part (or my eyes are not working so good anymore) Edited December 18, 2012 by NickAltena (see edit history) Link to comment Share on other sites More sharing options...
sw1ft25 Posted January 21, 2015 Share Posted January 21, 2015 Hi there, I had the same problem when i moved my shop to another host provider and had also a domain change. I modified everywhere in the back office and no result. Then i stumbled upon your post and this last entry gave me an idea. So if you have access to your SQL modify the prestashop tables directly eg: your-table-prefix_shop , your-table-prefix_store Hope it helps Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now