Are you looking to give your international customers the same kind of shopping experience as your domestic customers? Let us introduce you to Zonos Hello!
When an international shopper arrives at your site, Hello immediately welcomes the shopper and messages them in their local language, letting them know you sell globally. It’s quick and easy to integrate our extension and start delivering a better experience for your international shoppers.
Zonos credentials, including your Hello site key, can be found at https://dashboard.zonos.com/settings/integrate.
Ready to install Hello? We’re excited to get you started!
2. Once you finish the registration process, check your inbox for an email to activate your Zonos account.
3. After verifying your email, you will receive a second email with your custom Hello script.
4. Copy the custom Hello script found in the email.
Add a shipment rating to ensure that Hello will work as accurately as possible as a stand-alone plugin.
theme.liquid
.theme.liquid
file, place your custom Zonos script before the closing body tag.If you are using Shopify as your platform, we have a script you can use that will pull the product data from your Shopify product details.
The below code has a function that will run on the product pages and the cart page.
Hello integration script
<script>
function znDutyTaxEstimateOnDetailPage() {
{% if product and product.price %}
zonos.quote({
items: [{ price: "{{ product.price | money_without_currency }}", name: "{{product.title | replace: '"', '\"'}}", url: "{{ shop.secure_url }}{{ product.url }}", image: "https:{{ product.featured_image | product_img_url: 'medium' }}"}],
currencyCode: '{{ shop.currency }}'
});
{% endif %}
}
function znDutyTaxEstimateOnCartPage() {
if (window.location.href.indexOf("cart") > -1) {
zonos.quote({
items: [
{% for item in cart.items %}
{ price: "{{ item.price | money_without_currency }}", quantity: {{item.quantity}}, name: "{{ item.title | replace: '"', '\"'}}", url: "{{ shop.secure_url }}{{item.url}}", image: "https:{{item.image| product_img_url: 'medium'}}"},
{% endfor %}
],currencyCode: '{{ shop.currency }}'});
}
}
znDutyTaxEstimateOnDetailPage();
znDutyTaxEstimateOnCartPage();
</script>
The z-intl
class is based on the current domestic country. If Hello is set to an international country, the z-intl
class will act as a hidden class, hiding the content that z-intl
is tied to.
Use the following CSS to hide content. Replace your-content
with floating content you want hidden.
z-intl your-content { display: none; }
Now you can hide Hello from your domestic customers so other dialogs are visible again.
Hello customization CSS
#zonos {
display: none;
}
z-intl #zonos {
display: block;
}
Add the #zonos id combined with the country code that doubles as the CSS class for that country to the z-intl { display: none; }
function.
The line should look something like this:
Hello customization CSS
z-intl #zonos.US {
display: none;
}
Zonos Hello for Shopify