Forum Forum Prestashop Theme SNS Simen – Responsive Prestashop Theme bug with pop up newsletter

  • Author
    Posts
  • #29579

    oreys
    Participant

    Hi Stephen

    Sorry, but i have still a problem.

    It’s a problem with a pop-up newsletter, can you help me please ? Thanks

    Here ci below a message :

    <script type=”text/javascript”>
    if (window.innerWidth > 768 ) {
    $(document).ready(function($){
    if ($.cookie(‘popupNewLetterStatus’) != ‘closed’) {
    $.fancybox({
    padding : 0,
    width : 800,
    height: ‘auto’,
    autoSize: false,
    openEffect: ‘elastic’,
    ‘beforeLoad’: function(){
    $(‘#popup-subscribe’).removeClass(‘hidden’);
    },
    href: ‘#popup-subscribe’,
    ‘afterClose’ : function(){
    $(‘#popup-subscribe’).addClass(‘hidden’);
    if ($(‘input.no-view’).is(‘:checked’)) {
    $.cookie(‘popupNewLetterStatus’, ‘closed’, {expires:1, path:’/’});
    }
    }
    });
    }
    });
    }
    </script>

    93-produits-pour-chiens-gueule-d-amour:8916 Uncaught TypeError: $.fancybox is not a function at HTMLDocument.<anonymous> (93-produits-pour-chiens-gueule-d-amour:8916) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2)

You must be logged in to reply to this topic. Click here to login or register