Jump to content
electriz

[Free module] Custom popup notification

Recommended Posts

On 04/01/2018 at 7:45 PM, huko said:

Still nobody know where is problem with delay function? When I set the popup without delay, everything is okey and when I close popup I see in cookies, that cookie variable responsive_popup is set "yes" so the popup will not show again. But when I set delay 10 seconds, I close the popup, than in cookies there is not variable responsive_popup at all... I can't find out where is the problem :( 

 

 

Hi Huko,

I've been facing the same problem with the delay function. To fix it, in customepopup.tpl, you need to copy this :

 

 $(".popup_close").click(function(){
                    Cookies.set('responsive_popup', 'yes', { expires: {/literal}{$popup_cookie*0.000694}{literal}, path: '/' });
                });
               

And add it, right above :

{/literal}{if $popup_delay > 0}{literal}

 

My full code here :

 

{if $logged}
<div id="inline" style="display:none">
    {$content_{Context::getContext()->language->id[spam-filter]
</div>
{else}

{if $popup_enabled}
{literal}
    <script>
        $(function() {
            {/literal}{if $popup_delay > 0}{literal}
            setTimeout(function(){
                {/literal}{/if}{literal}
                var popup = new $.Popup();
                if (Cookies.get('responsive_popup') != 'yes') {
                    popup.open('#inline');
                    {/literal}{if $version == "1.7"}{literal}
                        $.ajax({
                            url: "{/literal}{$ajaxpath}{literal}",
                            type: "post",
                            data: {
                            },
                            success: function (response) {
                                $(".popup_content").html(response);
                                $(window).trigger('resize');
                            },
                            error: function(jqXHR, textStatus, errorThrown) {
                            }
                        });
                    {/literal}{/if}{literal}
                }
                
                $(".popup_close").click(function(){
                    Cookies.set('responsive_popup', 'yes', { expires: {/literal}{$popup_cookie*0.000694}{literal}, path: '/' });
                });
                
                {/literal}{if $popup_delay > 0}{literal}
            },  {/literal}{$popup_delay*1000}{literal});
            {/literal}{/if}{literal}

            $(".popup_close").click(function(){
                Cookies.set('responsive_popup', 'yes', { expires: {/literal}{$popup_cookie*0.000694}{literal}, path: '/' });
            });
            
            $('.popup a').click(function(){
                            popup.close();
                            Cookies.set('responsive_popup', 'yes', { expires: {/literal}{$popup_cookie*0.000694}{literal}, path: '/' });
                        });

            var instances = $('.popup').length;
            if(instances > 1)
            {
                $( ".popup" ).last().remove();
                $( ".popup_back" ).last().remove();
                $( ".popup_close" ).last().remove();
            }
        });
    </script>{/literal}
{/if}
{literal}<style>
        div.popup {
            background-color:{/literal} {$popup_color}{literal};
            padding:{/literal} {$padding}{literal}px;
            padding-top:{/literal} {$top_padding}{literal}px;
        }
        div.popup img {
            max-width: 100%;
            height: auto;
        }
        .popup_back {
            background-color: {/literal}{$back_color}{literal};
        }
        .popup_close:hover {
            color: {/literal}{$button_hover_color}{literal};
        }
        .popup_close {
            color: {/literal}{$button_color}{literal};
            top: {/literal}{$button_top_padding}{literal}px;
            font-size: {/literal}{$button_size}{literal}px;
            {/literal}{$button_position}{literal}: 5px;
        }
    </style>
{/literal}


<div id="inline" style="display:none">
    {$content_{Context::getContext()->language->id[spam-filter]
</div>
{/if}

 

Note that I've wrapped my code inside {if $logged} {/if} because I only wanted to display this popup for visitors not logged in to their account.

Everything working great for me now.

Hope it helps.

Thanks electriz for this module.

  • Like 1

Share this post


Link to post
Share on other sites

This module adds a "1" (number 1) at the top of the page on 1.6.1.17 and  1.6.1.18 both, when you {HOOK_HEADER}. Indeed, when I disable it, this number 1 goes away from the body.

At the moment, I can't find the culprit

if you know why, please reply. Thanks

 

Edited by mmsh (see edit history)

Share this post


Link to post
Share on other sites
9 hours ago, mmsh said:

This module adds a "1" (number 1) at the top of the page on 1.6.1.17 and  1.6.1.18 both, when you {HOOK_HEADER}. Indeed, when I disable it, this number 1 goes away from the body.

At the moment, I can't find the culprit

if you know why, please reply. Thanks

 

FOUND but don't know why

on custompopup.php

public function hookDisplayHeader()

if you keep return true; it adds that number 1 at the top of the page, if you just use return; instead it doesn't add that number and it works as usual

can you explain why, please?

p.s.: as you can see here

http://doc.prestashop.com/display/PS16/Displaying+content+on+the+front+office

when you create a module and 

public function hookDisplayHeader()
{
  ....
}

 

you don't even need a return or you could output something on the page on purpose

so, why the op here didn't respect the PS rules? Thanks

Edited by mmsh (see edit history)

Share this post


Link to post
Share on other sites

Hello and thank you very much for the module, I'm trying to install it in version 1.6.1.6 and it tells me that it could not be installed correctly, however the module is installed. when I enter the text and  save it tells me that the changes have been successfully saved but deletes the text. any ideas?

Share this post


Link to post
Share on other sites

When i gong to configure it shows that 

Notice en línea 776 en archivo ......public_html/shop/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
[8] Undefined offset: 2

why?

Edited by eridamega (see edit history)

Share this post


Link to post
Share on other sites
On 12.03.2018 at 1:53 AM, mmsh said:

FOUND but don't know why

on custompopup.php

public function hookDisplayHeader()

if you keep return true; it adds that number 1 at the top of the page, if you just use return; instead it doesn't add that number and it works as usual

can you explain why, please?

p.s.: as you can see here

http://doc.prestashop.com/display/PS16/Displaying+content+on+the+front+office

when you create a module and 

public function hookDisplayHeader()
{
  ....
}

 

you don't even need a return or you could output something on the page on purpose

so, why the op here didn't respect the PS rules? Thanks

 

Well, I don't have idea how you got it. I just downloaded 1.1.0 version once again, this is the content of hookDisplayHeader.

 

    public function hookDisplayHeader()
    {
        $this->context->controller->addJS($this->_path.'views/js/jquery.cookie.js', 'all');
        $this->context->controller->addJS($this->_path.'views/js/jquery.popup.min.js', 'all');
        $this->context->controller->addCSS($this->_path.'views/css/popup.css', 'all');

        $this->context->smarty->assign(array(
            'jq' => $this->_path.'views/js/jq.js'
        ));

        return $this->display(__FILE__, 'header.tpl');
    }

 

And I just installed it on fresh 1.6.1.18. No "1" @ top page. So please, maybe instead of your claims try new version on a clean installation...

 

Share this post


Link to post
Share on other sites
6 minutes ago, electriz said:

 

Well, I don't have idea how you got it. I just downloaded 1.1.0 version once again, this is the content of hookDisplayHeader.

 


    public function hookDisplayHeader()
    {
        $this->context->controller->addJS($this->_path.'views/js/jquery.cookie.js', 'all');
        $this->context->controller->addJS($this->_path.'views/js/jquery.popup.min.js', 'all');
        $this->context->controller->addCSS($this->_path.'views/css/popup.css', 'all');

        $this->context->smarty->assign(array(
            'jq' => $this->_path.'views/js/jq.js'
        ));

        return $this->display(__FILE__, 'header.tpl');
    }

 

And I just installed it on fresh 1.6.1.18. No "1" @ top page. So please, maybe instead of your claims try new version on a clean installation...

 

 

maybe something weird with that PS update, but I'm sure I have not touched anything...I would never have written "return true;" for no reason...It's incredible and I can not understand where it came from, 

If it comes from the Prestashop 1-click update it is serious if modules are touched this way

 

Share this post


Link to post
Share on other sites

New version available

v1.2.0

- Fixed bug of always appearing popup, even with cookie set
- Changed "jquery cookie" to "js cookie" library, because previous one was broken
- Added "version checker" tab where you can check now if your module version is current one
- Added info under content area about requirement of filling this field for each language

  • Like 1

Share this post


Link to post
Share on other sites

Now i get always a " Cookie length - value '' is not a number " Error, when i try to save. This error appeared after upgrading to 1.2.0

 

Okay, i've seen, the delay-field was empty :)

Edited by Claudiocool (see edit history)

Share this post


Link to post
Share on other sites

BTW: I have an idea for one of the next releases:

The possibility to set a time for showing the popup. If i use it e.g. for a easter-special, it wuold be useful to let ist stop at the same time as the specials end.

  • Like 1

Share this post


Link to post
Share on other sites
15 hours ago, Claudiocool said:

BTW: I have an idea for one of the next releases:

The possibility to set a time for showing the popup. If i use it e.g. for a easter-special, it wuold be useful to let ist stop at the same time as the specials end.

 

Cool idea, thanks for sharing :)

Share this post


Link to post
Share on other sites
On 06/11/2017 at 5:37 PM, mflorezm said:

Bonjour Electriz, je teste déjà votre module v1.1.0 sur PS1.7.2.4, mais il ouvre toujours une petite fenêtre avant de charger le contenu pop-up. S'il vous plaît regardez l'image ci-joint beow. Des idées sur la façon de résoudre ce problème?

Merci.

 

popup blanc.png

Hello, I have the same problem that I think it comes from the "https"
I find this error in the console
  "Mixed Content: The page at 'https://www.voyance-prediction.com/' was loaded over HTTPS, but requested an XMLHttpRequest insecure endpoint 'http://www.voyance-prediction.com/modules/custompopup/ajax /get_content.php 'This request has been blocked and the content must be served over HTTPS. "

But I do not know how to adjust because normally the whole site is in https, if someone to an idea I'm interested.
Thank you

 

Share this post


Link to post
Share on other sites

Very simple and much appreciated. I cannot see the newletter signup as this is more of a popup but its still better than other free options out on the forum. 

 

Just donated to your Pay Pal.

  • Like 1

Share this post


Link to post
Share on other sites
On 8/11/2016 at 10:38 AM, electriz said:

Custom popup notification

by PrestaCraft

 

Current module version: 1.1.0

PrestaShop compatible: 1.6 , 1.7

http://prestacraft.com/free-modules/home/8-custom-popup-notification.html

 

This module displays a popup with Your content on chosen pages.

 

Note: If you run more than one language in Your store, fill the popup content for all languages to save it correctly.

 

Features

  • Cookie system - Module remembers if user has closed the popup. If You don't want to show it again, You can set cookie duration. User will see the popup again after that amount of time.
  • Display options (colors, size, etc.)
  • Popup content for each available language in Your shop
  • Delay option: define how many seconds must pass to show the popup
  • Friendly User Interface

 

Screenshots

 

7ZwUesQ.png

 

 

spUmSIO.png

 

 

JEuW6XS.png

 

 

pdolrbj.png

Changelog

v1.2.0

- Fixed bug of always appearing popup, even with cookie set
- Changed "jquery cookie" to "js cookie" library, because previous one was broken
- Added "version checker" tab where you can check now if your module version is current one
- Added info under content area about requirement of filling this field for each language
v1.1.0
- Compatibility with PS 1.7
- Code formatting matches PSR-2 standards and PS validation
- Delay option: define how many seconds must pass to show the popup
- Images inside popup are resized properly to the browser width

Download

 - Current version custompopup_1.2.0.zip

 

IF YOU LIKE THIS MODULE, PLEASE DONATE AND SHARE <3

Hi, i have a problem, don't show pop up content :( I use Prestashop 1.6.1.11. I attached two photos. I don't know why don't work. I have only one language (RO) and don't show in BO to select language. Please,if you can, help me!

Best regard!

Untitled.png

Untitled-1.png

Share this post


Link to post
Share on other sites

Hi I have recently downloaded your "Custom popup notification" plugin.
I have created a simple window for checking the delivery of the zip code.
The problem is that after entering the zip code and clicking the send button, the parameters are sent correctly, but the popup window does not go away.
here is the simple code of the popup window:

<div style="color: #000; font-weight: bold; display: block; padding: 8px 9px 11px 8px; line-height: 18px;">
<div style="float: left; padding-right: 10px;">Verifica che il servizio di consegna sia attivo nella tua zona, inserisci il tuo cap:</div>
<form id="form1" name="form1" method="get" action="http://www.famami.it/demo/"><input name="cap" id="cap" size="5" maxlength="5" type="text" /> <input name="submit" id="submit" value="Invia" onclick="window.close();" type="submit" /></form></div>

I have also set the cookie duration to 1440 to only show the popup once a day, but it works only if I click the x. Can you help me?

Share this post


Link to post
Share on other sites
33 minutes ago, Fabio Intermoia said:

Hi I have recently downloaded your "Custom popup notification" plugin.
I have created a simple window for checking the delivery of the zip code.
The problem is that after entering the zip code and clicking the send button, the parameters are sent correctly, but the popup window does not go away.
here is the simple code of the popup window:

<div style="color: #000; font-weight: bold; display: block; padding: 8px 9px 11px 8px; line-height: 18px;">
<div style="float: left; padding-right: 10px;">Verifica che il servizio di consegna sia attivo nella tua zona, inserisci il tuo cap:</div>
<form id="form1" name="form1" method="get" action="http://www.famami.it/demo/"><input name="cap" id="cap" size="5" maxlength="5" type="text" /> <input name="submit" id="submit" value="Invia" onclick="window.close();" type="submit" /></form></div>

I have also set the cookie duration to 1440 to only show the popup once a day, but it works only if I click the x. Can you help me?

 

Please post your store url

Share this post


Link to post
Share on other sites
On 11/8/2016 at 1:38 AM, electriz said:

Custom popup notification

by PrestaCraft

 

Current module version: 1.1.0

PrestaShop compatible: 1.6 , 1.7

http://prestacraft.com/free-modules/home/8-custom-popup-notification.html

 

This module displays a popup with Your content on chosen pages.

 

Note: If you run more than one language in Your store, fill the popup content for all languages to save it correctly.

 

Features

  • Cookie system - Module remembers if user has closed the popup. If You don't want to show it again, You can set cookie duration. User will see the popup again after that amount of time.
  • Display options (colors, size, etc.)
  • Popup content for each available language in Your shop
  • Delay option: define how many seconds must pass to show the popup
  • Friendly User Interface

 

Screenshots

 

7ZwUesQ.png

 

 

spUmSIO.png

 

 

JEuW6XS.png

 

 

pdolrbj.png

Changelog

v1.2.0

- Fixed bug of always appearing popup, even with cookie set
- Changed "jquery cookie" to "js cookie" library, because previous one was broken
- Added "version checker" tab where you can check now if your module version is current one
- Added info under content area about requirement of filling this field for each language
v1.1.0
- Compatibility with PS 1.7
- Code formatting matches PSR-2 standards and PS validation
- Delay option: define how many seconds must pass to show the popup
- Images inside popup are resized properly to the browser width

Download

 - Current version custompopup_1.2.0.zip

 

IF YOU LIKE THIS MODULE, PLEASE DONATE AND SHARE <3

Lo he instalado pero me muestra error, qué podrá ser...

image.thumb.png.8a031e2619a402b117af943e610bb84f.png

  • Thanks 1

Share this post


Link to post
Share on other sites
On 5/15/2018 at 3:00 PM, Daniela said:

Hi, i have a problem, don't show pop up content :( I use Prestashop 1.6.1.11. I attached two photos. I don't know why don't work. I have only one language (RO) and don't show in BO to select language. Please,if you can, help me!

Best regard!

Untitled.png

Untitled-1.png

Hi, my site url is: axel-company.ro, but the module is not activated because don't work. PLease tell me when you can look (day-hour) to activate module. Thanks a lot!

Share this post


Link to post
Share on other sites
On 5/16/2018 at 8:48 AM, sancarroch said:

Lo he instalado pero me muestra error, qué podrá ser...

image.thumb.png.8a031e2619a402b117af943e610bb84f.png

hello! :) did you find a solution to this problem? Im facing the same :(

Share this post


Link to post
Share on other sites
On 16.05.2018 at 6:49 PM, NeedZoom said:

hi, thks for the module.

I can use form in it?

 

Form using is allowed, but you will have to code some actions to this form (handling sending/saving value etc.)

Share this post


Link to post
Share on other sites

Nice work!
tested v. 1.2.0 on a PS 1.6.1.20 (and also on a Thirty Bees 1.0.5) .... custom themes ... it run very very well on both sites, all is absolutely perfect!

  • Like 1

Share this post


Link to post
Share on other sites
On 10.07.2018 at 5:39 PM, eridamega said:

Why does it show nothing?

Captura.JPG.1f92da670abf1a45f447f04ac5eb3e45.JPG

 

 

What do you have in your browser console?

Share this post


Link to post
Share on other sites
On 10.07.2018 at 3:33 PM, ilmiogiardino said:

In version 1.7.3 module works well but popup is not centered.

Please take a look: www.pianteinsolite.it

Any suggest?

Thanks!

 

Seems like you've disabled this module because nothing appears.

Share this post


Link to post
Share on other sites
13 hours ago, electriz said:

 

Seems like you've disabled this module because nothing appears.

 

Hi.

Yes module is disabled because popup was not centered.
In Chrome it appears in center but bottom and in Explorer in bottom/right.

Really don't know why ...

Share this post


Link to post
Share on other sites

Hi, 
In the current 'header.tpl' there is a link error to the js file. Is there a github page where i can fix this bug? :)

Share this post


Link to post
Share on other sites
On 8/3/2018 at 3:28 PM, rez0n said:

Hello @electriz

Thank you for this module! 

I'm use it on multishop configuration, when I save content for shop#1 - all ok, when i save content for shop#2 it was replace text for shop#1 :(


same problem with version 1.6.1.19 with multishop

Share this post


Link to post
Share on other sites
47 minutes ago, giuliopowa said:


same problem with version 1.6.1.19 with multishop

Yes, problem still present. 

Workaround: Edit texts for both shops in database ;)

Dear author, please, fix this, seems it simple bug.

Share this post


Link to post
Share on other sites

Hey guys, thanks a lot for the free stuff :) 

