Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

272
Views
Gorgias Livechat rule based on language

This code is from Gorgias livechat app, I want to figure out if there's a way to build a rule based on Shopify store language (shop.locale or url string(fr,en)).

The applicationID determine the language of the helpdesk. So that's the only part affected that needs to change based on the rule. Here's the code for english livechat only only. French applicationID is 17741.

Can you help me build this rule?

 <!--Gorgias Chat Widget Start-->
<script id="gorgias-chat-widget-install-v2" src="https://config.gorgias.chat/gorgias-chat-bundle-loader.js?applicationId=17634"></script>
<script id="gorgias-chat-shopify-install">!function(_){_.SHOPIFY_PERMANENT_DOMAIN="{{shop.permanent_domain}}",_.SHOPIFY_CUSTOMER_ID="{{customer.id}}",_.SHOPIFY_CUSTOMER_EMAIL="{{customer.email}}"}(window||{});</script>
<!--Gorgias Chat Widget End--> 
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

use Shopify liquid request.locale to determine the current language and based on updated the application ID. enter image description here

use like

{% assign appID = '' %} // you default ID
{% if request.locale.name == '' %}
  {% assign appID = '' %} // language based ID
{% endif %}

and then

<!--Gorgias Chat Widget Start-->
<script id="gorgias-chat-widget-install-v2" src="https://config.gorgias.chat/gorgias-chat-bundle-loader.js?applicationId={{appID}}"></script>
<script id="gorgias-chat-shopify-install">!function(_){_.SHOPIFY_PERMANENT_DOMAIN="{{shop.permanent_domain}}",_.SHOPIFY_CUSTOMER_ID="{{customer.id}}",_.SHOPIFY_CUSTOMER_EMAIL="{{customer.email}}"}(window||{});</script>
<!--Gorgias Chat Widget End--> 

if there is more than one language then use the case from the liquid. You can read more about case and request.locale

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!