Knowledgebase:
MailChimp Version: 9.0001 Subscriber Pop-up Levels Readytheme
Posted by on 14 February 2018 12:46 PM

Disclaimer: This will work for stores on Miva Version 9.0006. Note that this will require making changes to files on the server. Make sure you make a backup of any files you will be altering.These edits are low-risk but if you feel uncomfortable with making these changes then we advise you to seek help from a developer. 

 

Objective: Correct the Featured Product Carousel on the Levels Readytheme when the MailChimp Subscriber Pop-up script is being used

 

Issue(s): The featured products carousel is no longer functional when I follow this tutorial https://docs.miva.com/mailchimp-subscriber-pop-up

 

Example:

 

 

 

 

Add the following script to the SFNT page Details Template.

Place the script below the global_footer item.

 

 

<script>
    // Fill in your MailChimp popup settings below.
    // These can be found in the original popup script from MailChimp.
    var mailchimpConfig = {
        baseUrl: 'mc.us17.list-manage.com',
        uuid: '4bba5907682a607051d0eb07c',
        lid: '98ace79901'
    };
    
    // No edits below this line are required
    var chimpPopupLoader = document.createElement("script");
    chimpPopupLoader.src = '//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js';
    chimpPopupLoader.setAttribute('data-dojo-config', 'usePlainJson: true, isDebug: false');

    var chimpPopup = document.createElement("script");
    chimpPopup.appendChild(document.createTextNode('require(["mojo/signup-forms/Loader"], function (L) { L.start({"baseUrl": "' +  mailchimpConfig.baseUrl + '", "uuid": "' + mailchimpConfig.uuid + '", "lid": "' + mailchimpConfig.lid + '"})});'));

    jQuery(function ($) {
        document.body.appendChild(chimpPopupLoader);

        $(window).load(function () {
            document.body.appendChild(chimpPopup);
        });

    });
</script>

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?