AbanteCart Community

AbanteCart Development => Development Help Needed => Topic started by: Kristi Stoll on March 26, 2020, 06:56:27 PM

Title: How to Create Newsletter Signup Popup
Post by: Kristi Stoll on March 26, 2020, 06:56:27 PM
Hi,

I am trying to create a newsletter signup popup from my newsletter server Mailerlite. I created the code within their website and then created a html block with the code. I then added the html block up at the top like I did with Facebook Pixel Code...but it doesn't work. I'm not very experienced with Abantecart, nor programming. This is the code I used:

<!-- MailerLite Universal -->
<script>
(function(m,a,i,l,e,r){ m['MailerLiteObject']=e;function f(){
var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);
var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?v'+(~~(new Date().getTime()/1000000));
_.parentNode.insertBefore(r,_);})(window, document, 'script', 'https: // static dot mailerlite dot com /js/universal.js', 'ml');

var ml_account = ml('accounts', '1473786', 'd8y3v7e3m6', 'load');
</script>
<!-- End MailerLite Universal -->

NOTE: HAD TO PLACE "dot" IN PLACE OF PERIODS TO POST IN 4TH TO LAST LINE
Can anyone give me some good instructions for what I would need to do?
Thanks so much!!
Kristi
Title: Re: How to Create Newsletter Signup Popup
Post by: HADY on March 27, 2020, 07:32:20 AM
Hi!
Good Point...

Am Following This Post...