X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   List all products (only) - PHP Sitemap? (https://forum.x-cart.com/showthread.php?t=27013)

mbcummings 11-30-2006 10:41 AM

List all products (only) - PHP Sitemap?
 
I've been digging forums for simply a mothod of outputting a list of all products, only, to no avail. Tried a couple things but nothing yet....

NOTHING FANCY needed: just a list of all product titles anchored to respective product page.

It could be a sitemap formatted like php.net/sitemap.php or just a product list like inlustro.com/sitemap.php

Ideas?

groovico 11-30-2006 10:50 AM

Re: List all products (only) - PHP Sitemap?
 
Depends what you are after,

If you want a PHP page for display on your site, the firetank advanced sitemap will do what you need, just set it to display all products

http://www.firetanksoftware.com/fts/customer/X-cart-Site-Map-advanced-sitemap-pid-70.html

If you want to actually output to a CSV file lists of products and URL, take a look at our shopping feed generators, one like the googlebase/froogle one will do it and you can alter it to match your requirements

http://www.firetanksoftware.com/fts/customer/X-cart-Shopping-Feeds-cid-26.html

mbcummings 11-30-2006 10:59 AM

Re: List all products (only) - PHP Sitemap?
 
Thank you Firetank Sales. Did you look at the examples?

What you offer is great for some. Too much for me in this case.

Solutions/suggestions anyone? Simple mod or paring down of products.php?

I JUST NEED A LOOP TO CALL AND LIST ALL PRODUCT TITLES IN ANCHOR TO PRODUCT PAGE.

I've seen it in product pull down lists... just need to apply same loop to list, instead, so that when link is clicked all products are listed WITHOUT the long search string in the URL.

Suggestions/tips much appreciated! :)

PhilJ 11-30-2006 11:09 AM

Re: List all products (only) - PHP Sitemap?
 
Buy the sitemap generator from www.xml-sitemaps.com - only $15

mbcummings 11-30-2006 11:23 AM

Re: List all products (only) - PHP Sitemap?
 
Quote:

Originally Posted by PhilJ
Buy the sitemap generator from www.xml-sitemaps.com - only $15

Thanks for your suggestion PJ but looking for PHP solution (already using google's sitemap gen. for XML map... that and static HTML sitemap are in the can).

Please look at the examples. Simple product list in php loop... It should be clear... scripting suggestions only, please (no third party products ;) ) THX!

PhilJ 11-30-2006 11:34 AM

Re: List all products (only) - PHP Sitemap?
 
Actually, the xml-sitemap generator generates a static HTML page which you could include in an X-Cart static page like this...

Code:

{include file="../sitemap.html"}


Just for you I've made a simple sitemap, go to my website.

mbcummings 11-30-2006 11:40 AM

Re: List all products (only) - PHP Sitemap?
 
Quote:

Originally Posted by PhilJ
Actually, the xml-sitemap generator generates a static HTML page which you could include in an X-Cart static page like this...

Code:

{include file="../sitemap.html"}


Just for you I've made a simple sitemap, go to my website.

Yes... I appreciate your suggestion Phil.

Any PHP types in the hizzy? Loop scripting suggestions only please :)

PhilJ 11-30-2006 11:41 AM

Re: List all products (only) - PHP Sitemap?
 
I've just made you one, you ungrateful *&^%$
http://www.xcartmods.co.uk/files/X-Cart_Simple_Sitemap.zip

mbcummings 11-30-2006 11:49 AM

Re: List all products (only) - PHP Sitemap?
 
Sorry, I thought you'd output just HTML from xml-sitemaps... not my intention to offend! I guess I misunderstood what you did... taking a look now. Thanks! :D (Peace... as they say.)

...looks AWESOME... LET'S GIVE IT A GO! CHEERS PHIL!!! :D Sorry we went south there for a sec.!

PhilJ 11-30-2006 11:53 AM

Re: List all products (only) - PHP Sitemap?
 
Try it now, there was a typo.

mbcummings 11-30-2006 12:34 PM

Re: List all products (only) - PHP Sitemap?
 
Looks good but I think it is not quite returning the intended result yet:
http://heartthroblingerie.com/sitemap.php

BTW, changed func_display("customer/home.tpl",$smarty); to func_display("customer/sitemap.tpl",$smarty); but same result (in home.tpl or no) either way.

I did a Save As... and made sure file creator, save state, line breaks and encoding (latin 1) are all unix compatible... no change.

Also, sent small Paypal donation... :)

Warm regards,

PhilJ 11-30-2006 01:08 PM

Re: List all products (only) - PHP Sitemap?
 
That's a wierd output! It works fine on a fresh install.

It's meant to be...
Code:

func_display("customer/home.tpl",$smarty);

Thanks for the donation, I've emailed you the code.

mbcummings 11-30-2006 01:42 PM

Re: List all products (only) - PHP Sitemap?
 
Quote:

Originally Posted by PhilJ
That's a wierd output! It works fine on a fresh install.