I have a problem i don't know how to fix could you help me with it? Don't think it comes from the module but it seems to block its appearance... Many thanks in advance >>>>

"Notice à la ligne 775 du fichier /var/www/vhosts/manibus.fr/manibus.fr/cache/smarty/compile/df/3b/d8/df3bd8a670aa0301121bc0f05845595cbf95c3d9.file.form.tpl.php
[8] Undefined offset: 3

Notice à la ligne 775 du fichier /var/www/vhosts/manibus.fr/manibus.fr/cache/smarty/compile/df/3b/d8/df3bd8a670aa0301121bc0f05845595cbf95c3d9.file.form.tpl.php
[8] Undefined offset: 4

 

Share this post


Link to post
Share on other sites

Hi everybody, thanks for your feedback.

Currently I'm working to release 2.0.0 version which should fix those issues, and also have very nice additional features.

Share this post


Link to post
Share on other sites

Congratulations for your module!! Thanks for you knowledge sharing!!

Do you think is easy and valid for future versions a option to show the popup based on a category or categories.

For me, may be very useful.

Thanks again for your work!!

 

 

Share this post


Link to post
Share on other sites

New version 2.0.0 is out! What's new:

  • Multistore support
  • Pure JavaScript popup – “tingle” – no jQuery
  • Much better BackOffice look and navigation
  • Hooking option – now you can select where do you want to display the popup
  • Popup footer – optional feature where you can insert your text, buttons or both. Fully customizable.

 

