Blendee allows, in addition to the default templates, to create custom templates for both Recommendations and Behavioural messages.
Let’s see point by point how to do it:
The first step is to go to the Settings->Template Management section, choose the type of web personalization for which we want to create the template: whether behavioral message, recommendations, email or widget.
In this case, let’s take the example with a behavioural message, but the procedure is the same for the other elements as well.
Clicking on Template for Behavioural Message opens a page where there are three tabs containing the templates:
General: i.e. the default ones that Blendee provides
Personal: these are those customized by the user,
Archived: this is the section where we can archive unused templates.
Next we are going to clone the template we want to use as the basis for our customizations using the clone button at the bottom right for each template.
By pressing clone, a template configuration wizard opens, where we can set, in the first step, the name of the template and whether or not it should contain product recommendations. It is also possible to set the type of template whether overlay or not, i.e. whether it will appear as an element on a layer placed above our starting page or as an integrated element within those present on the page, thus modifying the structure of the DOM.
In step 2 we can set the keys that will be interpreted during the insertion phase within the page and that allow us to set variables for the customization of the template, such as colors, sizes and fields.
In the last step you can insert the HTML and CSS part related to our custom template.
Once the configuration is complete, we will find the custom template in the “
Personal” section.
To edit the template you just created, simply go to the Personals tab and click on “Edit” to return to the configuration section.
Once the template has been created, it will be available in the “Personal” section when creating the behavioral message.
With Blendee it is possible to insert recommended products both in Behavioral Messages and in Recommendation, in fact, by cloning a template it is possible to modify the code in order to customize it in the best possible way.
Let’s see how you can add the code base to be able to insert recommended products anywhere.
foreach.{{products}} ..inserire il proprio codice html da ripetere per ogni elemento, ad esempio: <div class="ADB_IDRCTX_PLACEHOLDER_price_product ADB_hidden_##ADB_sc_card_price_bool##"> <div class="ADB_IDRCTX_PLACEHOLDER_price_original_product"> <span class="ADB_IDRCTX_PLACEHOLDER_amount">{{products}}.{{priceOriginal}}</span> <span class="ADB_IDRCTX_PLACEHOLDER_currency">{{products}}.{{currencySymbol}}</span> </div> <div class="ADB_IDRCTX_PLACEHOLDER_price_discount_product"> <span class="ADB_IDRCTX_PLACEHOLDER_amount">{{products}}.{{priceDiscounted}}</span> <span class="ADB_IDRCTX_PLACEHOLDER_currency">{{products}}.{{currencySymbol}}</span> </div> </div> ... endforeach
The code we see above is used to repeat the HTML structure inserted for each product shown, extracted from the algorithm.
Access to the values related to the recommended product is possible thanks to the use of the keys:
{{products}}. {{nomecampo}}
As we can see from the code above, it is also possible to change the name of the classes in real time through the use of the keys created during the customization of the template (e.g.: ##ADB_sc_card_price_bool## in the code above which will take on the value true/false depending on the value selected in the side menu visible below)
The keys that can be used for the products are:
{{products}}.{{image}}: Product image URL
{{products}}.{{priceOriginal}}: Original price of the Product
{{products}}.{{priceDiscounted}}: Final price of the Product
{{products}}.{{priceDelivery}}: Shipping price
{{products}}.{{name}}: Product Title
{{products}}.{{descriptionShort}}: Short Description of the Product
{{products}}.{{discount}}: Percentage of discount on the Product
{{products}}.{{shopLink}}: Link to the product
{{products}}.{{currencySymbol}}: Currency symbol
{{products}}.{{sku}}: Product SKU
{{products}}.{{idExt}}: Product ID
{{products}}.{{brand}}: Brand of the product
{{products}}.{{model}}: Product model
{{products}}.{{availableQuantity}}: Available quantity of the product
{{products}}.{{insertionDate}}: Membership category IDs separated by space
{{products}}.{{categoryIds}}: Id of the categories associated with the product separated by commas.
Thanks for contributing!