Jump to content

Daresh

Members
  • Posts

    2,584
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by Daresh

  1. Thanks for your feedback, the folders got deleted during my tests, but maybe there's something that needs to be added, what is your prestashop version? And the module with that feature should be v.1.3.8.
  2. And there you have it - I just updated the Tidy module to remove empty folders after it finished removing unused images. So it should also remove empty folders even when there are no unused images, that's probably your case.
  3. Currently it does not delete the folders, but it's a good idea for a future update.
  4. It usually requires modifying a couple of tpl files. No single fix for this.
  5. Yes, you can do exactly that, if a better solution comes out I'm happy to promote it
  6. It's there by default, when going to Orders you have a button to add a new order.
  7. 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.
  8. Yes, that's the best solution! A module may be usefull if someone would like to link also the last element of the breadcrumb.
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. I don't know, but I think it should not matter, cause there are already other links in the shop to those pages.
  14. 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.
  15. 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!
  16. 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?
  17. Use the snippets testing tool to verify your breadcrumb: https://search.google.com/structured-data/testing-tool/u/0/?hl=en
  18. 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.
  19. The products from subcategories show probably because of the faceted search module, you can configure it not to shop products from subcategories.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More