I would like to a breadcrumb navigation on all of the pages in the cart.
(ie. Home > Category > SubCategory > Product )
How can I do that?
(ie. Home > Category > SubCategory > Product )
How can I do that?
Last edited by i2Paq on Thu Nov 11, 2010 5:26 pm, edited 1 time in total.
Reason: Topic moved
Reason: Topic moved
This should be done automatically?
eg: http://demo.opencart.com/index.php?rout ... duct_id=41
Unless I'm misunderstanding you.
eg: http://demo.opencart.com/index.php?rout ... duct_id=41
Unless I'm misunderstanding you.
WhiteBirch - Premium OpenCart Templates on ThemeForest
Skylight - Our first OpenCart 1.4.9.1 template!
Darkwood - Stylish new OpenCart 1.4.9.1 template!
breadcrumb is already in the default template. But if you purchased a tempalate and it doesn't have the breadcrumb, open the header.tpl and add this above the <div id="container"> tag
<?php
if(isset($this->request->get['route']) && $this->request->get['route'] != 'common/home'){
?>
<div id="breadcrumb">
<div id="crumbs" style="padding-left:30px;">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
</div>
<?php
}
?>
I sell templates if anyone needs them
www.eshopalot.com
<?php
if(isset($this->request->get['route']) && $this->request->get['route'] != 'common/home'){
?>
<div id="breadcrumb">
<div id="crumbs" style="padding-left:30px;">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
</div>
<?php
}
?>
I sell templates if anyone needs them
www.eshopalot.com
Hi, thank you for the reply. I am using the standard template but there are no breadcrumbs. I did what you said and they appeared right at the very top of the page above the logo etc.
I have added 2 Mods to the template so perhaps that is why they are not showing? Thinking about it I have changed quite a lot - I've got rid of the Special/Bookmark/Contact etc. at the top. I done away with the blue bar and the tabs too so probably the breadcrumbs were a casualty of my inexperienced tinkering
Thank you for trying to help though
I have added 2 Mods to the template so perhaps that is why they are not showing? Thinking about it I have changed quite a lot - I've got rid of the Special/Bookmark/Contact etc. at the top. I done away with the blue bar and the tabs too so probably the breadcrumbs were a casualty of my inexperienced tinkering
Thank you for trying to help though
Why not look for the original header.tpl in the zip you downloaded?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Hi again,
This is in my current amended header.tpl
and this is from the original download
I can't see any difference but I am hoping one of you experts can,
Thanks
This is in my current amended header.tpl
Code: Select all
<div class="div6">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<?php if (isset($common_error)) { ?>
<div class="warning"><?php echo $common_error; ?></div>
<?php } ?>
<div id="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo str_replace('&', '&', $breadcrumb['href']); ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
Code: Select all
<div class="div6">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<?php if (isset($common_error)) { ?>
<div class="warning"><?php echo $common_error; ?></div>
<?php } ?>
<div id="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo str_replace('&', '&', $breadcrumb['href']); ?>"><?php echo $breadcrumb['text']; ?></a>
<?php } ?>
</div>
Thanks
Who is online
Users browsing this forum: Semrush [Bot] and 122 guests