Jump to content

[Free module] Custom popup notification


electriz
 Share

Recommended Posts

  • 1 month later...

Hello and thank you very much for the free module. It works fine on 1.6.0.11 but I do have a problem with adjusting size. It's lenght is way too big and and height smaller than I would like, and I don't know how to adjust dimensions. If somone has done this and has some pointers, I'd be happy to hear them.

 

Thank you.

Edited by Alex Nitu (see edit history)

Share this post


Link to post
Share on other sites

Hello and thank you very much for the free module. It works fine on 1.6.0.11 but I do have a problem with adjusting size. It's lenght is way too big and and height smaller than I would like, and I don't know how to adjust dimensions. If somone has done this and has some pointers, I'd be happy to hear them.

 

Thank you.

 

Hello,

 

Size of popup is automatically adjusted to your content inside. You can set smaller "Content padding" and "Content top padding"  in the Customize style tab.

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...

I am receiving the same error and is not leting me  to save changes. Any idea

 

Hello!

 

I've get a message each time I want to save the settings:

 

Cookie length - value '' is not a number.

Popup content - can not be empty.

Share this post


Link to post
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 3 weeks later...

Hello,

I experience the same problem as some of the others:

Popup content - can not be empty.

....this is the message I get all the time eventhough I obviously place a certain stuff in it.

Any help will be appreciated...

kewin

Share this post


Link to post
Share on other sites

Hello,

I experience the same problem as some of the others:

Popup content - can not be empty.

....this is the message I get all the time eventhough I obviously place a certain stuff in it.

Any help will be appreciated...

kewin

you have to fill textarea in all available languages, to disable this feature comment these lines in the method postprocess, path: modules/custompopup/custompopup.php 

|            /*foreach ($languages as $lang)
            {
                $Validation->validate($this->l('Popup content'),Tools::getValue('CUSTOMPOPUP_CONTENT_'.$lang['id_lang']),array(
                    'notempty' => 1,
                ));
            }*/
  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

 

you have to fill textarea in all available languages, to disable this feature comment these lines in the method postprocess, path: modules/custompopup/custompopup.php 

|            /*foreach ($languages as $lang)
            {
                $Validation->validate($this->l('Popup content'),Tools::getValue('CUSTOMPOPUP_CONTENT_'.$lang['id_lang']),array(
                    'notempty' => 1,
                ));
            }*/

Hell Demacri,

Thank you for pointing that out. This is why the whole content can't be saved. I was hoping for a pop up appearing only with content is 1 of the existing languages ...not all of them.

Cheers,

Konrad

Share this post


Link to post
Share on other sites

  • 1 month later...

Thanks my friend.

The line 231 from the custompopup.php file calls the custompopup/js/bootbox.js script

But the bootbox.js is missing

Can you share the code of this script?

Best regards

 

the bootbox.js ( http://bootboxjs.com/ ) is a modal bootsrap plugin.

Looking inside the php seems no one line call that function.

 

instead @ line 13769 there is a hook in the header to use js/jquery.popup.min.js ( http://docs.toddish.co.uk/popup/ )

Share this post


Link to post
Share on other sites

Tnx bro for this nice popup plugin* just a little tip for those seeking responsive ** when u add image to content just replace ur image width with : 100% and height : auto or click source code and change ur added image width and height*

  • Like 1

Share this post


Link to post
Share on other sites

  • 1 month later...

You say its responsive, but its not.

From mobile you cant even click away. Lost a hole day of sales before i saw that and disabled!

I discovered the same at my shop.... but only with longer messages which must scrolled down....

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Prestashop 1.6.1.13

Language FO/BO: Polish

 

Module on front page works as small, blank page with option only to close. "Content window - can not be empty" appear at BO after trying to save even when text and picture are. Any advise welcome...

Share this post


Link to post
Share on other sites

  • 3 weeks later...

Works perfectly. Thank you.

If you are busy adding features, maybe you can look at an option to adjust the time delay of when the pop-up launches.

 

For example - how many seconds to launch pop-up: Choose from 0-30 seconds.

 

Thank you for your plugin.

:)B) 

Share this post


Link to post
Share on other sites

Great module from fabvla.com - works on Prestashop 1.6.1.15 and is responsive! Little bit poor configuration. No simple translation posiblities.

 

Custom popup notification module better configurable (TinyMCE - html), but does'nt work on 1.7 and not responsive on 1.6.1.5 (authorized by PRESTACRAFT information).

 

I'm waiting for new version?

Share this post


Link to post
Share on other sites

First thanks for module. So usefull.

 

Can i know how prevent to scroll when popup is open?

Im trying to use "position:fixed" and "overflow: hidden" everywhere i can at .css, but doesnt works..

 

I think i have to do it in jquery.popupmin.js, but dont know how and what to write there.

 

Please, some help will be so nice.

Thanks, regards.

 

(Prestashop 1.6.1.15)

Share this post


Link to post
Share on other sites

  • 5 weeks later...

Any way for autoclose popup after X secs?

 

Hi there, in configuration of module you can set 1 minute minimun to cookie length.

 

if you want modify it to show it seconds i think you have to modify some options on modules/custompopup/js/jquery.cookie.js

 

Cant help more, sorry.

Share this post


Link to post
Share on other sites

You say its responsive, but its not.

From mobile you cant even click away. Lost a hole day of sales before i saw that and disabled!

 

 

Does it work with 1.7?

Does it work with 1.7?

 

There is still people sharing their Prestashop modules FOR FREE and it's increasingly rare!

Start by saying "thanks" and after you may ask your question in a kindly mode... that is courtesy and gratitude!!

 