On 6.09.2018 at 12:16 AM, JoseMi67 said:

Congratulations for your module!! Thanks for you knowledge sharing!!

Do you think is easy and valid for future versions a option to show the popup based on a category or categories.

For me, may be very useful.

Thanks again for your work!!

 

 

 

Thanks for your kind words.

To do so, download 2.0.0, open file /modules/custompopup/views/templates/hook/custompopup.tpl

Wrap whole file content around those tags, like this:

{if $smarty.get.controller == "category"}

{if Tools::getValue("id_category") == YOUR_CATEGORY_ID}

custompopup.tpl content HERE
{/if}

{/if}

 

If you want multiple categories, use || between Tools::getValue("id_category") == YOUR_CATEGORY_ID, like 

Tools::getValue("id_category") == YOUR_CATEGORY_ID || Tools::getValue("id_category") == YOUR_CATEGORY_ID_2 || Tools::getValue("id_category") == YOUR_CATEGORY_ID_3

The last thing is you should go to module configuration page. Enable popup in first tab, and in the Display tab select displayFooter hook.

Share this post


Link to post
Share on other sites

It's a pity, that this great module doesn't work on prestashop 1.5, there are still many of us using it.

I installed it on my store by changing the _ps_version_ in the php file, but it always says that popup content can not be empty, whatever I put in the editor :(

 

Share this post


Link to post
Share on other sites

HI Electriz,

Great module. Thanks a lot for sharing.
It works fine.
Just wondering if you thought of making a version of this module to pop up on web site exit?

Cheers,
Alex

Share this post


Link to post
Share on other sites

Hi thanks for this great module.  Very versatile,   I am having a problem with making it transparent.  If I leave the box blank it automatically defaults to black when I hit save button..  I am using PS 1.7.4.4   The popup I have to hit the X to close it 2 times before it will close. It will be a solid black then I hit the X to close then will become somewhat transparent then when I hit the X again it will close.

I fixed the problem by unhooking it from the home page.

Thanks for the module!!

Edited by need2011
fixed (see edit history)

Share this post


Link to post
Share on other sites

hi, is possible insert a close button inside the main popup text ?  not in the footer.

i need to have:

Image
close button
text

is possiible?

Share this post


Link to post
Share on other sites

Module is great! thanks for the work! Please add the ability to customize the choice of date, time, day of the week.

Share this post


Link to post
Share on other sites

Thanks for this great module. It's working great, except that it seems to disable my image slider module:

"Image slider for your homepage v1.6.1 - by PrestaShop"4

Instead of the slider, it shows one static image instead.

When I turn off custom popup, it works again.

Is there any workaround?

Share this post


Link to post
Share on other sites

Hi and thanks for the module.

I'm having trouble with getting background transparent in 1.7.5 - it is always solid color. Any suggestions?

Tried to hook it to home and to footer - works the same.

Share this post


Link to post
Share on other sites
16 minutes ago, Luis_RG said:

Here you are.

custompopup.zip

That's some old version from 2017. The last version is possible to download in the very first post of this treat. Just go to the first page and you will find a link and it's work fine.

Share this post


Link to post
Share on other sites
30 minutes ago, huko said:

That's some old version from 2017. The last version is possible to download in the very first post of this treat. Just go to the first page and you will find a link and it's work fine.

I have read that the new versions have problems, with this version I had no problem.

Share this post


Link to post
Share on other sites

Link seems to be broken due to a mysql error :

http://prestacraft.com/custom-popup-notification/Fatal%20error:%20Uncaught%20Error:%20Call%20to%20undefined%20function%20mysql_connect()%20in%20/usr/home/kamilgoralczyk/domains/prestacraft.com/public_html/dbconnect.php:3Stack%20trace:#0%20/usr/home/kamilgoralczyk/domains/prestacraft.com/public_html/ajax/recaptcha.php(2):%20require()#1%20{main}%20%20thrown%20in%20/usr/home/kamilgoralczyk/domains/prestacraft.com/public_html/dbconnect.php%20on%20line%203

Thanks for posting the zip in comments

Share this post


Link to post
Share on other sites
4 hours ago, Webteam Antigone said:

Link seems to be broken due to a mysql error :


http://prestacraft.com/custom-popup-notification/Fatal%20error:%20Uncaught%20Error:%20Call%20to%20undefined%20function%20mysql_connect()%20in%20/usr/home/kamilgoralczyk/domains/prestacraft.com/public_html/dbconnect.php:3Stack%20trace:#0%20/usr/home/kamilgoralczyk/domains/prestacraft.com/public_html/ajax/recaptcha.php(2):%20require()#1%20{main}%20%20thrown%20in%20/usr/home/kamilgoralczyk/domains/prestacraft.com/public_html/dbconnect.php%20on%20line%203

Thanks for posting the zip in comments

 

Thank you, should be fixed now

Share this post


Link to post
Share on other sites

Hi, 

Thanks for a great module, simple to use and easy to implement.

Though I hit a problem, maybe anyone has any idea. When I set any Display on displayHome or displayFooter , the popup works , but for some reason the whole mechanic of the page stops working and sliders get expanded into separate images etc. Attached img. 

I'm more of a beginner in prestashop moderation and I tried to play about a bit, tough I won't try looking smart and will say I have no Idea :)

