Coding For Online Success

June 2, 2009
by admin

Parsing XML CJ Product Feeds

I mentioned on May 29th that CJ allows you to create and manage product catalogs now. This is great. You can create a product feed and have it available in your FTP directory (or whatever delivery method you wish). For my personal set up, I have it stored on their server, and I need to FTP to it and grab it. I do everything via PHP on a scheduled intervals.

I wanted to show you how you can grab the XML data and parse it. You could use it directly or push it into a database, etc. In my situation, I want to update a local database with product items. Items will be updated every week. I won’t go into the database piece (let me know if you need me to go into INSERT/DELETE SQL examples).

Continue reading

October 29, 2008
by admin

Dynamic XML/RSS Feed using PopShops

Well, I noticed that I haven’t added any code examples in a while, so here is a new one I’m working on now. PopShops is a great tool to display products from different merchant networks like Commission Junction, LinkShare, ShareASale, etc. You can quickly create product pages and have them delivered using multiple methods. Methods include javascript, PHP, XML, etc.

Continue reading