X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Site map page (https://forum.x-cart.com/showthread.php?t=12393)

taltos1 06-01-2005 07:46 AM

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

offline 06-01-2005 09:38 AM

I just edited the sitemap code by hand myself to add relavent links.

Bling 06-16-2005 08:35 AM

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

MythNReality 06-16-2005 03:04 PM

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,

Bling 06-16-2005 03:28 PM

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}

extreme 06-20-2005 07:51 PM

Anyone got this working for 3.5.x yet??? :-s

I have the same issue as speedmaster & longhorn180.... would love to get it working properly!

rcci@mindspring.com 08-02-2005 07:45 AM

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

btomasie 08-07-2005 01:19 PM

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

balinor 08-08-2005 08:56 AM

Brian...copied your post here and deleted the other one for simplicity sake. Thanks!

btomasie 08-12-2005 04:25 AM

Anyone?? (2 posts up)

It would be greatly appreciated, thanks!
Brian


All times are GMT -8. The time now is 05:58 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.