Any hint would be appreciated!
Thanks!

popup issue.JPG

Share this post


Link to post
Share on other sites
19 hours ago, Sibirksacedra said:

Hi, 

Thanks for a great module, simple to use and easy to implement.

Though I hit a problem, maybe anyone has any idea. When I set any Display on displayHome or displayFooter , the popup works , but for some reason the whole mechanic of the page stops working and sliders get expanded into separate images etc. Attached img. 

I'm more of a beginner in prestashop moderation and I tried to play about a bit, tough I won't try looking smart and will say I have no Idea :)

Any hint would be appreciated!
Thanks!

popup issue.JPG

Post your store URL please so I may have a look at this.

Share this post


Link to post
Share on other sites

my store url is https://sibirskacedra.si , but as the store is live and it doesn't work while your popup module is active, I don't have it enabled. If you need that , than we need to be on-line somehow so that we modulate the error for a few minutes or if I give you acess to BO?

Thanks

Share this post


Link to post
Share on other sites

Hi! I need a free module to prestashop 1.7.4.4 I want it to generate a popup notification from mailchip. I have a mailchip  code generate to introduce in prestashop but I need the module.

Thank you !!!

Share this post


Link to post
Share on other sites
14 minutes ago, CBDwire said:

Looks good, does it work okay with your age popup installed as well?

