Post by Jonas92 » Mon Mar 18, 2019 7:42 pm

How to remove breadcrumb path display. I just want to see the last point.
 
For example:
If there is breadcrumb: OpenCart Community Forum> OpenCart 2.0 Support> General Support

I would like to be shown only: General Support

How can i do that?

Active Member

Posts

Joined
Fri May 26, 2017 3:58 pm

Post by IP_CAM » Tue Mar 19, 2019 3:32 am

Well, if you are familiar with the OC way of doing things, some of the
Extension-Wisdom, found here:
https://www.opencart.com/index.php?rout ... _license=0
might be of help on this. Especially one, called Alea breadcrumb show/hide Module.

And if not, then you'll have to get it made, as Custom Job, and be
willing to pay a medium-to-high 2 figure amount of US$ for it.

Good Luck !
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by dparakhiya » Mon Apr 22, 2019 2:37 pm


For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by cedcommerceteam » Wed Apr 24, 2019 5:44 pm

Hello @Jonas92,
As breadcrumb is written on all templates by below code,

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

you need to override all templates using OCMOD or VQMOD.

I have written code for OCMOD, below you copy this to any with name.ocmod.xml and install using Opencart Installer
This will make breadcrumbs as per you need for category and product,

you can add other templates seperated by comma (,) and it will work for that templates too like i have added for product and category page path="catalog/view/theme/default/template/product/category.tpl,catalog/view/theme/default/template/product/product.tpl".

<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>CedCommerce</name>
<code>cedcommerce</code>
<version>1.0.0</version>
<author>Cedcommerce</author>
<link>cedcommerce.com</link>
<file path="catalog/view/theme/default/template/product/category.tpl,catalog/view/theme/default/template/product/product.tpl">
<operation error="log">
<search position="replace"><![CDATA[<?php foreach ($breadcrumbs as $breadcrumb) { ?>]]></search>
<add><![CDATA[
<?php if(!empty($breadcrumbs)) { ?>
<?php $breadcrumb = end($breadcrumbs); ?>
]]></add>
</operation>
</file>
</modification>

Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: support@cedcommerce.com
CedCommerece : Officail Opencart Partners
CedCommerce Official : www.cedcommerce.com
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Magenative Mobile App/IOS Development : magenative.com
Webinar : Power up Your holiday season marketing with the Automation tool


User avatar
Active Member

Posts

Joined
Wed Aug 09, 2017 9:02 pm
Who is online

Users browsing this forum: Baidu [Spider] and 128 guests