![]() |
Re: free google sitemap
My mistake. I used wrong variables for the table names. The
Code:
AND main = 'Y' So, try this: Code:
$prods = func_query("SELECT * FROM $sql_tbl[clean_urls], $sql_tbl[products_categories], $sql_tbl[products], $sql_tbl[categories] WHERE xcart_clean_urls.resource_type = 'P' AND xcart_products.productid = xcart_clean_urls.resource_id AND main = 'Y' AND xcart_products.productid = xcart_products_categories.productid AND xcart_products.forsale = 'Y' AND xcart_products_categories.categoryid = xcart_categories.categoryid AND xcart_categories.avail = 'Y'"); This must be correct. Andreas |
Re: free google sitemap
Thanks man that worked! :)
Anyway I have find a "bug": If you don't use ".html" in your pages and products urls you have to remove the "html" from the code so the lines are finally like this: Code:
<loc>'.$http_location.'/'.$pr["clean_url"].'</loc> Yours! |
Re: free google sitemap
Hello,
Im creator of this module. Here version for xcart 4.3.x with supporting "clean_url" option. Enjoy ;) UPDATE: This is old version of module. New version on post #24 - http://forum.x-cart.com/showpost.php?p=296734&postcount=24 |
Re: free google sitemap
Thanks
I have tried IronShop_Google_Sitemap this on my www.qualitechnic.co.uk site but its creating a blank sitemap.xml am i doing something wrong lewis Quote:
|
Re: free google sitemap
Hi lewis,
I have opened your site and found that you has http://www.qualitechnic.co.uk/sitemap.xml But it was generated not by my module. I have test it again on 4.3.2 version, results here: http://www.ironshop.fr/ebay/sitemap.xml Thank you, Alex Quote:
|
Re: free google sitemap
sorry
i put the original sitemap back on my site has it was blank from your program I think yours would me more suitable for the xcart but i can install it again but dont want to leave a blank one on live for long thank you again lewis Quote:
|
Re: free google sitemap
I tempery altered the sitemap.php
to create the sitemap at www.qualitechnic.co.uk/sitemap1.xml and has you see its created a blank one here's the code i changed Quote:
Quote:
|
Re: free google sitemap
Yes, you made corect changes.
Can you comment these lines in sitemap.php ? PHP Code:
So it will look like this: PHP Code:
These lines allow make refresh sitemap only one time per day. Alex Quote:
|
Re: free google sitemap
Yes thats done the trick do i have leave these commented out
thank you very much thats great service:D/ Quote:
|
Re: free google sitemap
Turn off previous Sitemap Generator, then change sitemap1.xml to sitemap.xml,
then visit your admin home page. And only after that un-comment these lines. :) Quote:
|
All times are GMT -8. The time now is 09:55 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.