Should be fine as those popups uses different libraries.
I've tested this some time ago and it was fine.

  • Like 1

Share this post


Link to post
Share on other sites
2 minutes ago, electriz said:

Should be fine as those popups uses different libraries.
I've tested this some time ago and it was fine.

Thanks, I will try it out :)

Share this post


Link to post
Share on other sites

Bonjour,

Merci pour ce module.
La taille de la fenêtre contextuelle reste fixe et ne s'adapte pas au contenu.
C'est le seul problème, dommage.

Sous Prestashop 1.7.5

Edited by firebird131 (see edit history)

Share this post


Link to post
Share on other sites
23 minutes ago, firebird131 said:

Bonjour,

Merci pour ce module.
La taille de la fenêtre contextuelle reste fixe et ne s'adapte pas au contenu.
C'est le seul problème, dommage.

Sous Prestashop 1.7.5

Can you post your store url ?

Share this post


Link to post
Share on other sites

Hello and thanks for sharimng this module!

I'd like to open the Popup only when visitors click one category, is it possible to do it someway?

Thanks and best regards,

Roberto.

Share this post


Link to post
Share on other sites
5 hours ago, genoaboy2001 said:

Hello and thanks for sharimng this module!

I'd like to open the Popup only when visitors click one category, is it possible to do it someway?

