| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Simple Sitemap Script | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Simple Sitemap Script
Here's a simple script to generate a quick sitemap and url list from your x-cart install. This script only does the basic categories and products. I made this one because I was sick of all the other sitemap generators indexing thousands of pages for 50 products. Hope this helps someone.
PHP Code:
|
|||||||
#2
|
|||||||
|
|||||||
Re: Simple Sitemap Script
Ok. And what can one do with it ???
(i am a nerd |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Simple Sitemap Script
Quote:
Well if you make a php file with the above code and load it into your root of your x-cart and then call the php script it will give you a URL list and a Sitemap URL Entries for your site. All you need to do is fill in your site information in the php code: # MySQL Info $mysql_host = 'localhost'; # MySQL Host Name $mysql_user = 'username'; # MySQL Username $mysql_pass = 'password'; # MySQL Password $mysql_db = 'database_name'; # MySQL Database # The Full URL to Your Webstore - INCLUDING THE TRAILING SLASH $base_url = 'http://www.shishapipe.net/shopcart/'; Once you have done this and then saved the php file, say call it site_map.php and then run this on your site. You can see an example at http://www.shishapipe.net/shopcart/site_map.php
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Simple Sitemap Script
Quote:
And if to do so? PHP Code:
|
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Simple Sitemap Script
Shisha,
That link to your site_map.php is dead. Error 404.
__________________
Jack@AquasanaCA X-CART GOLD 4.0.19 Live DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America! X-CART GOLD 4.4.5 Live CDSEO Pro v. 1.8.4 AquasanaMontreal.com Aquasana╝ & Rhino Water Filtration Systems |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|