Learn how to effectively display products from your shop using OmniChat’s merge fields. This guide covers how to show single or multiple products, configure sections, and manage order information through webhooks for seamless integration with your shop.
To displays the products of your shop use the merge fields below.
Merge field | Description |
---|---|
{catalog id=”123″ product_id=”123″ body=”” footer=””} | Display a single product. ReplaceĀ idĀ with the catalog ID andĀ product_idĀ with a product ID. The attributesĀ bodyĀ andĀ footerĀ are optional. |
{catalog id=”123″ product_id_1_1=”123″ product_id_1_2=”123″ product_id_2_1=”123″ section_1=”” section_2=”” header=”” body=”” footer=””} | Display multiple products. ReplaceĀ idĀ with the catalog ID. Add products by grouping them into sections, via the attributesĀ product_id_[A]_[B], replace [A] with the section index, starting from 1, replace [B] with the product index, starting from 1 for each section. You must also add the attributeĀ section_[A]=””Ā for each section, replace [A] with the section index. The attributesĀ headerĀ andĀ bodyĀ are required,Ā footerĀ is optional. |
- When the user sends the order, the order information is sent to the URL specified inĀ Settings > WhatsApp > Order webhook.
If you have additional doubts, remember that you can always contact us.