Free Addon: Info Popup for customers

After the customer contacted us I did check to make sure no settings were wrong but the test was not checked. I then clicked the test to see what that it did…but it was the same thing. So I wasn't for sure what the test part did. Then when I disabled the whole add on and cleared the cache I thought it would stop working on the site, but it kept working. You actually seem to have to completely uninstall this add on to get it to turn off on your site.

Not to butt in here, but the code that Vali posted indicated that it used cookies instead of a session variable. Hence, you might need to open a new browser in order to clear your previous state…

[quote]Sorry, when a customer ripped me a new one for “nagging” them for their email address at first I had no idea what they meant. Then when they said it kept popping up on every page I didn’t know what they meant. That was when I messed with it I finally saw what this addon was doing, I must admit that it was annoying. In the first intro to the mod you stated that it popped up only once, but people may want to know it pops up more and it pops up every time the customer goes back to the home page. At the very least you should notify people that it is going to pop up pretty much on every page or that they need to manually change the tpl you mentioned.[/quote]



:))) You take a free add-on and sold and now you are angry on me :))))) because you haven’t tested enough :))) because you haven’t seen the movie [media]Info Popup for Customers - CS-Cart FREE Add-on by HungryWeb.net - YouTube


[quote]By the way Dave. Sorry, but if someone would have posted more of what this add on did in this post I could have saved a little time and not had at least one customer get upset with us. Free mods for the community are cool, but if they don’t function as mentioned or have bugs they really should be either fixed or the functionality should at least be mentioned.[/quote]



The add-on is doing exactingly how i described ```php


The Info Popup for Customers add-on allows store owners to inform customers about their own products/services or display advertising banners on homepage or run some promotional campaigns. Besides, customers won’t be distracted as the popup will be hidden right after they click on the banner or close the popup and also can be seen only once, in the archive can be found also installation steps.

<br />
[quote]I am guessing whatever I downloaded from Hungryweb is not what the demo is on the Hungryweb website either.  For example, even if the mod did not have the pop up on every page, at the very least every time the customer went to the home page it popped up again.  On the Hungryweb demo it did not do this.[/quote]<br />
<br />
On HungryWeb is the same add-on on download as on demo i double check <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"><br />
<br />
Anyway this is my last post in regards to this discussion because i better spend time on doing something better, i wish you all the best and i will I'll kindly  answer to any future questions about add-on<br />
<br />
Regards,<br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Dear Vali thank you very much for great addon. I have one question about a cookie time. How to set cookie time. I want to set cookie time 15 day.

You are welcome @erdalcicek,



To add cookie session to 15 days please do:



#file


design/themes/[SKIN_NAME]/templates/addons/hw_popup_info/hooks/index/footer.post.tpl




#replace all content with

```php

{if $addons.hw_popup_info.testmode==Y || $smarty.cookies.hw_popup_info!=1}


{strip}{assign var=“banner” value=$addons.hw_popup_info.banner_id|fn_get_banner_data}{/strip}

{$banner.description nofilter}

{/if}
```

I hope that helps,

---
Valentin
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Thank you Valentin code perfectly working

You are welcome

I use 4.1.3 but i try to install it but it do not works.



I am using a smarty block , but this do not work:



{if $controller == 'categories' && $view== 'view' && $smarty.request.category_id==1184}



{strip}{assign var=“banner” value=26|fn_get_banner_data}{/strip}

{$banner.description nofilter}



{/if}



{if $runtime.controller == 'products' && $runtime.view== 'view' && $smarty.request.product_id==9909}

{strip}{assign var="banner" value=26|fn_get_banner_data}{/strip}
{$banner.description nofilter}



{/if}

What is $view? Do you mean $mode?

Also please use 'code' tags so your posts are readable…

Hi @ComputoGessacr,

You can simply use

{if $smarty.request.category_id==1184} ... {/if}

{if $smarty.request.product_id==9909} ... {/if}



I hope that helps,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

Thanks it works .



every time I enter to the category shows me the popup, How can i do to make me appear only once?

Please check if add is on test mode, you can find on add-on settings



Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

Thanks


[quote name='Vali' timestamp='1402942843' post='185858']

Please check if add is on test mode, you can find on add-on settings



Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

[/quote]

How can I increase the pop up size?



Hi @QComputoGessacr,

On add-on settings you have Window width ;) please use it, by default is set to 300



Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

Add-on is ready for CS.Cart 4.2.1

[color=#282828][font=arial, verdana, tahoma, sans-serif]How can i make a form in the pop up its something like this :[/font][/color]



http://peridomicilio…/suscripciones/



[color=#282828][font=arial, verdana, tahoma, sans-serif]I am using it like a iframe but i cant close the pop up after submit.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]Like this : [/font][/color]http://www.peridomic…m/suscrito.html



[color=#282828][font=arial, verdana, tahoma, sans-serif]My code to the form is[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]```php




Suscripción









Suscripción




Su email:






Número de Celular






Acepto recibir infomación por correo electrónico de www.peridomicilio.com y mensajes de texto a mi teléfono celular






Verificación

require_once('/home/peridomi/public_html/suscripciones/recaptcha-php/recaptchalib.php');
$publickey = "test";
$privatekey = "test";
$error = null;
echo recaptcha_get_html($publickey, $error,true);
?>


Suscribirme



require ("conexion.php");
// process form
if(isset($_POST['submit']))
{
$publickey = "test";
$privatekey = "test";
$emailSuscriptor = $_POST['emailSuscriptor'];
$celular = $_POST['celular'];

if ($_POST['action'] == "")
{
$re_ip = $_SERVER["REMOTE_ADDR"];
$re_challenge = $_POST["recaptcha_challenge_field"];
$re_response = $_POST["recaptcha_response_field"];
$re_valid = recaptcha_check_answer($privatekey, $re_ip, $re_challenge, $re_response);
if ($re_valid->is_valid)
{[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]




if($_POST['suscripcion'] == true)
{
$estado= "Suscrito";
}
else
{
$estado= "No suscrito";
}

/**Consulta a la base de datos para saber si existe el usuario**/[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif] $consulta = sprintf("SELECT Email FROM suscripciones_email_cel WHERE Email = '%s'",mysql_real_escape_string($emailSuscriptor));
//$consulta = sprintf("SELECT Email FROM suscripciones_email_cel WHERE Email = '%s'","aesquivel@gessacr.com");
$resultado = mysql_query($consulta,$conex);


if (!$resultado)
{
echo '';
}


else
{
$fila = mysql_fetch_array($resultado);


if($fila['Email'] == $emailSuscriptor)
{
echo '';
}
else
{
//echo "Email consulta
".$fila['Email'];

$sql = sprintf("INSERT INTO suscripciones_email_cel (Email, Celular, Estado) VALUES ('%s', '%u', '%s')",
mysql_real_escape_string($emailSuscriptor),mysql_real_escape_string($celular),mysql_real_escape_string($estado));


$resultado = mysql_query($sql,$conex);
if (!$resultado)
{
echo '';
}
else
{

/*

echo "";
*/
echo "";


//echo '';
//$varSus = '';
//echo $varSus;
//echo '';

//echo "";
//echo '';
//echo '';

}

}
}







} else {
echo '';
}
}
}
?>




```[/font][/color]

We are glad to announce that the compatibility with CS-Cart v.4.2.3 was tested, update is not required from the previous version.



Keep on smiling,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]



[-] Upgrade Center is not available yet, but will be soon, is under testing, the script is done but require our server to be ready and also more testing to be done

Dear Vali, thank you for addon! Could you pls help to handle situation with big image on mobile devices? The whole window of popup is not fit on screen. cscart 4.3.2