Thanks and best regards,

Roberto.

Hi,

This is a nice idea, also some people wanted this effect - so I think this feature will be available in next update :) Stay tuned.

Currently I recommend you doing it manually : 

 
Check my comment

Share this post


Link to post
Share on other sites
On 8/11/2016 at 10:38 AM, electriz said:

Custom popup notification

by PrestaCraft

custompopup.png

 

Current module version: 2.0.0

PrestaShop compatible: 1.6 , 1.7

 

 http://prestacraft.com/custom-popup-notification/

 

This module displays a popup with Your content on chosen pages.

 

Note: If you run more than one language in Your store, fill the popup content for all languages to save it correctly.

 

Features

  • Cookie system - Module remembers if user has closed the popup. If You don't want to show it again, You can set cookie duration. User will see the popup again after that amount of time.
  • Display options (colors, size, etc.)
  • Popup content for each available language in Your shop
  • Delay option: define how many seconds must pass to show the popup
  • Display your popup wherever you want to – just select any hook(s)
  • Friendly User Interface

 

Screenshots

front-1.png

 

front-2.png

 

front-3.png

 

back-1.png

 

back-2.png

 

back-3.png

 

back-4.png

 

Changelog

v2.0.0

- Multistore support
- Pure JavaScript popup – “tingle” – no jQuery
- Much better BackOffice look and navigation
- Hooking option – now you can select where do you want to display the popup
- Popup footer – optional feature where you can insert your text, buttons or both. Fully customizable.

