Ulti Clocks content

How to add the VirtueMart Breadcrumbs to the Browse Pages

JOOMLABOTTOM 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

Mar

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_UPDATED2
 

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:
  The word for verification.
Lowercase letters only with no spaces.

The word for verification.<br/>Lowercase letters only with no spaces.
Word verification:

Titre:
Comment:
Comments (21)
Thanks
21 Vendredi, 03 Février 2012 03:35
Michael
Good post! TQVM
http://98dev.com
VM 1.1.8
20 Jeudi, 12 Janvier 2012 19:00
Line
Does it work for VM 1.1.8 cause i seem to have some troubles with it..??
Breadcrumbs do not work after update.
19 Jeudi, 29 Décembre 2011 14:17
krmec
Hi, this solution worked fine on virtuemart 1.1.3. I have recently dan update on version 1.1.9. and I heve problem with Breadcrums. Have anyone some suggestion where is the problem? Thanks.
Valued post
18 Lundi, 08 Août 2011 05:45
Amarjeet
Thanks for this post .. saved my time!!
you are GOD !!!!!!!! xD
17 Mercredi, 03 Août 2011 23:37
imthejavi
DUUUDE!!!

this works !!!!!!!

also tryit with flypage Smile

cheers from MX!

thx for this hack!
Thank you!
16 Mercredi, 13 Juillet 2011 10:04
Skarbicht
Perfect!
Thanks
15 Jeudi, 19 Mai 2011 09:59
Koen Vandenput
This works great, Thank you for sharing.
Thank you!
14 Jeudi, 12 Mai 2011 12:54
Dennis
Thank you verry much!!!
Pathway
13 Mercredi, 10 Novembre 2010 08:01
Deep Singh
very nice man
home
12 Jeudi, 19 Août 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 Lundi, 16 Août 2010 19:41
Lex
I just didn't have the breadcrumbs module activated in the joomla module manager. Thanks!
Breadcrumbs not showing
10 Lundi, 16 Août 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 Samedi, 14 Août 2010 11:22
GJC admin
Hi,
Would have to check your site.
Email me thru the contact page..
Still breadcrumbs problem
8 Samedi, 14 Août 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 Lundi, 29 Mars 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 Mardi, 16 Mars 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 Samedi, 06 Mars 2010 07:24
GJC (admin)
Email me thru the contact page with your details.
Breadcrumbs still aren't showing up
4 Vendredi, 05 Mars 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 Lundi, 28 Décembre 2009 08:38
aj
Great! This help was much appreciated!
THANK YOU!
2 Mardi, 08 Décembre 2009 11:39
pez
that was exactly what I was looking for. thank you so much!! Smile
thanks
1 Vendredi, 20 Novembre 2009 13:51
hje
Well done. Saved me lots of pain.

Our Recommended Reading

For those interested in extending their 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.


Joomla! Social Networking with JomSocial
Joomla! Social Networking
with JomSocial

by Kwasi Boateng & Beatrice A. Boateng.
Joomla! 1.5 Multimedia
Joomla! 1.5 Multimedia
by Allan Walker.


Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
Joomla! Template Design: 2nd Edition
Create your own professional-quality
templates with this fast, friendly guide
by Tessa Blakeley Silver.
Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

object-oriented-javascript-applications-libraries
Object-Oriented JavaScript by
Stoyan Stefanov gives you a very
comprehensive grounding in
the latest Javascript techniques.

Read the review
Joomla! Web Security
Joomla! Web Security
by Tom Canavan.

Joomla 1.5 Top Extensions Cookbook
Joomla 1.5 Top Extensions Cookbook by
Suhreed Sarkar is an ideal and concise round up of the extensions available for the Joomla! system.

Read the review

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.

Mastering Joomla! 1.5 Extension and Framework Development
Mastering Joomla! 1.5 Extension and
Framework Development : 2nd Edition

by James Kennard.
Read the review

Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.
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! 1.5 Site Blueprints Joomla! 1.5 Site Blueprints
by Timi Ogunjobi.

Joomla! 1.5 JavaScript jQuery Joomla! 1.5 JavaScript jQuery
by Jose Argudo Blanco.
Read the review
Joomla! Social Networking with JomSocial Joomla! Social Networking with JomSocial
by Kwasi Boateng & Beatrice A. Boateng.

Joomla! 1.5 Multimedia Joomla! 1.5 Multimedia
by Allan Walker.

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 : 2nd Edition
by James Kennard.

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

Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

JOOMLABOTTOM



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