Post by swdvs » Fri May 17, 2013 9:31 am

In 1.5.4,
I noticed in scouting my site for errors and tweaking little things, my site map is duplicating my categories. How do I eliminate the one set?

I have read things I think may have been related to my problem, but I'm not techie literate and it was over my head. If you look at http://swdvariety.com/index.php?route=i ... on/sitemap, you'll see what I mean.

Can anyone please explain to me how to fix this. Thanks
Last edited by swdvs on Mon May 20, 2013 10:42 pm, edited 1 time in total.

New member

Posts

Joined
Tue Feb 26, 2013 10:58 pm

Post by midgette » Fri May 17, 2013 1:48 pm

Mousing over Antiques on the left side I see the url is: swdvariety.com/index.php?route=product/category&path=90 (90 is a category_id).
And mousing over Products > Antiques in the menu, the url is: swdvariety.com/index.php?route=product/category&path=59_68 (68 is a sub-category under category 59).

You've have both categories and sub-categories for all of your sub-categories.

Hmm... Sorry I have no fast solution to reconfigure your data....but there's a good chance I'll come up with one while I'm sleeping tonight.

Good Luck.
Regards,
Midgette

Newbie

Posts

Joined
Sun Apr 28, 2013 4:16 pm

Post by midgette » Fri May 17, 2013 2:38 pm

I'm pretty sure you will want to delete categories 90,91,92,93,94,95,96,98,99,101,102,103,104,105,106,107,109,110,111 and 112. Then look at catalog/view/theme/default/template/product/category.tpl. I believe you changed something between lines 21 - 41 because this is what makes your sub-categories appear in the category list on the left side.

Newbie

Posts

Joined
Sun Apr 28, 2013 4:16 pm

Post by swdvs » Sat May 18, 2013 12:30 am

Hi midgette, thanks for the quick reply.

I do want to delete those from the sitemap.
I did change it when I followed this advice: http://forum.opencart.com/viewtopic.php?f=20&t=85703. I wanted to exclude specific categories in the top menu from showing in the sidebar menu.

If you look at labeshops.com, this is what I'm trying to accomplish. Top menu categories vs side menu categories (see her products page) and no duplication in the sitemap.

Do I need to put it back to the original and just follow this one: http://forum.opencart.com/viewtopic.php?f=21&t=69271? Will just hiding the categories in the sidebar accomplish what I want to do?

New member

Posts

Joined
Tue Feb 26, 2013 10:58 pm

Post by midgette » Sat May 18, 2013 2:45 am

Ah, I THINK I understand now.... To remove these:
sm-not.jpg

sm-not.jpg (57.5 KiB) Viewed 1404 times

from JUST your sitelist, assuming you have version 1.5.5.1, you can change line 12 in catalog/view/theme/default/template/information/sitemap.tpl from:

Code: Select all

        <?php foreach ($categories as $category_1) { ?>

Code: Select all

        <?php foreach ($categories as $category_1) { if($category_1['name'] == "Our Products"){ continue; } ?>
Hope this helps.
Best Regards,
Midgette

Newbie

Posts

Joined
Sun Apr 28, 2013 4:16 pm

Post by swdvs » Sun May 19, 2013 10:08 pm

Wow! that worked! Thank you so much. But why doesn't the "Tellafriend" extension and "FAQ" extension show up on the sitemap? Would I need to manually add those?

New member

Posts

Joined
Tue Feb 26, 2013 10:58 pm

Post by midgette » Mon May 20, 2013 1:59 pm

Great.
Not sure exactly which extensions you have...but none of the "Tellafriend" and "FAQ" extensions that I've seen add themselves into the sitemap. I agree with your idea that they should. I bet if you ask the developers of those extensions, they would help make those changes - each would probably only require a line or two of code.
Good Luck!

Newbie

Posts

Joined
Sun Apr 28, 2013 4:16 pm
Who is online

Users browsing this forum: Bing [Bot] and 16 guests