v1.2.0

- Fixed bug of always appearing popup, even with cookie set
- Changed "jquery cookie" to "js cookie" library, because previous one was broken
- Added "version checker" tab where you can check now if your module version is current one
- Added info under content area about requirement of filling this field for each language
v1.1.0
- Compatibility with PS 1.7
- Code formatting matches PSR-2 standards and PS validation
- Delay option: define how many seconds must pass to show the popup
- Images inside popup are resized properly to the browser width

Download

 - Current version custompopup_2.0.0.zip

 

IF YOU LIKE THIS MODULE, PLEASE DONATE AND SHARE ❤️

Thanks a lot for this module it works greath. Good job

Share this post


Link to post
Share on other sites

Dear Electriz,

 

I am in love with your addon, probably my favourite. I used to use the 1st version, now using the 2nd version on my other presta store (multistore)

What i couldn't set in the second version is the transparency of the background (blue on the attached screenshots).

I could make it transparent at my first store (1st version of Custom Popup):

image.thumb.png.847b6c8d474134e56458aed6aa7789d9.png

 

but not at the other (2nd version of Custom Popup):

image.thumb.png.87c0773525c5df1c24799723d1ee4e58.png

Is there any way to set the 2nd version's transparency?

 

Thanks and Regards,

 

Csaba

