web design, England, Britain, UK, belgium
 
Ulti Clocks content

How to add the VirtueMart Breadcrumbs to the Browse Pages

GJC Web Design Joomla & VirtueMart how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help

A collection of help articles and coding examples for Joomla & Virtuemart

Belgium, VirtueMart & Joomla Web Design England UK Britain & Germany

Joomla, VirtueMart, how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help sand How to add the VirtueMart Breadcrumbs to the Browse Pages. Adding the Virtuemart Breadcrumbs to your Browse pages is not native to Virtuemart. Here are the steps and files needed to achieve this.
pathway, browse, navigation, category, virtuemart, tpl, template, php, set, add, list, file, product, components, shop, following, breadcrumbs, open, variable, code, pages, products, view, includes, templates, tools, themes, fetch, common, outdoor, default, snippet, appear, showmyfilename, cfg, echo, directly, showpathway, gjcwebdesign, www

Home Joomla - VirtueMart Joomla & VM How To's How to add the VirtueMart Breadcrumbs to the Browse Pages

Tue

27

Oct

How to add the VirtueMart Breadcrumbs to the Browse Pages

  • Joomla 1.5
  • VirtueMart 1.1

Adding the Virtuemart Breadcrumbs to your Browse pages is not native to Virtuemart.
Here are the steps and files needed to achieve this.



Virtuemart Breadcrumbs to your Browse Even though the $navigation_pathway is shown as Browse Template variable the code to render it is missing from the shop.browse.php file as of VirtueMart 1.1.3.


The first step is to open file administrator/components/com_virtuemart/html/shop.browse.php and look for the the following code -
 
// Set up the CMS pathway
  $category_list = array_reverse( $ps_product_category->get_navigation_list($category_id) );
  $pathway = $ps_product_category->getPathway( $category_list );
  $vm_mainframe->vmAppendPathway( $pathway );
 
and then add below it -
 
// Set the pathway for our template - 
 
  $tpl->set( 'pathway', $pathway );
 
  $navigation_pathway = $tpl->fetch( 'common/pathway.tpl.php');
 
  $tpl->set( "navigation_pathway", $navigation_pathway );//add navigation_pathway to template
 

Now we just need to add the variable call in our browse template so open components/com_virtuemart/themes/default/templates/browse/includes/browse_header_category.tpl.php and add the following snippet directly under the mm_showMyFileName(__FILE__);?>
 
<?php
if( $this->get_cfg( 'showPathway' )) {
  echo "<div class=\"pathway\">$navigation_pathway</div>";
}
?>
 

Now the VirtueMart Breadcrumbs appear on your Browse (Category) pages. You can see it here www.gjcwebdesign.com/outdoor-tools/view-all-products.


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
Last Updated on Tuesday, 27 October 2009 18:31 Read : 6605 times
 
Comments (12)
home
12 Thursday, 19 August 2010 15:49
hom
is it possible to add a "home"(shop index page) link before the first category in the breadcrumbs?
Fixed it
11 Monday, 16 August 2010 19:41
Lex
I just didn't have the breadcrumbs module activated in the joomla module manager. Thanks!
Breadcrumbs not showing
10 Monday, 16 August 2010 19:13
Lex
Hi,
I followed these tips by adding the code you provided but my breadcrumbs are still not appearing. Do I need to add any adress etc inside the pathway area?

Thanks so much!
@René
9 Saturday, 14 August 2010 11:22
GJC admin
Hi,
Would have to check your site.
Email me thru the contact page..
Still breadcrumbs problem
8 Saturday, 14 August 2010 10:53
René
I made the changes like you explained, but i still have problems with the breadcrumbs.
I figured out that i miss the index.php in the path. See below the example.

Working link.
http://www.mysite.nl/vm/index.php/products?page=shop.browse&category_id=32

Non working link
http://www.mysite.nl/vm/products?page=shop.browse&category_id=32

How can i solve this??

Thanks in advance.
Breadcrumbs don't show up.
7 Monday, 29 March 2010 18:40
Jeremy
Virtuemart doesn't have it's own breadcrumb system. It has "Page Navigation" which simply allows you to jump to the next product.

This is a fix to make VM send Joomla's Breadcrumb module the correct info on the product flypage details.
How can I add a "home"
6 Tuesday, 16 March 2010 20:22
Jonathan
Thank you for this great fix, it works exactly as described!!

is it possible to add a "home" link before the first category in the bread crumbs?
@Patrick
5 Saturday, 06 March 2010 07:24
GJC (admin)
Email me thru the contact page with your details.
Breadcrumbs still aren't showing up
4 Friday, 05 March 2010 22:17
Patrick
Thanks so much for this resource! I followed the steps, but I still don't see Breadcrumbs -- all I have for navigation are arrows for flipping through the preexisting product order -- not the path the user took. Do I need to do something else?
Thanks!
3 Monday, 28 December 2009 08:38
aj
Great! This help was much appreciated!
THANK YOU!
2 Tuesday, 08 December 2009 11:39
pez
that was exactly what I was looking for. thank you so much!! Smile
thanks
1 Friday, 20 November 2009 13:51
hje
Well done. Saved me lots of pain.

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
Subject:
Comment:

Latest Articles

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.

VM Live Product Search

Recommended Reading

For those interested in extending there knowledge of Joomla! & VirtueMart Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.

Learning Joomla! 1.5 Extension Development Learning Joomla! 1.5 Extension Development
by Joseph L. LeBlanc.
Read the review
Joomla! E-Commerce with VirtueMart Joomla! E-Commerce with VirtueMart
by Suhreed Sarkar.
Read the review
Joomla! Web Security Joomla! Web Security
by Tom Canavan.

Mastering Joomla! 1.5 Extension and Framework Development Mastering Joomla! 1.5 Extension and Framework Development
by James Kennard.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
by Tessa Blakeley Silver.

GJC Web Design Joomla & VirtueMart how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help

A collection of help articles and coding examples for Joomla & Virtuemart

Belgium, VirtueMart & Joomla Web Design England UK Britain & Germany

Joomla, VirtueMart, how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help



How to add the VirtueMart Breadcrumbs to the Browse Pages



How to add the VirtueMart Breadcrumbs to the Browse Pages. Adding the Virtuemart Breadcrumbs to your Browse pages is not native to Virtuemart. Here are the steps and files needed to achieve this.


pathway, browse, navigation, category, virtuemart, tpl, template, php, set, add, list, file, product, components, shop, following, breadcrumbs, open, variable, code, pages, products, view, includes, templates, tools, themes, fetch, common, outdoor, default, snippet, appear, showmyfilename, cfg, echo, directly, showpathway, gjcwebdesign, www