Thursday, 6 October 2016

Removing the Breadcrumbs from Opencart

For this tutorial, I will be showing you how to remove the breadcrumbs from your opencart website,  I will be using my cPanel File Manager to do this.

What I want to remove.
The breadcrumb shows on almost every page on the store, so there is a lot of files to edit. The piece of code you will need to remove:

<ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>

This is found on line 3 - 6 on every file you will be editing. To find the files you need to edit you will need to use your file manager and go to the folder template, this can be found through the path public_html/catalog/view/theme/default/template. There are several folders you will need to access from here to find the files you need to edit, these are the folders and files you need to change:

  • Product - product.tpl, category.tpl, search.tpl, compare.tpl,
  • Account - every file in this folder.
  • Checkout - cart.tpl, checkout.tpl,
  • Information - contact.tpl, information.tpl, sitemap.tpl
  • Common - success.tpl
  • Product - special.tpl
  • Error - not_found.tpl
All of these files need the breadcrumb code removed, save the changes and check your store to ensure they are all gone. These are the only ones that I found on my store, there maybe a few different depending on how you have your store set up.

Sam.

0 comments:

Post a Comment