Share this post


Link to post
Share on other sites

@pegtop

Hello,

First of all thank You for those nice words. I'm really happy you like my module so much!
Of course I will have a look at this today/tomorrow. I will try to release new version which will fix that bug.

What's Your PS version? 

Share this post


Link to post
Share on other sites

Hi there,

I've sticked with 1.6. Made there too many changes, cannot really leave it :)

Thanks and regards,

Csaba

Share this post


Link to post
Share on other sites

Hello, 

Thanks for the module, it is what I'm looking for.
One question, is it possible that the pop up doesn't show up anymore when a promo code is used?

Kind regards,

Share this post


Link to post
Share on other sites

Hi,

Has anyone found issue on homeslider ( Image slider for your homepage  ) after installing this module? I'm using prestashop v.1.6.1.20.

I have installed this module, works beautifully ( hooked to homepage). Immediately my home slider stopped working it stood still on first slide.  After disabling this module,  homeslider started working again.

Any help on this?

Share this post


Link to post
Share on other sites
6 hours ago, shardul said:

Hi,

Has anyone found issue on homeslider ( Image slider for your homepage  ) after installing this module? I'm using prestashop v.1.6.1.20.

I have installed this module, works beautifully ( hooked to homepage). Immediately my home slider stopped working it stood still on first slide.  After disabling this module,  homeslider started working again.

Any help on this?

Im having the same problem so if u find a solution to this problem writw

Share this post


Link to post
Share on other sites

Hi,

@electriz

Yes , I found console error (in blocksearch.js) given below :

Uncaught ReferenceError: id_lang is not defined
at HTMLDocument.<anonymous> (blocksearch.js:56)
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)

Share this post


Link to post
Share on other sites

@shardul

Thank you, could you try downloading this file and let me know if it works?
Should be fine now. If so, I will release this new version in my website and first post here.

custompopup_2.0.2.zip

Share this post


Link to post
Share on other sites

@electriz

This time it worked like charm, without Fail. Thank you so much for your efforts and such a wonderful plugin.

  • Like 1

Share this post


Link to post
Share on other sites
On 5/15/2019 at 3:39 PM, electriz said:

@shardul @Petar

Guys, do you have any console error? If so, please post it here so I can check this issue.

Works perfect with the new uppdate. Thanks a lot for the module

Share this post


Link to post
Share on other sites
Posted (edited)

HI,

 

Thank you for your module.  It is working like a charm but I can not set background transparency like @pegtop.  I have installed last version 2.0.2.  I have tried to modify the css but I set transparency for all window.

Anybody know what css class I have to change, please?

You can check at hogarterapia.com

SOLVED.  It was my fault for not reading all configuration.

Edited by ipaelo (see edit history)

Share this post


Link to post
Share on other sites