Shopify themes, liquid, logos, and UX
Hi everyone,
I have the following code in a .js file which displays a popup window when the If condition is false:
if ($("#agree").is(":checked")) {
$(this).submit();
} else {
alert("You must agree with the terms and conditions of sales to check out.");
return false;
}
I have the following questions:
1) At the moment the popup shows near the top, as far as I know it's not possible to center it when using alert, what would be the easiest alternative?
2) How can I retrieve the page language and use it in an IF condition to display the message either in English or French?
Thank you very much in advance!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024