- Never install a module before trying it in a Prestashop test environment, this way you won't have bad surprise.

- Perflex gave the solution for a responsive popup: in the main setting tab, open the source code and change the size in width="100%" height="auto" (for each language)

- If you want to use a .png pic, in the customize style tab set popup color with only #

 

The module doesn't have functions you dreamt about? --> buy a module on the addons shop and there you will have the right to complain.

 

P.S. : I'm not a friend of Electriz, but I remember when Prestashop was really free (including modules). It's time to realise that nasty comments drove away programmers.

Edited by Tirips (see edit history)
  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 2 weeks later...
4 hours ago, vkmaxx said:

I'm sure you already did, but check out this similar module:

It has similar functionality but never worked for me....

 

So what? This is not newsletter popup, just information popup, if I'd do something like this it would be separate module :)

Share this post


Link to post
Share on other sites

v1.1.0 is out now!

What's new?

- 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

Share this post


Link to post
Share on other sites

6 minutes ago, electriz said:

v1.1.0 is out now!

What's new?

- 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

Does is still work ok with 1.6 ?

 

 

Share this post


Link to post
Share on other sites

Hi Electriz, i'm already testing your v1.1.0 module on PS1.7.2.4, but it always open a small window before loading the pop up content. Please look at the attached image beow. Any ideas on how to solve this issue?

Thanks.

 

white popup.png

Share this post


Link to post
Share on other sites

12 hours ago, oshoot said:

I uploaded a jpg image but it does not show in the file list. Any ideas?  I loaded 1.1 module

Screenshot 2017-11-09 14.02.36.png

Screenshot 2017-11-09 14.02.29.png

 

This might be some issue with Your server, everything is ok on mine. 
Maybe try to ulpload this image directly to hosting and post source URL?

Share this post


Link to post
Share on other sites

On 11/14/2017 at 8:30 AM, ipaelo said:

Hi everybody,

 

Any has problems with the cookie length time?  

I set it to 30 minutes and banner appears each time that I browse the web.

 

Basically the same thing is happening to me.  I set the cookie length time to 5 mins, and only to display on the homepage.  Everytime I hit the homepage it displays.  Like if I first goto the sites homepage it displays, good.  Then I go look at a product for a few seconds, go back to the homepage, and it displays again.  Then I look at another product for a few secs, go back to the homepage, it displays again.  I'm working on Thirtybees v1.0.3, and your latest version (1.1.0).  Thanks...

Edited by SLiCK_303 (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

16 hours ago, SLiCK_303 said:

Basically the same thing is happening to me.  I set the cookie length time to 5 mins, and only to display on the homepage.  Everytime I hit the homepage it displays.  Like if I first goto the sites homepage it displays, good.  Then I go look at a product for a few seconds, go back to the homepage, and it displays again.  Then I look at another product for a few secs, go back to the homepage, it displays again.  I'm working on Thirtybees v1.0.3, and your latest version (1.1.0).  Thanks...

The same problem whith problem cookie time in prestashop 1.6.0.9

Share this post


Link to post
Share on other sites

On 22/11/2017 at 2:56 AM, SLiCK_303 said:

Basically the same thing is happening to me.  I set the cookie length time to 5 mins, and only to display on the homepage.  Everytime I hit the homepage it displays.  Like if I first goto the sites homepage it displays, good.  Then I go look at a product for a few seconds, go back to the homepage, and it displays again.  Then I look at another product for a few secs, go back to the homepage, it displays again.  I'm working on Thirtybees v1.0.3, and your latest version (1.1.0).  Thanks...

Hello guys, are you using Firefox? (here testing v57) 

On Firefox it doesn't save the cookie named

responsive_popup

why? Simply, it doesn't work because jquery-cookie is an abandoned project

 

Now it's named JavaScript Cookie and you can find it here https://github.com/js-cookie/js-cookie (works on all browsers, also Firefox)

So, now:

  1. download the .zip from github
  2. extract js.cookie.js and copy to the plugin folder views/js/...
  3. edit custompopup.php at line 1216 
    $this->context->controller->addJS($this->_path.'views/js/js.cookie.js', 'all');

    Then, on file views/templates/hook/custompopup.tpl

  4. replace 

    if ($.cookie('responsive_popup') == null) {

    with 

    if (Cookies.get('responsive_popup') != 'yes') {

    replace 

    $.cookie('responsive_popup', 'yes', { expires: {/literal}{$popup_cookie*0.000694}{literal}, path: '/' });

    with 

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

     

  5. At this point, I also suggest this: IF your popup contains a link (eg. a link with image inside) and you want to set the cookie in order to NOT show the popup again, add this: 

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

    it correctly sets the cookie "responsive_popup" and the popup is not there on reload.

It's also possible to close the popup if you click outside or press ESC... but please, do something on your own :D

p.s.: also, on Firefox it doesn't center the popup, so I should investigate why....

 

Edited by mmsh (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...
On 11/6/2017 at 11:37 PM, mflorezm said:

Hi Electriz, i'm already testing your v1.1.0 module on PS1.7.2.4, but it always open a small window before loading the pop up content. Please look at the attached image beow. Any ideas on how to solve this issue?

Thanks.

 

white popup.png

 

Same problem with this guy, anyone has solution ?

Share this post


Link to post
Share on other sites

Hello boys!

The module works fine on Presta 1.6.1.17 (www.tsunamisurfing.com/shop).

However, some problem when choose where to show: on the selected pages (home page and products) it only works on products and not on HP.

Any ideas on why?

Thanks so much for you good job!

 

banner.jpg

Share this post


Link to post
Share on other sites