Popular Post Daresh Posted January 22, 2020 Popular Post Share Posted January 22, 2020 (edited) With this module you can replace the old prestashop breadcrumb with the new Schema structure required by Google. Of course if your breadcrumb markup is modified in your theme, you'll also need to adjust the markup of this module in it's tpl file. But usually those are simple changes. To implement this module you need to remove the old breadcrumb div and insert a new hook in your theme's breadcrumb.tpl file (details are displayed after installing the module). gmbreadcrumb_1_0_2.zip Update with a new option allowing you to decide if the last item should be a link: gmbreadcrumb_1_1_0.zip If you want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path linkLast=true} If you don't want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path} (according to Google's specs the last item is not required to be a link) Another update with bug fixes gmbreadcrumb_1_1_1.zip Another update, module not needed, just replace the breadcrumb.tpl file: breadcrumb.tpl Edited January 28, 2020 by Daresh (see edit history) 12 13 Link to comment Share on other sites More sharing options...
BonCev Posted January 22, 2020 Share Posted January 22, 2020 Thanks. 2 problems : in .php : ltrim to avoid the space in content=" aaaa" 'title' => ltrim($lastItem), ltrim($link->nodeValue), showing 5 items in source code (position 5) but I need only 4 items to display ... the 5th sets just the link (no content no name) and it is the same link as the 4th element. Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 Thanks for the note, I just updated the module in first post, I added a full trim in both places. Link to comment Share on other sites More sharing options...
gouna Posted January 22, 2020 Share Posted January 22, 2020 Merci Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 22, 2020 Share Posted January 22, 2020 Hi Daresh, thank you for the module. I'm not a coder and I see all kinds of different 'breadcrumps'. I installed your module, but in my breadcrumb file I do not know where exactly I need to override the code and insert your hook. This is my breadcrumb code at the moment: <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} <div class="breadcrumb clearfix"> <a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}"><i class="icon-home"></i></a> {if isset($path) AND $path} <span class="navigation-pipe"{if isset($category) && isset($category->id_category) && $category->id_category == (int)Configuration::get('PS_ROOT_CATEGORY')} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span> {if $path|strpos:'span' !== false} <span class="navigation_page">{$path|@replace:'<a ': ' <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a itemprop="url" '|@replace:'data-gg="">': '> <span itemprop="title">'|@replace:'</a>': '</span> </a> </span>'} </span> {else} {$path} {/if} {/if} </div> {if isset($smarty.get.search_query) && isset($smarty.get.results) && $smarty.get.results > 1 && isset($smarty.server.HTTP_REFERER)} <div class="pull-right"> <strong> {capture}{if isset($smarty.get.HTTP_REFERER) && $smarty.get.HTTP_REFERER}{$smarty.get.HTTP_REFERER}{elseif isset($smarty.server.HTTP_REFERER) && $smarty.server.HTTP_REFERER}{$smarty.server.HTTP_REFERER}{/if}{/capture} <a href="{$smarty.capture.default|escape:'html':'UTF-8'|secureReferrer|regex_replace:'/[\?|&]content_only=1/':''}" name="back"> <i class="icon-chevron-left left"></i> {l s='Back to Search results for "%s" (%d other results)' sprintf=[$smarty.get.search_query,$smarty.get.results]} </a> </strong> </div> {/if} <!-- /Breadcrumb --> Can you please tell me what code I need to replace with your hook? Thank you so much. Ellen Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 This part needs to be removed and replaced with the code from my module: 1 Link to comment Share on other sites More sharing options...
JRCFirewalker Posted January 22, 2020 Share Posted January 22, 2020 I used your module, but Google keeps pointing out there are 3 products not fulfilling breadcrumb requirements. As far as I understand, this mod addresses the issue on the entire theme and anyway the issue itself shouldn't be related to single items, am I wrong? Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 Yes it should adress it globally, but give me the links to those products and we'll see what's with the breadcrumb there. Link to comment Share on other sites More sharing options...
JRCFirewalker Posted January 22, 2020 Share Posted January 22, 2020 (edited) Ok, a very stupid "solution" to the issue that never pops up into my mind I'm posting just for other newbies like me: refresh the cache FROM BACKOFFICE after applying the changes to the code...any other newbie mean won't work Now Google is validating the changes, assessing whether they're effective or not. It says it will take some days for it. I'll keep you updated. @Daresh thank you for your prompt support! Very appreciated! Edited January 22, 2020 by JRCFirewalker (see edit history) 1 Link to comment Share on other sites More sharing options...
Claudiocool Posted January 22, 2020 Share Posted January 22, 2020 vor 3 Stunden schrieb Daresh: Thanks for the note, I just updated the module in first post, I added a full trim in both places. Hi Daresh, is ist correct, for my 1.6 i load your ....1_0_2.zip? Link to comment Share on other sites More sharing options...
Delica-te-zen Posted January 22, 2020 Share Posted January 22, 2020 Hi Daresh, I probed you module and it looks to work fine now.(I did it before but replacing complete code on the template... Just two questions, when reviewing goggle results after module and refreshing cache, I see that there are some field (optional) but missing like : Brand, review SBN, url and availability. How can I do to show these info? example: https://www.delica-te-zen.com/comprar-te-rojo/146-te-pu-erh-mango-maracuya.html Second question, is more about cosmetic issue, but since place the hook the icon for root (Home) disappears from breadcrumb in the top, do you expect implement to show the home location? Thanks Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 @Claudiocool - yes, exactly @Aldegunde - those errors are related to your products Schema, not breadcrumbs. The second cosmetic issue I don't understand. Link to comment Share on other sites More sharing options...
Claudiocool Posted January 22, 2020 Share Posted January 22, 2020 I have also the problem with missed fields in the Google-Breadcrumb-Tests How can the products Schema in the shop be fixed? All @Google missed things are here are here. Link to comment Share on other sites More sharing options...
Claudiocool Posted January 22, 2020 Share Posted January 22, 2020 vor 6 Minuten schrieb Daresh: @Claudiocool - yes, exactly Thank you. I have only to install the module and replace the code in the breadcrumb.tpl? 1 Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 You need to work on every error individually, so please here let's focus on the Breadcrumbs. Link to comment Share on other sites More sharing options...
Claudiocool Posted January 22, 2020 Share Posted January 22, 2020 Yes, but i don't know where to start e.g. for missing field "sku" but this is here as "reference" in the database. Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 Start with creating a new thread on the forum. Link to comment Share on other sites More sharing options...
Claudiocool Posted January 22, 2020 Share Posted January 22, 2020 okay Link to comment Share on other sites More sharing options...
mkkorleone Posted January 22, 2020 Share Posted January 22, 2020 I'm with your module, but I still have errors . Tnx. <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} {hook h='displayModernBreadCrumb' path=$path} {if isset($smarty.get.search_query) && isset($smarty.get.results) && $smarty.get.results > 1 && isset($smarty.server.HTTP_REFERER)} <div class="pull-right"> <strong> {capture}{if isset($smarty.get.HTTP_REFERER) && $smarty.get.HTTP_REFERER}{$smarty.get.HTTP_REFERER}{elseif isset($smarty.server.HTTP_REFERER) && $smarty.server.HTTP_REFERER}{$smarty.server.HTTP_REFERER}{/if}{/capture} <a href="{$smarty.capture.default|escape:'html':'UTF-8'|secureReferrer|regex_replace:'/[\?|&]content_only=1/':''}" name="back"> <i class="icon-chevron-left left"></i> {l s='Back to Search results for "%s" (%d other results)' sprintf=[$smarty.get.search_query,$smarty.get.results]} </a> </strong> </div> {/if} <!-- /Breadcrumb --> Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 Give a link to the page you are testing. Link to comment Share on other sites More sharing options...
mkkorleone Posted January 22, 2020 Share Posted January 22, 2020 https://beautyandpower.eu/sportni-ekipi/2626-mma-ekip.html Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 You have some additional snippets in your product page, that should not be there, you should remove them. Link to comment Share on other sites More sharing options...
Wuschel Posted January 22, 2020 Share Posted January 22, 2020 (edited) Great module, thank for sharing. Works btw as well for 1.5.6, so there is thus no need to limit the usage to minimum 1.6. But there is a difference: Neither in 1.6 nor in 1.5 the last path item shows up like before with your module installed. Where is the adjusting screw to fix this little mistake? Edited January 22, 2020 by Wuschel (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 It's not a mistake, cause AFAIK the last part of the breadcrumb is also required to be linked. Prestashop 1.7 has it done exaclty like this. Thanks for the info about the version, I'll check it out. Link to comment Share on other sites More sharing options...
Wuschel Posted January 22, 2020 Share Posted January 22, 2020 56 minutes ago, Daresh said: It's not a mistake Strange, because it is displayed in 1.5 and 1.6 without your module. And honestly, who cares for 1.7? Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 Who cares for 1.5? But it's simple, if you don't want the last item to be linked, you can change the foreach loop in the module's tpl file to this: {foreach from=$breadcrumbLinks item=breadcrumbLink} <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> {if !$breadcrumbLink.last} <a itemprop="item" href="{$breadcrumbLink.href}" title="{$breadcrumbLink.title}"> {$breadcrumbLink.title} </a> <span class="navigation-pipe">{$navigationPipe}</span> {else} {$breadcrumbLink.title} {/if} <meta itemprop="position" content="{$breadcrumbLink.position}"> <meta itemprop="name" content="{$breadcrumbLink.title}"> </span> {/foreach} Seems it's still correctly validated by the snippets testing tool. Link to comment Share on other sites More sharing options...
Wuschel Posted January 22, 2020 Share Posted January 22, 2020 14 minutes ago, Daresh said: But it's simple, if you don't want the last item to be linked, Lol, just the contrary! I want to, but your module won't! Link to comment Share on other sites More sharing options...
Daresh Posted January 22, 2020 Author Share Posted January 22, 2020 I would need to see the specific case, cause the module should link every list item. And I just uploaded a new version, where you can decide if you want the last item to be linked when executing the hook. Link to comment Share on other sites More sharing options...
Claudiocool Posted January 22, 2020 Share Posted January 22, 2020 where can i decide this? Link to comment Share on other sites More sharing options...
Wuschel Posted January 22, 2020 Share Posted January 22, 2020 (edited) 13 hours ago, Daresh said: If you don't want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path} (according to Google's specs the last item is not required to be a link) Thank you again, I really appreciate this. I'll check it out tomorrow. It's just that in my opinion the navigation of a shop system should first and foremost serve the customer - and not Google. Edited January 22, 2020 by Wuschel (see edit history) Link to comment Share on other sites More sharing options...
inkout Posted January 23, 2020 Share Posted January 23, 2020 Hi, thx for your module. I have a question: i have the prestashop's version 1.6.1.4 and i have installed 1.1.0 . Is it correct? Or i must install the version 1..0.2?? Thx for response. Bye Link to comment Share on other sites More sharing options...
Daresh Posted January 23, 2020 Author Share Posted January 23, 2020 Always install the latest version. Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 23, 2020 Share Posted January 23, 2020 19 hours ago, Daresh said: This part needs to be removed and replaced with the code from my module: Thank you Daresh, I implemented it and Google is now validating. Hopefully it's resolved. Thanks again for the module and the help. Ellen 1 Link to comment Share on other sites More sharing options...
Wuschel Posted January 23, 2020 Share Posted January 23, 2020 Thank you, works like a charm now. 👍 No Google-Error detected. Maybe a small improvement for the hook gmbreadcrumb.tpl: {l s='Return to Home' mod='gmbreadcrumb'} Link to comment Share on other sites More sharing options...
Daresh Posted January 23, 2020 Author Share Posted January 23, 2020 Yes, I already have it in my 1.1.1 version, but it's not yet uploaded here, if no more fixes come out I will upload it in a couple of days. Link to comment Share on other sites More sharing options...
NSN Posted January 23, 2020 Share Posted January 23, 2020 @Daresh Thanks a lot for your work and the module. It's maybe a stupid question, but if an older version of your module is already installed and I want to update, can the new version simply be uploaded or should the old one be removed first? Link to comment Share on other sites More sharing options...
Claudiocool Posted January 23, 2020 Share Posted January 23, 2020 (edited) I don't understand, where to insert that hook... If you want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path linkLast=true} If you don't want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path} (according to Google's specs the last item is not required to be a link) Edited January 23, 2020 by Claudiocool (see edit history) Link to comment Share on other sites More sharing options...
rboada Posted January 23, 2020 Share Posted January 23, 2020 1 hour ago, Claudiocool said: I don't understand, where to insert that hook... If you want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path linkLast=true} If you don't want the last item to be linked, you execute the hook like this: {hook h='displayModernBreadCrumb' path=$path} (according to Google's specs the last item is not required to be a link) Add the hook in the breadcrumb.tpl file of your theme (/themes/your_theme/breadcrumb.tpl) Like this: 1 Link to comment Share on other sites More sharing options...
Claudiocool Posted January 23, 2020 Share Posted January 23, 2020 Thank you! Link to comment Share on other sites More sharing options...
Daresh Posted January 23, 2020 Author Share Posted January 23, 2020 5 hours ago, NSN said: @Daresh Thanks a lot for your work and the module. It's maybe a stupid question, but if an older version of your module is already installed and I want to update, can the new version simply be uploaded or should the old one be removed first? Just upload the new module. 1 Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 24, 2020 Share Posted January 24, 2020 Daresh, I'm not sure how to 'read' the Google warning. Yesterday there were 78 warnings. I installed your module and edited the breadcrumb.tpl but today I have 181 warnings. Did it not work? Hopefully you can shed some light on it. Do you need some specific information? Link to comment Share on other sites More sharing options...
Daresh Posted January 24, 2020 Author Share Posted January 24, 2020 (edited) Use the snippets testing tool to verify your breadcrumb: https://search.google.com/structured-data/testing-tool/u/0/?hl=en Edited January 24, 2020 by Daresh (see edit history) 1 Link to comment Share on other sites More sharing options...
manufe Posted January 24, 2020 Share Posted January 24, 2020 Thanks you @Daresh! Link to comment Share on other sites More sharing options...
myselfidem Posted January 24, 2020 Share Posted January 24, 2020 (edited) Thank you very much for this nice module ! However I see always errors on my host server : Quote [Fri Jan 24 15:51:43.336228 2020] [:error] [pid 166526:tid 140510819755776] [client 66.249.64.228:55532] FastCGI: server "/home/clients/xxxxxxxxxxxxxxxxxx/.config/apache/xxxxxxxxxxxxxx.xx.ch/.fpm/php5.external" stderr: PHP message: PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/clients/8xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxx.xx.ch/httpdocs/modules/gmbreadcrumb/gmbreadcrumb.php on line 48 [Fri Jan 24 15:47:44.904573 2020] [:error] [pid 158947:tid 140510735828736] [client 66.249.64.228:36586] FastCGI: server "/home/clients/xxxxxxxxxxxxxxxxxx/.config/apache/xxxxxxxxxxxxxx.xx.ch/.fpm/php5.external" stderr: PHP message: PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/clients/xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxx.xx.ch/httpdocs/modules/gmbreadcrumb/gmbreadcrumb.php on line 48 Seems this line gives errors (line : 48): $dom->loadHTML(mb_convert_encoding($path, 'HTML-ENTITIES', 'UTF-8')); Thank you Edited January 24, 2020 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted January 24, 2020 Author Share Posted January 24, 2020 It's just a warning, so it will not break your site. It would be good to know if it happens for a page that should have a breadcrumb, or maybe for some reason the path is indeed empty? Do you know for what page request you have this warning? Link to comment Share on other sites More sharing options...
myselfidem Posted January 24, 2020 Share Posted January 24, 2020 (edited) Thank you Daresh, I will take a look. Edited January 24, 2020 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
Tarkas Posted January 24, 2020 Share Posted January 24, 2020 The module works wonderfully but I am having an issue with either CMS that are in categories: the last item does not show and Google says the name is missing (which it is since the title of the last page is not there) and with the BLOG module, you get another arrow with nothing and Google again calls for an empty name. Example CMS: https://librairiezbookstore.com/en/info/informations/accepted-payment-methods Example BLOG 1: https://librairiezbookstore.com/NEWS Example BLOG 2: https://librairiezbookstore.com/en/NEWS/post/straight-to-hell.html Other than that, everything works great. Thank you for the module! Link to comment Share on other sites More sharing options...
marek.lemur Posted January 25, 2020 Share Posted January 25, 2020 Breadcrumb is reduntant on cms pages. I've added "cms" pages to header.tpl not to be displayed - the same as index and pagenotfound pages: {if $page_name !='index' && $page_name !='pagenotfound' && $page_name !='cms'} {include file="$tpl_dir./breadcrumb.tpl"} {/if} Link to comment Share on other sites More sharing options...
marek.lemur Posted January 25, 2020 Share Posted January 25, 2020 By the way, great work, thanks for the module. Link to comment Share on other sites More sharing options...
Daresh Posted January 25, 2020 Author Share Posted January 25, 2020 Thanks for your feedback guys, I just updated the module to v. 1.1.1 and uploaded it into the first post, check it out! 1 1 Link to comment Share on other sites More sharing options...
myselfidem Posted January 25, 2020 Share Posted January 25, 2020 Hello Daresh, Thank you very much ! Now, at this time, I see NO ERRORS (on my server host). Works like a charm ! Many thanks for this kind module. 1 Link to comment Share on other sites More sharing options...
Delica-te-zen Posted January 26, 2020 Share Posted January 26, 2020 19 hours ago, Daresh said: Thanks for your feedback guys, I just updated the module to v. 1.1.1 and uploaded it into the first post, check it out! Hi Daresh, how to update to the new version? Just un install the old one and load the new? or there is any other better way how to? Thanks! Link to comment Share on other sites More sharing options...
Daresh Posted January 26, 2020 Author Share Posted January 26, 2020 Just upload the new module. You may also verify the way you execute the hook, if you want the last item to be a link. Link to comment Share on other sites More sharing options...
Delica-te-zen Posted January 26, 2020 Share Posted January 26, 2020 42 minutes ago, Daresh said: Just upload the new module. You may also verify the way you execute the hook, if you want the last item to be a link. OK, thanks. Is it recomendable for SEO pourposes to include the last link? Link to comment Share on other sites More sharing options...
Daresh Posted January 26, 2020 Author Share Posted January 26, 2020 I don't know, but I think it should not matter, cause there are already other links in the shop to those pages. 1 Link to comment Share on other sites More sharing options...
Masteries Posted January 26, 2020 Share Posted January 26, 2020 Thanks for this! Just a question, our theme have some user defined variables inside breadcrumb.tpl (we use Warehouse): <div class="breadcrumb clearfix {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}fullwidth-breadcrumb{/if}"> {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}<div class="container">{/if} <a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}"><i class="icon-home"></i></a> {if isset($path) AND $path} <span class="navigation-pipe"{if isset($category) && isset($category->id_category) && $category->id_category == (int)Configuration::get('PS_ROOT_CATEGORY')} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span> {if $path|strpos:'span' !== false} <span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="title">'|@replace:'</a>': '</span></a></span>'}</span> {else} {$path} {/if} {/if} {if $page_name == 'product'} {hook h='productnavs'} {/if} {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}</div>{/if} </div> If I replace this with your module hook, would it affect how things related to breadcrumb looks? Or should I also edit your gmbreadcrumb.tpl so it's compatible with the theme? Link to comment Share on other sites More sharing options...
Daresh Posted January 26, 2020 Author Share Posted January 26, 2020 It may affect how the breadcrumb looks, but your code seems to be using a lot of custom variables, so I don't think my module will work for you if you wan to keep all this markup. Link to comment Share on other sites More sharing options...
Masteries Posted January 26, 2020 Share Posted January 26, 2020 19 minutes ago, Daresh said: It may affect how the breadcrumb looks, but your code seems to be using a lot of custom variables, so I don't think my module will work for you if you wan to keep all this markup. Ah that's too bad, what exactly would I have to change in it to be able to use the new Schema? Link to comment Share on other sites More sharing options...
Daresh Posted January 26, 2020 Author Share Posted January 26, 2020 The question is are you using the full with breadcrumb? If not then I think you can try to use my module, but probably you would need to insert that hook execution into the module's tpl file. Link to comment Share on other sites More sharing options...
Masteries Posted January 26, 2020 Share Posted January 26, 2020 7 minutes ago, Daresh said: The question is are you using the full with breadcrumb? If not then I think you can try to use my module, but probably you would need to insert that hook execution into the module's tpl file. Do you mean full width? If so, no. Link to comment Share on other sites More sharing options...
Daresh Posted January 26, 2020 Author Share Posted January 26, 2020 yes, full width 1 Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 27, 2020 Share Posted January 27, 2020 On 1/24/2020 at 9:17 AM, Daresh said: Use the snippets testing tool to verify your breadcrumb: https://search.google.com/structured-data/testing-tool/u/0/?hl=en Hi Daresh, I ran the test: https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fwww.bike4travel.nl I see some errors, but I don't know if they are related to your module (I'm not a programmer, we try to do this ourselves and sometimes things get complicated ) Thanks again. Link to comment Share on other sites More sharing options...
Daresh Posted January 27, 2020 Author Share Posted January 27, 2020 Those errors are not related to breadcrumbs, those are errors with products. I see errors like this often on prestashop 1.6, the default theme had those errors and other themes got them after it. Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 27, 2020 Share Posted January 27, 2020 Thank you Daresh, so I guess the breadcrumb issue has been resolved due to your module. Thanks for that! Offtopic: anything I could do to resolve these errors? Link to comment Share on other sites More sharing options...
Daresh Posted January 27, 2020 Author Share Posted January 27, 2020 You need to have your theme fixed to resolve those errors. Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 27, 2020 Share Posted January 27, 2020 Ok, I guess that's a bit more complicated and not what this topic is about. Thanks anyway! Link to comment Share on other sites More sharing options...
Daresh Posted January 27, 2020 Author Share Posted January 27, 2020 Yes, it may require more work, in case you need a developer for this you can contact me and I'll see what we can do about it. Link to comment Share on other sites More sharing options...
ellenvandrunen Posted January 27, 2020 Share Posted January 27, 2020 Thanks Daresh, I'll discuss it with my co-worker. Link to comment Share on other sites More sharing options...
Josediecinueve Posted January 27, 2020 Share Posted January 27, 2020 I add the gmbreadcrumb_1_1_1 module to my Prestashop 1.6.1.3 and it tells me that it has been downloaded correctly, but then it does not appear in the list of modules to configure it. Which may be due? Thank you so much. regards Link to comment Share on other sites More sharing options...
David Dugez Posted January 27, 2020 Share Posted January 27, 2020 Where i can make download of this module free? thanks Link to comment Share on other sites More sharing options...
Daresh Posted January 28, 2020 Author Share Posted January 28, 2020 Another important update - I made this module with an assumption that the current page should be a link, but it's actually not required by Google. So the best solution would be to only modify the breadcrumb.tpl, replacing it's contents with this code: <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} {if !empty($path)} {$matchCount = preg_match_all('/<a.+?href="(.+?)"[^>]*>([^<]*)<\/a>/', $path, $matches)} {$breadcrumbs = []} {for $i=0; $i < $matchCount; $i++} {$breadcrumbs[] = ['url' => $matches[1][$i], 'title' => $matches[2][$i]]} {/for} {$match = preg_match('/>([^<]+)(?:<\/\\w+>s*)?$/', $path, $matches)} {if !empty($matches[1])} {$breadcrumbs[] = ['url' => '', 'title' => $matches[1]]} {elseif !$match && !$matchCount} {$breadcrumbs[] = ['url' => '', 'title' => $path]} {/if} {/if} <div class="clearfix"> <ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}" itemprop="item"> <i class="icon-home"></i> </a> <meta itemprop="name" content="{l s='Home'}" /> <meta itemprop="position" content="1" /> </li> {if !empty($breadcrumbs)} {foreach from=$breadcrumbs item=breadcrumb name=crumbs} <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> {if !empty($breadcrumb.url)} <a href="{$breadcrumb.url}" itemprop="item" title="{$breadcrumb.title}"> <span itemprop="name">{$breadcrumb.title}</span> </a> {else} <span itemprop="name">{$breadcrumb.title}</span> {/if} <meta itemprop="position" content="{($smarty.foreach.crumbs.iteration|intval + 1)}" /> </li> {/foreach} {/if} </ol> </div> {if isset($smarty.get.search_query) && isset($smarty.get.results) && $smarty.get.results > 1 && isset($smarty.server.HTTP_REFERER)} <div class="pull-right"> <strong> {capture}{if isset($smarty.get.HTTP_REFERER) && $smarty.get.HTTP_REFERER}{$smarty.get.HTTP_REFERER}{elseif isset($smarty.server.HTTP_REFERER) && $smarty.server.HTTP_REFERER}{$smarty.server.HTTP_REFERER}{/if}{/capture} <a href="{$smarty.capture.default|escape:'html':'UTF-8'|secureReferrer|regex_replace:'/[\?|&]content_only=1/':''}" name="back"> <i class="icon-chevron-left left"></i> {l s='Back to Search results for "%s" (%d other results)' sprintf=[$smarty.get.search_query,$smarty.get.results]} </a> </strong> </div> {/if} <!-- /Breadcrumb --> That's the most simple solution, and finally we have a correct code of the breadcrumb.tpl file. 1 Link to comment Share on other sites More sharing options...
Delica-te-zen Posted January 28, 2020 Share Posted January 28, 2020 10 hours ago, Daresh said: Another important update - I made this module with an assumption that the current page should be a link, but it's actually not required by Google. So the best solution would be to only modify the breadcrumb.tpl, replacing it's contents with this code: <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} {if !empty($path)} {$matchCount = preg_match_all('/<a.+?href="(.+?)"[^>]*>([^<]*)<\/a>/', $path, $matches)} {$breadcrumbs = []} {for $i=0; $i < $matchCount; $i++} {$breadcrumbs[] = ['url' => $matches[1][$i], 'title' => $matches[2][$i]]} {/for} {$match = preg_match('/>([^<]+)(?:<\/\\w+>s*)?$/', $path, $matches)} {if !empty($matches[1])} {$breadcrumbs[] = ['url' => '', 'title' => $matches[1]]} {elseif !$match && !$matchCount} {$breadcrumbs[] = ['url' => '', 'title' => $path]} {/if} {/if} <div class="clearfix"> <ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}" itemprop="item"> <i class="icon-home"></i> </a> <meta itemprop="name" content="{l s='Home'}" /> <meta itemprop="position" content="1" /> </li> {if !empty($breadcrumbs)} {foreach from=$breadcrumbs item=breadcrumb name=crumbs} <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> {if !empty($breadcrumb.url)} <a href="{$breadcrumb.url}" itemprop="item" title="{$breadcrumb.title}"> <span itemprop="name">{$breadcrumb.title}</span> </a> {else} <span itemprop="name">{$breadcrumb.title}</span> {/if} <meta itemprop="position" content="{($smarty.foreach.crumbs.iteration|intval + 1)}" /> </li> {/foreach} {/if} </ol> </div> {if isset($smarty.get.search_query) && isset($smarty.get.results) && $smarty.get.results > 1 && isset($smarty.server.HTTP_REFERER)} <div class="pull-right"> <strong> {capture}{if isset($smarty.get.HTTP_REFERER) && $smarty.get.HTTP_REFERER}{$smarty.get.HTTP_REFERER}{elseif isset($smarty.server.HTTP_REFERER) && $smarty.server.HTTP_REFERER}{$smarty.server.HTTP_REFERER}{/if}{/capture} <a href="{$smarty.capture.default|escape:'html':'UTF-8'|secureReferrer|regex_replace:'/[\?|&]content_only=1/':''}" name="back"> <i class="icon-chevron-left left"></i> {l s='Back to Search results for "%s" (%d other results)' sprintf=[$smarty.get.search_query,$smarty.get.results]} </a> </strong> </div> {/if} <!-- /Breadcrumb --> That's the most simple solution, and finally we have a correct code of the breadcrumb.tpl file. Hi Daresh, now I´m really cofused. So, we can un install the module and simply replace the original breadcrumb.tpl in our theme with this new code? Thanks for clarification and your time. Link to comment Share on other sites More sharing options...
Daresh Posted January 28, 2020 Author Share Posted January 28, 2020 Yes, you can do exactly that, if a better solution comes out I'm happy to promote it 1 Link to comment Share on other sites More sharing options...
dmr-electronics Posted January 29, 2020 Share Posted January 29, 2020 I have created/updated origional breadcump.tpl and added pages who i wanted to include. Page to include?/exclude you do update in the lines highligted working perfect in prestashop 1.6 versions. ps dont forget to backup your origional before copy past <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}<div class="breadcrumb" {if $page_name == 'product' or $page_name == 'category' or $page_name == 'cms' or $page_name == 'new-products' or $page_name == 'best-sales' or $page_name == 'prices-drop' or $page_name == 'manufacturer' or $page_name == 'sitemap' or $page_name == 'content' or $page_name == 'stores' or $page_name == 'search'}itemscope itemtype="http://schema.org/BreadcrumbList"{/if}> <!-- <div class="container" > --> <!--<meta itemprop="name" content="{$meta_title|escape:'html':'UTF-8'}"/>--> <span {if $page_name == 'product' or $page_name == 'category' or $page_name == 'cms' or $page_name == 'new-products' or $page_name == 'best-sales' or $page_name == 'prices-drop' or $page_name == 'manufacturer' or $page_name == 'sitemap' or $page_name == 'content' or $page_name == 'stores' or $page_name == 'search'}itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem"{/if}><meta itemprop="position" content="1"><a class="home" itemprop="item" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}"><meta itemprop="name" content="{l s='Home'}" /><i class="icon-home"></i></a></span> {if isset($path) AND $path} <span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == (int)Configuration::get('PS_ROOT_CATEGORY')} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span> {if $page_name == 'product' or $page_name == 'category' or $page_name == 'cms' or $page_name == 'new-products' or $page_name == 'best-sales' or $page_name == 'prices-drop' or $page_name == 'manufacturer' or $page_name == 'sitemap' or $page_name == 'content' or $page_name == 'stores' or $page_name == 'search'} {if $path|strpos:'span' !== false} <span class="navigation_page" > {$path|@replace:'<a ': '<span > <span > <a itemprop="item" '|@replace:'data-gg="">': '> <span >'|@replace:'</a>': '</a></span></span>'}</span> {else} <span itemprop="itemListElement" class="item-breadcrumb" itemscope="" itemtype="http://schema.org/ListItem"><meta itemprop="position" content="1"><meta itemprop="item" content="{if isset($force_ssl) && $force_ssl}https://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{else}http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{/if}" /><meta itemprop="name" content="{$path}" /><span class="item-breadalone">{$path}</span></span> {/if} {else} {if $path|strpos:'span' !== false} <span class="navigation_page" > {$path|@replace:'<a ': '<span > <span > <a '|@replace:'data-gg="">': '> <span >'|@replace:'</a>': '</a></span></span>'}</span> {else} <span class="item-breadalone">{$path}</span> {/if} {/if} {/if} </div> 2 Link to comment Share on other sites More sharing options...
Tarkas Posted January 30, 2020 Share Posted January 30, 2020 Is there a fix for the products schema? This is also causing errors in Google console now. Link to comment Share on other sites More sharing options...
Daresh Posted January 30, 2020 Author Share Posted January 30, 2020 It usually requires modifying a couple of tpl files. No single fix for this. 1 Link to comment Share on other sites More sharing options...
Gipielle Posted February 5, 2020 Share Posted February 5, 2020 On 1/28/2020 at 8:22 AM, Daresh said: Another important update - I made this module with an assumption that the current page should be a link, but it's actually not required by Google. So the best solution would be to only modify the breadcrumb.tpl, replacing it's contents with this code: <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} {if !empty($path)} {$matchCount = preg_match_all('/<a.+?href="(.+?)"[^>]*>([^<]*)<\/a>/', $path, $matches)} {$breadcrumbs = []} {for $i=0; $i < $matchCount; $i++} {$breadcrumbs[] = ['url' => $matches[1][$i], 'title' => $matches[2][$i]]} {/for} {$match = preg_match('/>([^<]+)(?:<\/\\w+>s*)?$/', $path, $matches)} {if !empty($matches[1])} {$breadcrumbs[] = ['url' => '', 'title' => $matches[1]]} {elseif !$match && !$matchCount} {$breadcrumbs[] = ['url' => '', 'title' => $path]} {/if} {/if} <div class="clearfix"> <ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"> <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}" itemprop="item"> <i class="icon-home"></i> </a> <meta itemprop="name" content="{l s='Home'}" /> <meta itemprop="position" content="1" /> </li> {if !empty($breadcrumbs)} {foreach from=$breadcrumbs item=breadcrumb name=crumbs} <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> {if !empty($breadcrumb.url)} <a href="{$breadcrumb.url}" itemprop="item" title="{$breadcrumb.title}"> <span itemprop="name">{$breadcrumb.title}</span> </a> {else} <span itemprop="name">{$breadcrumb.title}</span> {/if} <meta itemprop="position" content="{($smarty.foreach.crumbs.iteration|intval + 1)}" /> </li> {/foreach} {/if} </ol> </div> {if isset($smarty.get.search_query) && isset($smarty.get.results) && $smarty.get.results > 1 && isset($smarty.server.HTTP_REFERER)} <div class="pull-right"> <strong> {capture}{if isset($smarty.get.HTTP_REFERER) && $smarty.get.HTTP_REFERER}{$smarty.get.HTTP_REFERER}{elseif isset($smarty.server.HTTP_REFERER) && $smarty.server.HTTP_REFERER}{$smarty.server.HTTP_REFERER}{/if}{/capture} <a href="{$smarty.capture.default|escape:'html':'UTF-8'|secureReferrer|regex_replace:'/[\?|&]content_only=1/':''}" name="back"> <i class="icon-chevron-left left"></i> {l s='Back to Search results for "%s" (%d other results)' sprintf=[$smarty.get.search_query,$smarty.get.results]} </a> </strong> </div> {/if} <!-- /Breadcrumb --> That's the most simple solution, and finally we have a correct code of the breadcrumb.tpl file. Hello, this fix works also for prestashop 1.7 ? Link to comment Share on other sites More sharing options...
Daresh Posted February 5, 2020 Author Share Posted February 5, 2020 There's no need for this in 1.7. Link to comment Share on other sites More sharing options...
ANGELO Vintage Posted February 5, 2020 Share Posted February 5, 2020 Using the default PS 1.6 template and using the new .tpl the layout of the home button is aligned wrongly original.tpl with your .tpl Anyway the syntax is correct , thank you Link to comment Share on other sites More sharing options...
Daresh Posted February 6, 2020 Author Share Posted February 6, 2020 I don't see it on my test shop, so maybe your theme has some additional styling Link to comment Share on other sites More sharing options...
myselfidem Posted February 6, 2020 Share Posted February 6, 2020 @ Angelo Vintage Look inside the global.css file of your theme see the breadcrumb lines and check this one : .breadcrumb a.home{font-size:17px;color:#777777;width:38px;text-align:center; Link to comment Share on other sites More sharing options...
Gipielle Posted February 6, 2020 Share Posted February 6, 2020 22 hours ago, Daresh said: There's no need for this in 1.7. Hello, yes, maybe our template is not correct coded, we got this error Link to comment Share on other sites More sharing options...
samiinfo Posted February 12, 2020 Share Posted February 12, 2020 @Daresh Hi, I had a lot of validation failure, for exemple at these links: https://dari-shop.tn/fraise/5324-fraise-a-arrondir-avec-roulement-a-billes-a-2-tranchants-queue-8mm-rayon-r1-10mm-longueur-570mm-bosch-2608628342.html https://dari-shop.tn/visseuse-et-tournevis-electrique/5691-perceuse-visseuse-sans-fil-15ah-bosch-gsr-180-li-professional-2-batteries-23-accessoires.html https://dari-shop.tn/visseuse-et-tournevis-electrique/5691-perceuse-visseuse-sans-fil-15ah-bosch-gsr-180-li-professional-2-batteries-23-accessoires.html any idea please Link to comment Share on other sites More sharing options...
dolec Posted February 17, 2020 Share Posted February 17, 2020 Should last category be clickable? Can i add home icon and link? Link to comment Share on other sites More sharing options...
johnny rodriguez Posted March 4, 2020 Share Posted March 4, 2020 On 28/1/2020 at 8:22, Daresh said: Otra actualización importante: hice este módulo con la suposición de que la página actual debería ser un enlace, pero en realidad Google no lo requiere. Entonces, la mejor solución sería modificar solo breadcrumb.tpl, reemplazando su contenido con este código: Esa es la solución más simple, y finalmente tenemos un código correcto del archivo breadcrumb.tpl. el menu horizontal en el telefono movil no funciona a que puede deverse Link to comment Share on other sites More sharing options...
vitis-it Posted March 8, 2020 Share Posted March 8, 2020 Hello everyone. I followed the instructions as described above. Google sees everything correctly and all warnings have disappeared. Unfortunately, the bread crumbs on the page look like above. One line has made a lot and I can't handle it. Could someone possibly help me. Of course, I cleared the cache and smarty and compiled the template Thank you. Filip Link to comment Share on other sites More sharing options...
Thibaut OMB Posted March 25, 2020 Share Posted March 25, 2020 Hi thank you for your module ! Where can I change the code please? I am on Presta 1.6.1.12 and I have this Breadcrumb file : <! - Breadcrumb -> {if isset ($ smarty.capture.path)} {assign var = 'path' value = $ smarty.capture.path} {/ if} <section class = "breadcrumb" xmlns: v = "http://rdf.data-vocabulary.org/#"> <ul itemprop = "breadcrumb"> <li typeof = "v: Breadcrumb"> <a class = "home" href = "{if isset ($ force_ssl) && $ force_ssl} {$ base_dir_ssl} {else} {$ base_dir} {/ if} "title =" {ls = 'Return to Home'} "rel =" v: url "property =" v: title "> {ls = 'Home'} </a> </li> {if isset ($ path) AND $ path} <li class = "navigation-pipe" {if isset ($ category) && isset ($ category-> id_category ) && $ category-> id_category == (int) Configuration :: get ('PS_ROOT_CATEGORY')} style = "display: none;" {/ if}> {$ navigationPipe} </li> {if! $ path | strpos: 'li>'! == false} <li typeof = "v: Breadcrumb" classe = "navigation_page"> {$ path} </li> {else} {$ path} {/ if} {/ if} </ul> </section> {if isset ($ smarty.get.search_query) && isset ($ smarty.get.results) && $ smarty.get. résultats> 1 && isset ($ smarty.server.HTTP_REFERER)} <div id = "search_return" class = "pull-right hidden-xs"> {capture} {if isset ($ smarty.get.HTTP_REFERER) && $ smarty. get.HTTP_REFERER} {$ smarty.get.HTTP_REFERER} {elseif isset ($ smarty.server.HTTP_REFERER) && $ smarty.server.HTTP_REFERER} {$ smarty.server.HTTP_REFERER} {/ if} {/ capture} <a href = "{$ smarty.capture.default | escape: 'html': 'UTF-8' | secureReferrer | regex_replace: '/ [\? | &] content_only = 1 /': ''}" name = "back"rel = "nofollow"> <i class = "icon-left-open-3"> </i> {ls = 'Retour aux résultats de recherche pour "% s" (% d autres résultats)' sprintf = [$ smarty.get.search_query, $ smarty .get.results]} </a> </div> {/ if} <! - / Breadcrumb -> Link to comment Share on other sites More sharing options...
Coloranti Posted March 30, 2020 Share Posted March 30, 2020 On 1/29/2020 at 6:07 PM, dmr-electronics said: I have created/updated origional breadcump.tpl and added pages who i wanted to include. Page to include?/exclude you do update in the lines highligted working perfect in prestashop 1.6 versions. ps dont forget to backup your origional before copy past <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}<div class="breadcrumb" {if $page_name == 'product' or $page_name == 'category' or $page_name == 'cms' or $page_name == 'new-products' or $page_name == 'best-sales' or $page_name == 'prices-drop' or $page_name == 'manufacturer' or $page_name == 'sitemap' or $page_name == 'content' or $page_name == 'stores' or $page_name == 'search'}itemscope itemtype="http://schema.org/BreadcrumbList"{/if}> <!-- <div class="container" > --> <!--<meta itemprop="name" content="{$meta_title|escape:'html':'UTF-8'}"/>--> <span {if $page_name == 'product' or $page_name == 'category' or $page_name == 'cms' or $page_name == 'new-products' or $page_name == 'best-sales' or $page_name == 'prices-drop' or $page_name == 'manufacturer' or $page_name == 'sitemap' or $page_name == 'content' or $page_name == 'stores' or $page_name == 'search'}itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem"{/if}><meta itemprop="position" content="1"><a class="home" itemprop="item" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}"><meta itemprop="name" content="{l s='Home'}" /><i class="icon-home"></i></a></span> {if isset($path) AND $path} <span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == (int)Configuration::get('PS_ROOT_CATEGORY')} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span> {if $page_name == 'product' or $page_name == 'category' or $page_name == 'cms' or $page_name == 'new-products' or $page_name == 'best-sales' or $page_name == 'prices-drop' or $page_name == 'manufacturer' or $page_name == 'sitemap' or $page_name == 'content' or $page_name == 'stores' or $page_name == 'search'} {if $path|strpos:'span' !== false} <span class="navigation_page" > {$path|@replace:'<a ': '<span > <span > <a itemprop="item" '|@replace:'data-gg="">': '> <span >'|@replace:'</a>': '</a></span></span>'}</span> {else} <span itemprop="itemListElement" class="item-breadcrumb" itemscope="" itemtype="http://schema.org/ListItem"><meta itemprop="position" content="1"><meta itemprop="item" content="{if isset($force_ssl) && $force_ssl}https://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{else}http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{/if}" /><meta itemprop="name" content="{$path}" /><span class="item-breadalone">{$path}</span></span> {/if} {else} {if $path|strpos:'span' !== false} <span class="navigation_page" > {$path|@replace:'<a ': '<span > <span > <a '|@replace:'data-gg="">': '> <span >'|@replace:'</a>': '</a></span></span>'}</span> {else} <span class="item-breadalone">{$path}</span> {/if} {/if} {/if} </div> Thanks for this code, it worked on PS 1.6.1 to eliminate the <Missing field "position"> and <Either "name" or "item.name" should be specified> errors I had from google. Link to comment Share on other sites More sharing options...
NahoTchan Posted March 31, 2020 Share Posted March 31, 2020 Hello. For my prestashop 1.6 original theme please. We need to install the module and replace the file breadcrumb.tpl or i can replace only the file breadcrumb.tpl? i must to replace for the dmr-electronics code in date of 29/01/2020? Thank you verry much. gmbreadcrumb_1_1_1.zip breadcrumb.tpl 2.26 Ko Link to comment Share on other sites More sharing options...
romaric17 Posted May 1, 2020 Share Posted May 1, 2020 On 1/26/2020 at 6:52 PM, Masteries said: Thanks for this! Just a question, our theme have some user defined variables inside breadcrumb.tpl (we use Warehouse): <div class="breadcrumb clearfix {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}fullwidth-breadcrumb{/if}"> {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}<div class="container">{/if} <a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}"><i class="icon-home"></i></a> {if isset($path) AND $path} <span class="navigation-pipe"{if isset($category) && isset($category->id_category) && $category->id_category == (int)Configuration::get('PS_ROOT_CATEGORY')} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span> {if $path|strpos:'span' !== false} <span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="title">'|@replace:'</a>': '</span></a></span>'}</span> {else} {$path} {/if} {/if} {if $page_name == 'product'} {hook h='productnavs'} {/if} {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}</div>{/if} </div> If I replace this with your module hook, would it affect how things related to breadcrumb looks? Or should I also edit your gmbreadcrumb.tpl so it's compatible with the theme? If you still need it, here is an schema.org updated breadcrumb.tpl for Warehouse: https://petitcommerce.net/en/schema-org-breadcrumbs-warehouse-prestashop/ 1 Link to comment Share on other sites More sharing options...
soundsystemconnection Posted May 6, 2020 Share Posted May 6, 2020 (edited) hello, i just replaced the code in breadcrumb.tpl (in YOUR THEME/breadcrumb.tpl) on presta 1.6.0.6 cleared the presta cache but i get the same breadcumb errors on google structured data as the value is still data-vocabulary.org what should i do to make the changes effective to schema.org? i noted that in my products page also after the modification of the tpl file i have 2 columns for breadcrumbs, one with the new schema.org data and one with the old vocabulary-data, how to get rid of the old one? give a look into the source page of one of my products: https://semiassi.it/it/ammortizzatori/9695-ammortizzatore-anteriore-destro-citroen-peugeot-a-olio.html Edited May 6, 2020 by soundsystemconnection (see edit history) Link to comment Share on other sites More sharing options...
Ashka Posted October 19, 2020 Share Posted October 19, 2020 Thanks a lot Link to comment Share on other sites More sharing options...
Mikael Mortensen Posted December 9, 2020 Share Posted December 9, 2020 First: thanks Darash for the revised breadcrumb file! I have replaced the breadcrumb.tpl file with the one in the first post. Prestashop 1.6.1.18 Seems to work fine, but I get a strange " / " in front of the products name on the breadcrumb, when products have a long name, and go to the next line (most visible on mobile) Please see red marking on attached picture. Can someone advise me on how to move it? Thanks and have a nice day. Link to comment Share on other sites More sharing options...
Medical-Online.it Posted February 12, 2021 Share Posted February 12, 2021 Hello, I'm getting error 500. Even after clearing the cache. What can it depend on? I show you how it was before and how it is after the change. BEFORE AFTER Link to comment Share on other sites More sharing options...
Medical-Online.it Posted February 15, 2021 Share Posted February 15, 2021 On 12/2/2021 at 12:18 PM, Medical-Online.it dice: Ciao, ricevo l'errore 500. Anche dopo aver svuotato la cache. Da cosa può dipendere? Ti mostro com'era prima e come è dopo il cambiamento. PRIMA DOPO Hello, can anyone help me? Thank you Link to comment Share on other sites More sharing options...
Pperez75 Posted February 16, 2021 Share Posted February 16, 2021 Thank you Daresh. Your tpl file was a real life saver! Link to comment Share on other sites More sharing options...
jeyaseelansarc Posted March 15, 2021 Share Posted March 15, 2021 Thank you Daresh. Your update helped me to solve this breadcrumb issue Link to comment Share on other sites More sharing options...
QuantumDev Posted March 16, 2021 Share Posted March 16, 2021 Thank you Daresh 👍 Link to comment Share on other sites More sharing options...
letrof Posted July 22, 2021 Share Posted July 22, 2021 Hi, Thank you for this great module! I would like to change the home icon to my webpage name so I edited: <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a class="home" itemprop="item" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home' mod='gmbreadcrumb'}"> <i class="icon-home"></i> </a> and changed it to: <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home' mod='gmbreadcrumb'}">Lawendowy Kredens </a> but this gives me google warnings: "missing field: "item"" Any clue what am I missing? Link to comment Share on other sites More sharing options...
AKSE Posted August 30, 2021 Share Posted August 30, 2021 On 12/9/2020 at 11:47 AM, Mikael Mortensen said: First: thanks Darash for the revised breadcrumb file! I have replaced the breadcrumb.tpl file with the one in the first post. Prestashop 1.6.1.18 Seems to work fine, but I get a strange " / " in front of the products name on the breadcrumb, when products have a long name, and go to the next line (most visible on mobile) Please see red marking on attached picture. Can someone advise me on how to move it? Thanks and have a nice day. The new .tpl file works fine (Warehouse theme on 1.6). Just replaced the original file with the new .tpl But we get the same " / " and that is on top of the " > " that is already present in the breadcumb so we too get longer lines. Anyone solved how to remove the " / " from the breadcrumb listing? 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