| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Site map page | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#61
|
|||||||
|
|||||||
![]() Quote:
I'm having exactly the same problem as Patrick. New and/or changed categories show up fine, but new added subcategories won't show. But when a subcategory is renamed, it will be updated correctly in the sitemap... Anybody had the same problem and found a way to fix this? Thanks in advance!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#62
|
|||||||
|
|||||||
![]() Quote:
I have installed in on to 4.1.1 but it shows only three cats, i am having more than that. Anyone? see it at: http://www.weckonline.nl/weckonline/shop/sitemap.php |
|||||||
#63
|
|||||||||
|
|||||||||
![]() is it possible to make an xml file of this sitemap? So you can post it on Google?
__________________
X-cart 4.1.5 |
|||||||||
#64
|
|||||||
|
|||||||
![]() works perfect, thanks!
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#65
|
|||||||
|
|||||||
![]() I've been working with X-Cart for only one week now so I may be off base here, but I think I know why this mod is not working on the current version of X-Cart.
I've been hacking at the code a bit, and it appears that the $allcategories variable is not returning _ALL_ of the categories, just the root categories. I've also found that when you have cat=X as part of the URL (HTTP Get variable) and you replace X with a known category number, the $allcategories contains the root categories plus any subcategories of X. Now, I have never used any versions other than 4.1.2, but this does not seem to be the behavior that is to be expected. In the code that Fernando posted, it clearly appears that he is truly expecting a full dump of every category in the $allcategories variable. This is a bit of code I wrote to dump out all of the information in the $allcategories variable: Code:
On a slightly different topic, I noticed several ppl mention that this mod was resource hungry when used on sites with large numbers of categories. The reason for this is easy to understand by looking at Fernando's code... he is continually looping through the $allcategories var each time he sees a category with sub categories. In trying to figure out the above bug, and also improve the speed of this mod, I discovered the $subcategories variable. It's interesting because it only contains the categories of a specific parent category. If I change the URL to include the cat=X GET var, it gives me the sub cats in a nice short array. I figured I'd be clever and change $cat like so: {assign var="cat" value=X} (making X a valid category number) Unfortunately, this makes no difference. It appears that $subcategories is assigned only once, and can only be controlled when $cat is assigned in a HTTP GET. Does anyone know how to make a function that would return an array of subcategories for a specific parent category? |
|||||||
#66
|
|||||||
|
|||||||
![]() Quote:
Using the Flexi Rectangle skin I had to use: Code:
in sitemap.php HK X-Cart 4.0.18 Gold - Flexi Rectangle |
|||||||
#67
|
|||||||
|
|||||||
![]() i have installed Fernando's module for my x-cart 4.1.2, but somehow i am getting gibberish:[*][*][*][*][*]Diamond Watches
[/list][*][*][*][*][/list]. You can look here at http://www.dreamindiamonds.com/store/sitemap.php. Can anybody help me out? Thanks. |
|||||||
#68
|
|||||||
|
|||||||
![]() has anyone worked outhow to get this working on 4.1.2?
seems that $allcategories now only holds top level categories in it and not subcategories which is why it doesn't work. Now if I remeber right fancy categories should get all the info needed, will have a look now and see if i can find the answer. J
__________________
Hi I\'m using x-cart 4.0 and 4.1 |
|||||||
#69
|
|||||||
|
|||||||
![]() Quote:
ok, i tried to make this change but then the file is not there. this is what is in my categories.tpl: <FONT class="CategoriesList"><A href="/store/sitemap.php" class=VertMenuItems>{$lng.lbl_sitemap}</A></FONT> i'm guessing i called something wrong? b/c here's what i get Site map[*]Decorative[*]Floating Candles[*]Floating Candles - 5 packs[*]Foating Candle Guest Favors[/list][*]Gifts for Baby[*]Guest Favors for Baby Showers[*]Just for baby[/list][*]Guest Favors[*]Handcrafted cards[*]New Products![*]Pillar Candles[*]Tealights and Votives[*]Tealights and Votives - 5 packs[*]Tealights and Votives - Guest Favors[/list][*]Weddings[*]Wedding Decorations[*]Wedding Guest Favors[/list][/list] thanks,
__________________
Andrea www.candleshopcreations.com Xcart 4.3.2 Mac OSX 10.6.5 EWD Hosting Mailchimp Mod, On Sale, One Page Checkout, Mobile |
|||||||
#70
|
|||||||
|
|||||||
![]() Just wanted to say thank you to John at Safety Web Net for fixing my sitemap. This simply stellar customer service and it wasn't even his product! Highly recommend Safety Web Net!
__________________
Andrea www.candleshopcreations.com Xcart 4.3.2 Mac OSX 10.6.5 EWD Hosting Mailchimp Mod, On Sale, One Page Checkout, Mobile |
|||||||
|
|||
X-Cart forums © 2001-2020
|