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
  #31  
Old 06-01-2005, 07:46 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Thanks a lot for this Mod. I also would like to have the site map show not only my product categories, but also my help area and static pages, (it was mentioned earlier on in this thread) but I did not see a solution? Can anyone help me out?

Thanks
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #32  
Old 06-01-2005, 09:38 AM
 
offline offline is offline
 

Member
  
Join Date: Apr 2005
Posts: 17
 

Default

I just edited the sitemap code by hand myself to add relavent links.
__________________
Version 4.1.1
Reply With Quote
  #33  
Old 06-16-2005, 08:35 AM
  Bling's Avatar 
Bling Bling is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 162
 

Default

GREAT CODE...took a few tries but I figured it out. You actually made it very easy and I was trying to make it harder

I would love to get my static pages on there...which template do you mod and what would a link look like in that mod...thanks!

Bling
__________________
Thanks...Bling

4.4.2
Reply With Quote
  #34  
Old 06-16-2005, 03:04 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default Re: Site map page

Quote:
Originally Posted by fernando

3. Add the following lines near the bottom of skin1/customer/home_main.tpl

Code:
{* Lines added for sitemap *} {elseif $main eq "sitemap"} {include file="customer/sitemap.tpl"} {* End of added lines *} {else} {include file="common_templates.tpl"} {/if}



Hi Fermando,

Would you please help me on this? After this step, there's smarty error...not sure if I have put the right code at the right file...
I had to delete the whole thing...


Thanks,
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #35  
Old 06-16-2005, 03:28 PM
  Bling's Avatar 
Bling Bling is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 162
 

Default

I got a smarty error as well...Im not sure if its the same thing but the last {else}
{include file="common_templates.tpl"}
{/if}

is actually already part of the template and not what you actually what you put in the template. The only part you actually paste in is the top 4 lines...the bottom is just used as reference.

Hopefully it helps...that was the biggest part I messed up on...or maybe I am just way too newbie...heh




{* Lines added for sitemap *}
{elseif $main eq "sitemap"}
{include file="customer/sitemap.tpl"}
{* End of added lines *}

{else}
{include file="common_templates.tpl"}
{/if}
__________________
Thanks...Bling

4.4.2
Reply With Quote
  #36  
Old 06-20-2005, 07:51 PM
 
extreme extreme is offline
 

Member
  
Join Date: Jun 2005
Posts: 28
 

Default

Anyone got this working for 3.5.x yet???

I have the same issue as speedmaster & longhorn180.... would love to get it working properly!
__________________
X-Cart version 4.1.10 (upgraded painfully from 4.0.18.)
Reply With Quote
  #37  
Old 08-02-2005, 07:45 AM
 
rcci@mindspring.com rcci@mindspring.com is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Youngsville, NC
Posts: 48
 

Default re:sitemap

Quote:
Originally Posted by offline
I just edited the sitemap code by hand myself to add relavent links.

Did you edit the sitemap.php or something else? I was looking at the code, and wasn't sure where to add....

Vicky Rowe
__________________
Vicky Rowe
Satori Digital Marketing
http://www.satoridigitalmarketing.com
X-Cart Pro Version 4.0.13, running on a Unix server
Reply With Quote
  #38  
Old 08-07-2005, 01:19 PM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default

Hi all,
I have added the sitemap to my store but there is one alteration I would like to do, and am stumped on how to achieve what I need. This is where I am looking for assistance if someone would be so kind.

The alteration I need to make to fernando's code, is in this piece:

Code:

{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}[*]{$allcategories[l3_cat_num].category}


I only want this piece of code to work for certain subcategories, not all of them. What I need is for the sitemap to dive in and display this level ONLY for:
http://storename.../xcart/home.php?cat=983
http://storename.../xcart/home.php?cat=1014
http://storename.../xcart/home.php?cat=1075
http://storename.../xcart/home.php?cat=1091

I can't figure it out though. Can anyone help me out? It would be GREATLY appreciated. I did PM fernando, but unfortunately he is extremely busy with projects.

If anyone could help me with it, it would be greatly appreciated!!

Thanks,
Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
Reply With Quote
  #39  
Old 08-08-2005, 08:56 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Brian...copied your post here and deleted the other one for simplicity sake. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #40  
Old 08-12-2005, 04:25 AM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default

Anyone?? (2 posts up)

It would be greatly appreciated, thanks!
Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
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 08:19 AM.

   

 
X-Cart forums © 2001-2020