osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Dynamic SiteMap V 1.0

This is a discussion on Dynamic SiteMap V 1.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; If you want to have category links to be suitable and compatible with breadcrumb and other contribs (like some categories ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-06-2007, 05:24 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Dynamic SiteMap V 1.0

If you want to have category links to be suitable and compatible with breadcrumb and other contribs (like some categories box enhancments and similar), which means to have complete links including the parent categories, you just need to make these few minor changes included below.

AUTHORS: wizaard (if) and funous (the others) ;)

-------------------------------------------------------------
HOW TO?
CHANGES TO catalog/includes/classes/category_tree.php
-------------------------------------------------------------
REPLACE:
function buildBranch($parent_id, $level = 0) {
WITH:
function buildBranch($parent_id, $level = 0, $p_category_link = false) {

ADD BELOW FOREACH FUNCTION (around line 23):
if ($parent_id == '0') {
$category_link = $category_id;
} else {
$category_link = $p_category_link . '_' . $category_id;
}

REPLACE:
$result .= $this->buildBranch($category_id, $level+1);}
WITH:
$result .= $this->buildBranch($category_id, $level+1, $category_link);}

---------------------------------------------------------------
THE END, ENJOY

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Dynamic SiteMap V 1.0 michael_s New osCommerce Contributions 0 07-06-2007 05:12 AM
Dynamic SiteMap V 1.0 michael_s New osCommerce Contributions 0 07-02-2007 03:03 PM
Google XML Sitemap w/ Admin michael_s New osCommerce Contributions 0 05-07-2007 03:01 AM
Dynamic SiteMap V 1.0 michael_s New osCommerce Contributions 0 03-22-2007 07:51 AM
Google XML Sitemap w/ Admin michael_s New osCommerce Contributions 0 03-07-2007 11:10 AM


All times are GMT -8. The time now is 09:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax