| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Syndicate X-Cart news as RSS 2.0 Channel | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Syndicate X-Cart news as RSS 2.0 Channel
If you'd like to offer a RSS feed with the latest news from your x-cart 4.1.x, feel free to use the following code.
1. Create news_feed.php in the root of your x-cart with the following content: PHP Code:
2. open skin1/customer/home.tpl and replace in the file: { include file="meta.tpl" } with Code:
After that users of Mozilla and Opera will automatically see RSS icon in location bar and will be able to subscribe to the RSS feed. |
|||||||
#2
|
|||||||
|
|||||||
Has anyone tried anything like this with earlier versions such as 3.4 or 3.5 branches?
I would like to use aspects of this in another mod, but it would be for 3.4 or 3.5 versions.
__________________
vs 4.1.12 |
|||||||
#3
|
|||||||
|
|||||||
didn't work for me
I tried this mod yet it's not working for me tell me what i'm doing worong.
www.certifiedcomp.com/store/home.php
__________________
X-Cart 4.1.7 Gold |
|||||||
#4
|
|||||||||
|
|||||||||
Re: didn't work for me
Quote:
Your PHP file is being processed as a text file. http://www.certifiedcomp.com/store/news_feed.php Check to make sure that the vey first thing in that file is <?php |
|||||||||
#5
|
|||||||
|
|||||||
Hello
Please help. I receive following error when acces news_feed.php: Parse error: parse error, unexpected T_SL in /home/mallroma/public_html/news_feed.php on line 60 Thanks
__________________
Mircea Teleleu Shopedia.ro-la cumparaturi www.shopedia.ro ______________________ x-cart gold 4.1.6 Linux |
|||||||
#6
|
|||||||
|
|||||||
Re: Syndicate X-Cart news as RSS 2.0 Channel
I did everything according to the instructions, but it seems it doesn't work. I have no error messages, added two messages to news list and all programs recognize RSS feed. When they open it there are no messages displayed.
Can somebody help? |
|||||||
#7
|
|||||||
|
|||||||
Re: Syndicate X-Cart news as RSS 2.0 Channel
zaa thank you for posting this. Anybody tried this on 4.1.8 ? I created the news_feed.php file but it doesn't list any news, although I have one posted.
__________________
X-Cart 4.1.x to 4.7.x |
|||||||
#8
|
|||||||
|
|||||||
Re: Syndicate X-Cart news as RSS 2.0 Channel
New version of the file works with x-cart 4.0.x and x-cart 4.1.x:
PHP Code:
|
|||||||
#9
|
|||||||
|
|||||||
Re: Syndicate X-Cart news as RSS 2.0 Channel
Hi,
I added this to my site and generates the feed well but does not validate because I used a word in French. I changed the word but I am not sure how to update the feed as it still showing in the feed. Also, some validators aren't accepting the php format. Is there any way to change that to RSS extension? Any suggestions? Thank you very much!
__________________
Vera B 4.4.5 CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO Hosting by EWDHosting - The best home for your x-cart. |
|||||||
#10
|
|||||||
|
|||||||
Re: Syndicate X-Cart news as RSS 2.0 Channel
Quote:
The feed is constructed dynamically, so actually you should see the changes right away. As for the French word, you should replace UTF-8 with actual encoding value. For example, you might need to replace Code:
As for the RSS extension, if you are hosted on a server with Apache web server you may add a rewrite rule that will transparently rewrite feed.xml with feed.php http://httpd.apache.org/docs/2.0/misc/rewriteguide.html |
|||||||
|
|||
X-Cart forums © 2001-2020
|