What are product templates?
Product templates control the styling and visual appearance of generated product recommendations in an email. You can match the styling and behavior from your site, and there is ample support for experimenting and optimizing the styling specifically for the email channel. When a product recommendation is generated in an email, the product card, with image and text, is displayed according to the design you have set in the product template.
How do I set up separate product templates for mobile and desktop devices?
Email recommendations support two versions of product templates in order to serve optimized versions for desktop and mobile email clients. Typically, it is the sizing of product images and text elements that needs to be optimized for the different cases.
What controls which template to display for mobile and desktop devices?
The controlling factor for which version is served to the email recipient is based on a so-called "media query". This query lets you define a screen width of the recipient device to control which version of the product template is used when serving up the image. You will need to add this query to your email service provider email template, as it cannot be fully controlled only from Email recommendations.
How do I control image dimensions in the product template?
Settings in the Edit Product Template dialog will use either the default size of images (recommended) or you can enforce a scaled version to be used. It is recommended to control the image dimension via HTML/CSS in the product template.
Where do I find information about available attributes to use in the product template?
Email recommendations will read all product data attributes available in Voyado Product Discovery. It is useful to acquire a good understanding of the naming conventions of the attributes. A good practice is to talk to your internal team that has implemented Product Discovery and ask for a list of available attributes and especially which ones are used in production on your site.
What coding languages does the template editor support?
The built-in editor supports CSS, HTML, and Mustache. More details about Mustache are available at the Mustache Docs.
What is the difference between a saved and a published template?
Email recommendations support two states for product templates, saved and published. A template must be published to be used with a campaign. The saved state is for keeping your changes when iterating on a design before publishing.
Why can't I see any images in the preview pane?
In general, if you can see product images in other areas of the Product Discovery application, you should be able to see them in Email recommendations. If not, something may have been configured incorrectly. Verify that the Image Path Prefix setting in the Configuration tab matches the Image Path Prefix setting in the Admin area of the Product Discovery application. If that does not resolve the issue, contact Voyado Support.