Loymax, 2026

Changes for page Recommendations


From version 7.2
edited by Andrej Rylov
on 2026/02/11 07:56
Change comment: There is no comment for this version
To version 8.1
edited by Andrej Rylov
on 2026/02/11 09:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -83,7 +83,7 @@
83 83  
84 84  To display recommendations in messages, you must use [[template engine>>doc:Main.Smart_Communications.SMC_Use.Mass_messaging.Template_engine.WebHome]] constructs.
85 85  
86 -Consider an example of adding recommendations to a message. An email campaign needs to be sent to customers with recommendations using the [[Frequently bought together>>doc:Main.General_information.Loymax_AI.Commercial_recommendations.WebHome||anchor="HBoughtTogetheralgorithm"]] algorithm (a recommendation with code ##sov_pok## has been created in the system for this purpose). For customers without sufficient purchase history, recommendations will be provided using the [[Popular products>>doc:Main.General_information.Loymax_AI.Commercial_recommendations.WebHome||anchor="HPopularProductsA0algorithm"]] algorithm (a recommendation with code ##popular## has been created in the system for this purpose).
86 +Consider an example of adding recommendations to a message. An email campaign needs to be sent to customers with recommendations using the [[Frequently bought together>>doc:Main.General_information.Loymax_AI.Commercial_recommendations.WebHome||anchor="HBoughtTogetheralgorithm"]] algorithm (a recommendation with code ##together## has been created in the system for this purpose). For customers without sufficient purchase history, recommendations will be provided using the [[Popular products>>doc:Main.General_information.Loymax_AI.Commercial_recommendations.WebHome||anchor="HPopularProductsA0algorithm"]] algorithm (a recommendation with code ##popular## has been created in the system for this purpose).
87 87  
88 88  The email layout assumes displaying 3 to 9 product cards—1 to 3 rows of 3 cards each. Only products available for ordering in the online store should be recommended. Additionally, the product price must be displayed in the message, and if the price has changed, both the old and new prices should be shown.
89 89  
... ... @@ -90,7 +90,7 @@
90 90  1. Define a variable ##Rec## and assign it an array of Product (##product##) objects selected by the [[Frequently bought together>>doc:Main.General_information.Loymax_AI.Commercial_recommendations.WebHome||anchor="HBoughtTogetheralgorithm"]] algorithm. If the customer hasn’t made enough purchases, fall back to the [[Popular products>>doc:Main.General_information.Loymax_AI.Commercial_recommendations.WebHome||anchor="HPopularProductsA0algorithm"]] algorithm.
91 91  
92 92  {{code language="twig"}}
93 -{% set Rec=client.recommendations.sov_pok %}
93 +{% set Rec=client.recommendations.together %}
94 94  {% if not Rec or Rec|length < 3 %}
95 95   {% set Rec=client.recommendations.popular %}
96 96  {% endif %}
... ... @@ -147,7 +147,7 @@
147 147  The final construct will look like this:
148 148  
149 149  {{code language="twig"}}
150 -{% set Rec=client.recommendations.sov_pok %}
150 +{% set Rec=client.recommendations.together %}
151 151  {% if not Rec or Rec|length < 3 %}
152 152   {% set Rec=client.recommendations.popular %}
153 153  {% endif %}