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?
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?
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
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.
May this extension useful :
https://www.opencart.com/index.php?rout ... n_id=23006
https://www.opencart.com/index.php?rout ... n_id=23006
For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com
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>
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
Who is online
Users browsing this forum: No registered users and 124 guests