It's meant to be...
Code:

func_display("customer/home.tpl",$smarty);

Thanks for the donation, I've emailed you the code.


The script is GREAT. Thanks so much!

Unfortunately by data is corrupted :(

PhilJ 12-01-2006 04:30 AM

Re: List all products (only) - PHP Sitemap?
 
It now lists static pages and speed bar items.

andreas04031 12-02-2006 12:55 PM

Re: List all products (only) - PHP Sitemap?
 
I took the liberty and added something to it to make the links to the items a bit stick out if description is also shown. I'm not sure if the css is perfect but it does what it it supposed to do, maybe some css guru can clean that up :)

add at the end to skin1/skin1.css

/*sitemap*/

.sitemapList {
COLOR: #330000;
FONT-WEIGHT: bold;
}
.sitemapListDisabled {
COLOR: #909090;
}
A.sitemapList:link {
COLOR: #FF8600;
FONT-WEIGHT: bold;
TEXT-DECORATION: none;
}
A.sitemapList:visited {
COLOR: #330000;
FONT-WEIGHT: bold;
TEXT-DECORATION: none;
}
A.sitemapList:hover {
COLOR: #FF6347;
FONT-WEIGHT: bold;
TEXT-DECORATION: none;
}
A.sitemapList:active {
COLOR: #330000;
FONT-WEIGHT: bold;
TEXT-DECORATION: none;
}

/*sitemap*/

--------------------

add to line 18 in /skin1/customer/sitemap.tpl
class="sitemapList"

it should look like this:
<a href="product.php?productid={$products[$s].productid}" title="{$products[$s].product}" class="sitemapList">{$products[$s].product}</a><br>

----------------------
add link to sitemap in /skin1/help.tpl

<a href="http://{$config.Company.company_website}/shopping-cart/sitemap.php" class="VertMenuItems">{$lng.lbl_sitemap}</a><br />

maybe helpful for someone

andreas04031 12-02-2006 12:59 PM

Re: List all products (only) - PHP Sitemap?
 
I have another thought:
what would it take to split that up and show also the categories?

Category 1:
item 1
item 2
item 3

Category 2
item 1
item 2
item 3
item 4

Cat....
well you get the picture :)
Andy

thentavius 12-27-2006 05:20 PM

Re: List all products (only) - PHP Sitemap?
 
If we purchase some of your individual feed mods and later decide to upgrade to the pro (the package with all of them), is there any kind of a price break for the mods already purchased? Like a discounted or pro-rated rate?

groovico 12-28-2006 02:36 AM

Re: List all products (only) - PHP Sitemap?
 
Quote:

Originally Posted by thentavius
If we purchase some of your individual feed mods and later decide to upgrade to the pro (the package with all of them), is there any kind of a price break for the mods already purchased? Like a discounted or pro-rated rate?


Hi,

If you are refering to the Firetank X-cart Feed Manager series, the answer is yes, you can request an upgrade at any time to the full package and only pay the difference :)

http://www.firetanksoftware.com/

thentavius 12-29-2006 10:43 PM

Re: List all products (only) - PHP Sitemap?
 
Thanks! Still mulling it over, but I'll likely end up buying it. :-)

groovico 12-30-2006 08:04 AM

Re: List all products (only) - PHP Sitemap?
 
Quote:

Originally Posted by thentavius
Thanks! Still mulling it over, but I'll likely end up buying it. :-)


Give it a try, purchase the google/froogle one, you can put that to immediate use and it gives you a good feel as to how the whole system works, if you want to upgrade to the full package we'll allocate you a discount coupon equal to it's full value :)

peter c 01-10-2007 06:58 AM

Re: List all products (only) - PHP Sitemap?
 
philj. followed instructions in file and this is output:

Quote:

* $Id: sitemap.tpl,v 1.00 2005/02/24 09:53:29 max Exp $ *} Site map [/list]

PhilJ 01-20-2007 10:49 AM

Re: List all products (only) - PHP Sitemap?
 
By the way, to rewrite sitemap.php to sitemap.html ...
In /.htaccess add...
Code:

Options +FollowSymlinks
RewriteEngine on
RewriteRule sitemap.html sitemap.php [nc]


In /robots.txt add...
Code:

Disallow: /sitemap.php


seoguy 03-28-2007 09:28 AM

Re: List all products (only) - PHP Sitemap?
 
Will the add-on (http://www.bcsengineering.com/store/catalog/Xcart_Site_Map_advanced-p-60.html) show pictures of the product as well? I am looking for a sitemap to not only show the product title, but a picture of that product too.

Is this possible?

pauldodman 03-28-2007 09:46 AM

Re: List all products (only) - PHP Sitemap?
 
The mod doesn't show images by default. If you have a lot of products, then this probably isn't a good idea anyway.
However, if you edit the template that comes with it you should be able to show the images.


All times are GMT -8. The time now is 05:56 PM.

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