| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||||
|
|||||||||
rss feed
here's a file to add to your root directory to generate an rss feed of your products.
Note: there's a not of customisation needed to set it up, you need to add all your details, your database / store details etc. Please READ the file as there are changes to make, it WILL NOT WORK if you just drop it in. The file creates a new file on your server called feed.xml, you probably want to run the php file on a crobjob to get it updated regularly. If anyone has any improvements, please post them here. As usual, no warranties, please backup everything first. This works for me, hope it helps,
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#2
|
|||||||
|
|||||||
Re: rss feed
thank you so much
__________________
X-Cart 4.4.5 | Linux/Apache | PHP 5.2.17 | MySQL 5.0.77 | FireFox |
|||||||
#3
|
|||||||
|
|||||||
Re: rss feed
I am getting following error when I run the file feed.php
Warning: fopen(feed.xml) [function.fopen]: failed to open stream: Permission denied in /home/username/public_html/feed.php on line 99 can't open file
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#4
|
|||||||||
|
|||||||||
Re: rss feed
try putting a blank feed.xml file in the folder first,
hth
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#5
|
|||||||
|
|||||||
Re: rss feed
Thanks amy2203
I created blank feed.xml & CHMOD it to 777 & now it's generating the feed. But when I add my feed to google reader the images are not shown & it's written "Original enclosure (book_24.jpg)" Any idea why it's not showing images ? following my path setting in your code if ($row[filename] != NULL) { $image = 'http://www.mysite.com/images/'.$row[filename];
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#6
|
|||||||||
|
|||||||||
Re: rss feed
have you checked your path is valid?
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#7
|
|||||||
|
|||||||
Re: rss feed
Quote:
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#8
|
|||||||
|
|||||||
Re: rss feed
hi amy2003,
I found that it's not created the xml feed for new products which doesn't have thumbnails. Your code will not work for the products without thumbnails ? or I am missing something ? Your help will be greatly appreciated
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#9
|
|||||||||
|
|||||||||
Re: rss feed
it only limits the feed to items which are on sale, it will still show items even if they don't have thumbnails,
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#10
|
|||||||
|
|||||||
Re: rss feed
Quote:
I have double check it. It's not creating the feeds for new products if product doesn't have the thumbnails. For test I created single product with thumbnail & it created the feed !!! I don't know what could be the problem !
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
|
|||
X-Cart forums © 2001-2020
|