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 : 2976 times
 
Comments (5)
@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