Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Site map page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 09-18-2006, 12:51 AM
 
jayzee jayzee is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 53
 

Default Re: Site map page

could you post your sitemap files so we can see how they got round you problem.
thanks

J
__________________
Hi I\'m using x-cart 4.0 and 4.1
Reply With Quote
  #72  
Old 01-11-2007, 02:23 PM
 
Impact_1 Impact_1 is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 88
 

Default Re: Site map page

Any new code for this? 4.1.3 or above?
__________________
Version: 4.1.3

One of the largest UK Suppliers of Car Modification Accessories
http://www.impact-styling.com
Reply With Quote
  #73  
Old 01-11-2007, 02:32 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Site map page

Here's a basic sitemap, though it doesn't show categories.
http://www.xcartmods.co.uk/click.php?id=10
__________________
xcartmods.co.uk
Reply With Quote
  #74  
Old 04-03-2007, 12:26 PM
 
medici medici is offline
 

Newbie
  
Join Date: Nov 2006
Posts: 2
 

Default Re: Site map page - Links

I can't figure out how to link the site map's text to the appropriate category/subcategory page. Any help would be appreciated.

HTML Code:
{* $Id: sitemap.tpl,v 1.00 2005/02/24 09:53:29 max Exp $ *} {include file="dialog.tpl" title="Site Map" content=$smarty.capture.sitemap extra="width=100%"} {capture name=sitemap} <ul type="square"> {*** start unordered list***} {section name=l1_cat_num loop=$allcategories} {*** loop ALL categories ***} {if $allcategories[l1_cat_num].parentid eq 0} {*** loop root categories/parentid 0 - level 1***} <li> {$allcategories[l1_cat_num].category} {if $allcategories[l1_cat_num].subcategory_count gt 0} {*** check if root cat has child cats ***} <ul type="square"> {section name=l2_cat_num loop=$allcategories} {*** loop through sub cats with matching parent id ***} {if $allcategories[l2_cat_num].parentid eq $allcategories[l1_cat_num].categoryid} <li> {$allcategories[l2_cat_num].category} {if $allcategories[l2_cat_num].subcategory_count gt 0} {*** check if parent has child cats***} <ul type="square"> {section name=l3_cat_num loop=$allcategories} {if $allcategories[l3_cat_num].parentid eq $allcategories[l2_cat_num].categoryid} <li> {$allcategories[l3_cat_num].category} {if $allcategories[l3_cat_num].subcategory_count gt 0} {*** check if parent has child cats***} <ul> {section name=l4_cat_num loop=$allcategories} {if $allcategories[l4_cat_num].parentid eq $allcategories[l3_cat_num].categoryid} <li> {$allcategories[l4_cat_num].category} {/if}{/section}</ul> {/if}{/if}{/section}</ul> {/if}{/if}{/section}</ul> {/if}{/if}{/section}</ul> {/capture}
__________________
x-cart gold 4.0.5
Reply With Quote
  #75  
Old 04-25-2007, 09:58 AM
 
groovedis groovedis is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 52
 

Default Re: Site map page

Not working for me either. All I get is our categories and subcategories listed like this...

[*]New releases[*]Albums[*]Breaks[*]DJ Tools[*]Downtempo, Leftfield[*]Drum & Bass[*]Electro[*]Grime[*]Hip Hop[*]House[*]Indie[*]Mash-Ups[*]Nu Jazz, Broken Beat[*]Reggae, Dub[*]Reissue, Jazz, Funk[*]Soul[*]Techno[*]World[/list][*]Singles[*]Breaks[*]Downtempo, Leftfield[*]Drum & Bass[*]Electro[*]Grime[*]Hip Hop[*]House[*]Indie[*]Mash-Ups[*]Nu Jazz, Broken Beat[*]Reedit[*]Reggae, Dub[*]Reissue, Jazz, Funk[*]Soul[*]Techno[*]World[/list][/list][*]Restocks

etc.

Any help?
__________________
X-Cart version 4.0.13 (unix)
Reply With Quote
  #76  
Old 05-02-2007, 07:40 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Site map page

Here is what I am using....

Code:
{* $Id: sitemap.tpl,v 1.00 2005/02/24 09:53:29 max Exp $ *} {capture name=sitemap} <ul> {*** start unordered list***} {section name=l1_cat_num loop=$allcategories} {*** loop ALL categories ***} {if $allcategories[l1_cat_num].parentid eq 0} {*** loop root categories/parentid 0 - level 1***} <li><a href="home.php?cat={$allcategories[l1_cat_num].categoryid}">{$allcategories[l1_cat_num].category}</a></li> {if $allcategories[l1_cat_num].subcategory_count gt 0} {*** check if root cat has child cats ***} <ul> {section name=l2_cat_num loop=$allcategories} {*** loop through sub cats with matching parent id ***} {if $allcategories[l2_cat_num].parentid eq $allcategories[l1_cat_num].categoryid} <li><a href="home.php?cat={$allcategories[l2_cat_num].categoryid}">{$allcategories[l2_cat_num].category}</a></li> {if $allcategories[l2_cat_num].subcategory_count gt 0} {*** check if parent has child cats***} <ul> {section name=l3_cat_num loop=$allcategories} {if $allcategories[l3_cat_num].parentid eq $allcategories[l2_cat_num].categoryid} <li><a href="home.php?cat={$allcategories[l3_cat_num].categoryid}">{$allcategories[l3_cat_num].category}</a></li> {if $allcategories[l3_cat_num].subcategory_count gt 0} {*** check if parent has child cats***} <ul> {section name=l4_cat_num loop=$allcategories} {if $allcategories[l4_cat_num].parentid eq $allcategories[l3_cat_num].categoryid} <li><a href="home.php?cat={$allcategories[l4_cat_num].categoryid}">{$allcategories[l4_cat_num].category}</a></li> {/if}{/section}</ul> {/if}{/if}{/section}</ul> {/if}{/if}{/section}</ul> {/if}{/if}{/section} </ul> {/capture} {include file="dialog.tpl" title="Site map" content=$smarty.capture.sitemap extra="width=100%"}
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #77  
Old 05-02-2007, 11:19 AM
 
medici medici is offline
 

Newbie
  
Join Date: Nov 2006
Posts: 2
 

Default Re: Site map page

Nice work JWait. It works great.
__________________
x-cart gold 4.0.5
Reply With Quote
  #78  
Old 05-02-2007, 11:44 AM
 
groovedis groovedis is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 52
 

Default Re: Site map page

Yeah this works perfectly. Thanks JWait!
__________________
X-Cart version 4.0.13 (unix)
Reply With Quote
  #79  
Old 05-30-2007, 09:26 AM
 
sbstart sbstart is offline
 

Newbie
  
Join Date: May 2007
Posts: 2
 

Default Re: Site map page

when I pull up my sitemap my categories and products look like this:

[*] [*] [*] [*] [*] [/list]http://www.sbstartupco.com/store/sitemap.php

any help would be greatly appreciated

version 4.1
__________________
http://www.lightingondemand.com
version 4.1.7
Reply With Quote
  #80  
Old 06-01-2007, 09:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Site map page

The code I posted is for version 4.0.19. Version 4.1.x is totally different and as far as I know there is not a working sitemap for those versions.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:48 AM.

   

 
X-Cart forums © 2001-2020