PrestashopLearner Posted May 19, 2015 Share Posted May 19, 2015 I'm having an issue with my Prestashop Breadcrumb display - it seems to be duplicating the path somehow. The breadcrumb appears as follows: 22 (.224/5.69)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>HANDGUN SOLID (VRG-6)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SPITZER BOATTAIL (VRG-5)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>HANDGUN SOLID (VRG-6)>SOLID COPPER (VRG-2)>SOLID COPPER (VRG-2)>PLAINSMASTER (VRG-4)>Solid Copper (VRG-2)>Solid Copper VRG2.224, 46gr When it should appear as follows: 22 (.224/5.69)>SOLID COPPER (VRG-2)>Solid Copper VRG2.224, 46gr A link to the website with a breadcrumb issue:http://besthuntingbullets.com/solid-copper-vrg-2/1736-vrg-2-solid-copper.html What could be causing this, and how can I fix it? Thank you for your assistance in advance. Link to comment Share on other sites More sharing options...
NemoPS Posted May 20, 2015 Share Posted May 20, 2015 Can you check how your breadcrumb.tpl file looks like in the theme folder? Presta version? Link to comment Share on other sites More sharing options...
PrestashopLearner Posted May 22, 2015 Author Share Posted May 22, 2015 Hi Nemo1,The breadcrumb.tpl file has the following code: <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} <div class="breadcrumb clearfix"> <a class="home" href="{$base_dir}" 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 == 1}style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span> {if !$path|strpos:'span'} <span class="navigation_page">{$path}</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> <a href="{$smarty.server.HTTP_REFERER|escape}" 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 -->Prestashop version is 1.6.0.9. Thank you for your support. Link to comment Share on other sites More sharing options...
NemoPS Posted May 23, 2015 Share Posted May 23, 2015 Hm, it looks okay at first glance. Are you using any override? Link to comment Share on other sites More sharing options...
PrestashopLearner Posted May 25, 2015 Author Share Posted May 25, 2015 Not that I'm aware of.There is no module for it installed that overrides the default breadcrumb behavior.I'm at a loss as to what could be causing the issue... Link to comment Share on other sites More sharing options...
PrestashopLearner Posted May 27, 2015 Author Share Posted May 27, 2015 Any ideas? Link to comment Share on other sites More sharing options...
NemoPS Posted May 29, 2015 Share Posted May 29, 2015 What happens if you (after making a backup) clear the file completely? Just as a test Link to comment Share on other sites More sharing options...
PrestashopLearner Posted May 29, 2015 Author Share Posted May 29, 2015 When I remove the file the page cannot load.When I remove the content within the file, the breadcrumb simply disappears. Link to comment Share on other sites More sharing options...
NemoPS Posted May 29, 2015 Share Posted May 29, 2015 It looks like the faulty part comes from tools.php then, getPath method. Try replacing that file with a clean one Link to comment Share on other sites More sharing options...
PrestashopLearner Posted May 29, 2015 Author Share Posted May 29, 2015 I'm not sure where to find the tools.php file, where would it be located? Link to comment Share on other sites More sharing options...
NemoPS Posted May 30, 2015 Share Posted May 30, 2015 classes/tools.php Before that, as a simpler step, can you disable javascript and refresh the page? Link to comment Share on other sites More sharing options...
PrestashopLearner Posted June 1, 2015 Author Share Posted June 1, 2015 Thank you I disabled Javascript, but there didn't seem to be any difference. Link to comment Share on other sites More sharing options...
PrestashopLearner Posted June 1, 2015 Author Share Posted June 1, 2015 I think it's worth noting that, not all products are having this issue. There are only a select few with the issue. Link to comment Share on other sites More sharing options...
NemoPS Posted June 1, 2015 Share Posted June 1, 2015 That's interesting. Is there something in common among those? Link to comment Share on other sites More sharing options...
PrestashopLearner Posted June 1, 2015 Author Share Posted June 1, 2015 Seems like they're all falling under a specific category.That would be 22 (.224/5.69) Link to comment Share on other sites More sharing options...
PrestashopLearner Posted June 1, 2015 Author Share Posted June 1, 2015 It must have something to do with that category then... no other products, except for the ones under that category are giving this issue. Link to comment Share on other sites More sharing options...
Recommended Posts