Language
You can use data sources to dynamically change the widget language from rule to rule! The widget language is set within the widget(s) settings and will be static/ unchanging from page to page. By default, a widget may have a primary title of "Customers who bought this also bought" while giving you the option to add a super title (larger text), a description (smaller text) and more if needed.
Data Sources and Language
By using additional RETURN conditions in our Data Source, we're able to personalize the recommendation experience even further!
Here is a list of language selectors you can use:
This can be done with a type of liquid in the data source's return statement.
Product Title
Customer Name
Vendor
Using Liquid for a Product Page Widget
By using {{ metadata.input_products[0].title }} you can bring in the title of the product page that you are currently viewing to make the widget language even more dynamic!
{{ metadata.input_products[0].title }}
Using Liquid for a Customer Page Widget
You can also pull in the customer's name if they are logged in with {{ metadata.shopify_customer.first_name }}
{{ metadata.shopify_customer.first_name }}
Here's an example rule where we check if the customer is logged in while showing AI recommendations!
Another option could be the vendor!
{{ metadata.input_products[0].vendor }}
This data is collected from the network request to the datasource! The ones mentioned above should be all you need, but here's how to find more: