How to add an RSS feed to template?
You can import articles and products from your e-commerce store into your email templates via an RSS feed. A corresponding RSS output must be created for that.
- Open the elements menu under the “+” sign in the lower left corner in the template editing view.
- Drag the RSS-element to the preferred spot on your template.
- Click “Choose items from the RSS / XML feed”.
- In the settings window on the right insert the link to your RSS feed in the “Feed” field.
- You can choose whether the products are displayed in a row of 3, a row of 2 or one by one in the dropdown menu under “Layout”. If you opt to display two products, you can decide how much space either of them is going to take in the layout.
- You can change the settings according to which the products will be selected at the same place (“Advanced RSS settings”). You can hide the title or the description, change the length of the description, colors, the text on the button etc.
- Once you’re done with the settings, click “Refresh” (icon with two arrows) in the lower right corner in the settings window.
- The downloaded products will appear in the settings window.
- Click on the products you wish to add to your template so that a green tick appears on the left corner above the product.
- If you’ve ticked all of the selected products, click “OK” on the right above the window.
Products will now be added to your template. You can later change the text and images the same way as you do other template elements.
Example code
<?xml version="1.0" encoding="UTF-8"?> -<rss version="2.0" xmlns:smly="https://sendsmaily.net/schema/editor/rss.xsd"> -<channel> <title>Example Feed for Smaily</title> <link>https://smaily.com/</link> <description>Product Feed</description> <lastBuildDate>Thu, 12 Apr 2018 10:31:20</lastBuildDate> -<item> <title>How to send better email (part 1)</title> <link>https://smaily.com/how-to-send-better-email-part-1/</link> <guid isPermaLink="True">https://smaily.com/how-to-send-better-email-part-1/</guid> <pubDate>Tue, 03 Apr 2018 11:37:56</pubDate> -<description> -<![CDATA[<span style="font-weight: 400;">Email is </span><b>king</b><span style="font-weight: 400;"> and still is – a phrase that can’t resonate more truthfully about the current state of email marketing today for small businesses.</span>]]> </description> <enclosure url="https://smaily.com/wp-content/uploads/2018/01/roi.jpg"/> <smly:price>$90.00</smly:price> <smly:old_price>$100.00</smly:old_price> <smly:discount>-10%</smly:discount> </item> -<item> <title>How to send better email (part 2)</title> <link>https://smaily.com/how-to-send-better-email-part-2/</link> <guid isPermaLink="True">https://smaily.com/how-to-send-better-email-part-2/</guid> <pubDate>Mon, 26 Mar 2018 10:12:03</pubDate> -<description> -<![CDATA[<b>In <a href="https://smaily.com/how-to-send-better-email-part-1/">part 1</a>&nbsp;we talked about the design and content of your email campaign. In part 2 of How to send better email, we will talk about the importance of a good subject line.</b>]]> </description> <enclosure url="https://smaily.com/wp-content/uploads/2018/01/preview_1.jpg"/> <smly:price>$20.00</smly:price> </item> </channel> </rss>