Communication Channels

Get Involved. Join the Conversation.

Topic

    Janusz Jasinski
    How to use chat icons instead of ProductCategoryInputAnswered
    Topic posted January 25, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points, tagged Chat 
    108 Views, 1 Comment
    Title:
    How to use chat icons instead of ProductCategoryInput
    Content:

    Hi,

    Currently we are using the ProductCategoryInput widget to initiate a chat. However we have a lot of categories in this list which has meant it has become unusable.

    My question is whether it is possible to build a page with let's say a dozen icons, each icon being an umbrella for a category (payroll, leave, human resources etc) and upon clicking the icon, the chat is initiated with a predetermined category and product?

    Best Comment

    Robert Surujbhan

    Yes!  One option is to use the VisualProductCategorySelector widget on a separate CP page (which chat users will visit first) and configure it to point to the chat_launch page using one of its attributes (landing_page_url).  When you do this, the product or category ID selected by the user will get passed to the chat_launch page, and as long as chat_launch contains the ProductCategoryInput widget, it will automatically set it to the correct value based on the incoming ID.  If this works for you, you can even "hide" the ProductCategoryInput widget from the html at that point using CSS, but still keep it there so that the selection gets posted into the system.

    Have you tried this approach?

    Comment

     

    • Robert Surujbhan

      Yes!  One option is to use the VisualProductCategorySelector widget on a separate CP page (which chat users will visit first) and configure it to point to the chat_launch page using one of its attributes (landing_page_url).  When you do this, the product or category ID selected by the user will get passed to the chat_launch page, and as long as chat_launch contains the ProductCategoryInput widget, it will automatically set it to the correct value based on the incoming ID.  If this works for you, you can even "hide" the ProductCategoryInput widget from the html at that point using CSS, but still keep it there so that the selection gets posted into the system.

      Have you tried this approach?