web design, England, Britain, UK, belgium
 
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

Die

27.

Okt

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!
Zuletzt aktualisiert am Dienstag, 27. Oktober 2009 um 18:31 Uhr
 

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:

Titel:
Comment:
Comments (21)
Thanks
21 Freitag, 03. Februar 2012 um 03:35 Uhr
Michael
Good post! TQVM
http://98dev.com
VM 1.1.8
20 Donnerstag, 12. Januar 2012 um 19:00 Uhr
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 Donnerstag, 29. Dezember 2011 um 14:17 Uhr
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 Montag, 08. August 2011 um 05:45 Uhr
Amarjeet
Thanks for this post .. saved my time!!
you are GOD !!!!!!!! xD
17 Mittwoch, 03. August 2011 um 23:37 Uhr
imthejavi
DUUUDE!!!

this works !!!!!!!

also tryit with flypage Smile

cheers from MX!

thx for this hack!
Thank you!
16 Mittwoch, 13. Juli 2011 um 10:04 Uhr
Skarbicht
Perfect!
Thanks
15 Donnerstag, 19. Mai 2011 um 09:59 Uhr
Koen Vandenput
This works great, Thank you for sharing.
Thank you!
14 Donnerstag, 12. Mai 2011 um 12:54 Uhr
Dennis
Thank you verry much!!!
Pathway
13 Mittwoch, 10. November 2010 um 08:01 Uhr
Deep Singh
very nice man
home
12 Donnerstag, 19. August 2010 um 15:49 Uhr
hom
is it possible to add a "home"(shop index page) link before the first category in the breadcrumbs?
Fixed it
11 Montag, 16. August 2010 um 19:41 Uhr
Lex
I just didn't have the breadcrumbs module activated in the joomla module manager. Thanks!
Breadcrumbs not showing
10 Montag, 16. August 2010 um 19:13 Uhr
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 Samstag, 14. August 2010 um 11:22 Uhr
GJC admin
Hi,
Would have to check your site.
Email me thru the contact page..
Still breadcrumbs problem
8 Samstag, 14. August 2010 um 10:53 Uhr
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 Montag, 29. März 2010 um 18:40 Uhr
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 Dienstag, 16. März 2010 um 20:22 Uhr
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 Samstag, 06. März 2010 um 07:24 Uhr
GJC (admin)
Email me thru the contact page with your details.
Breadcrumbs still aren't showing up
4 Freitag, 05. März 2010 um 22:17 Uhr
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 Montag, 28. Dezember 2009 um 08:38 Uhr
aj
Great! This help was much appreciated!
THANK YOU!
2 Dienstag, 08. Dezember 2009 um 11:39 Uhr
pez
that was exactly what I was looking for. thank you so much!! Smile
thanks
1 Freitag, 20. November 2009 um 13:51 Uhr
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