Main Menu
My Other Sites
Contact Andrew Quinn
jaquinn@ihug.co.nz http://twitter.com/jaquinn| fishpond.co.nz integration |
| Written by Administrator |
| Sunday, 15 February 2009 09:52 |
|
My RailTrack web site has been a lot of fun to develop but I really need to find a way to cover at least some of the hosting costs. Tried adding Amazon links to books relevant to the topic (trains!) and while I did get a few clicks through it wasn't wildly successful. I think there are two issues here:
Not much I can do about the dollar and I am sure I could sort out the second one by managing the section of product myself.... but instead I am going to try out fishpond. To keep the customers happy they seem to have a good product range at reasonable NZ$ prices and shipping is affordable. To keep me happy they provide a downloadable XML feed for selected product categories so I can load this and use it as the basis for selecting products for the site. RailTrack is based on Rails (it is a web site on trains.... what else would you expect) so hpricot came to the rescue for the XML parsing.... sure the requirements weren't that challenging but the gem is so nice to use..... Fishpond catalog records look like: <PRODUCT NUM="3575385">
and the model import method looks like: def self.import(sourcefile)
|

