Nov 26, 2019 4:18 AM
In custom module we have to chnage the currency based on country codes. Can any one help on this how to do it on hubl language?
Solved! Go to Solution.
Feb 20, 2020 9:07 AM
@prasadcolumbus , thank you for your response. I was stuck too. But then I found a variable {{ request.geoip_country }} and it worked for me. Below is the 'if condition' I used.
{% if request.geoip_country == "us" %} where "us" is country code for "United States".
Hope it works for you. 🙂
Nov 26, 2019 2:30 PM
Hi @prasadcolumbus ,
U already use multilanguage pages to create variation in HubSpot?
If dont use, is simple. Look:
1) Open webpages list in your HubSpot;
2) Click in "More" on page you want create the variation;
3) Click em "Create multi-language variation".
4) Select the language of new variation:
Now, u can insert others texts, images and values for the variation created.
Please, if this content is what you are looking for, mark it as a solution.
Best regards!
Nov 27, 2019 11:55 PM
Hi DanielSanchez,
Thanks for your replay, But it's not solution for my issue.
In HUBL language how to get country code or country name? like {{ request.remote_ip }}
https://designers.hubspot.com/docs/hubl/hubl-supported-variables
Feb 19, 2020 10:00 AM
@prasadcolumbus , did you find any solution for this?
Feb 20, 2020 12:44 AM
No. I did n't get any solution for above issue.
Feb 20, 2020 9:07 AM
@prasadcolumbus , thank you for your response. I was stuck too. But then I found a variable {{ request.geoip_country }} and it worked for me. Below is the 'if condition' I used.
{% if request.geoip_country == "us" %} where "us" is country code for "United States".
Hope it works for you. 🙂
Feb 21, 2020 2:27 AM
@mansigovani it's working for me also.Thank you so much on your support and time.
Feb 21, 2020 2:56 PM
@prasadcolumbus , I am glad, I was of some help to you!