Sha256: aa30e71391bd1e9c0e25bbac6bf194e901f1b80057860e95d8b86f9b8fb40d4e
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
xml.instruct! :xml, version: "1.0" xml.rss version: "2.0", "xmlns:g" => "http://base.google.com/ns/1.0" do xml.channel do xml.title current_store.name xml.link "http://#{current_store.url}" xml.description "Find out about new products on http://#{current_store.url} first!" xml.language 'en-us' @feed_products.each do |feed_product| xml.item do xml.tag! 'g:id', feed_product.id xml.title feed_product.title xml.description feed_product.description xml.category feed_product.category if feed_product.category xml.link product_url(feed_product.product) xml.tag! 'g:image_link', feed_product.image_link xml.tag! 'g:condition', feed_product.condition xml.tag! 'g:price', feed_product.price.money.format(symbol: false, with_currency: true) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_product_feed-1.0.0 | app/views/spree/products/index.rss.builder |