Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Free Addon: Info Popup for customers Rate Topic   * * * * * 2 votes

 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 12 May 2014 - 11:46 PM #101

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.
Regards,
Jim

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11392 posts

Posted 12 May 2014 - 11:55 PM #102

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.....

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 13 May 2014 - 03:12 AM #103

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.


:))) 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 https://www.youtube.com/watch?v=lWTkWtDsE8k

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.


The add-on is doing exactingly how i described
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.

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.


On HungryWeb is the same add-on on download as on demo i double check ;)

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

Regards,

---
Valentin
part of hungryweb.net

 
  • erdalcicek
  • Newbie
  • Members
  • Join Date: 22-Dec 11
  • 9 posts

Posted 12 June 2014 - 12:32 PM #104

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.

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 12 June 2014 - 01:08 PM #105

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
{if $addons.hw_popup_info.testmode==Y || $smarty.cookies.hw_popup_info!=1}
<script language="javascript" type="text/javascript">
$(function() {$ldelim}
$( "#info_popup_modal" ).dialog({$ldelim}
  width: {$addons.hw_popup_info.width},
  modal: true,
  buttons: {$ldelim}
	 Ok: function() {$ldelim} $( this ).dialog( "close" ); {$rdelim}
	 {$rdelim},
  close: function( event, ui ) {$ldelim}
	var _actual_date = new Date();
	var _exdays = 15;
	_actual_date.setTime(_actual_date.getTime() + (_exdays*24*60*60*1000));
   $.cookie.set('hw_popup_info', 1, _actual_date, '/');
  {$rdelim}
{$rdelim});
{$rdelim});
</script>
{strip}{assign var="banner" value=$addons.hw_popup_info.banner_id|fn_get_banner_data}{/strip}
<div id="info_popup_modal" class="hidden" title="{$banner.banner}"><div style=" padding:10px">{$banner.description nofilter}</div></div>
{/if}

I hope that helps,

---
Valentin
part of hungryweb.net

 
  • erdalcicek
  • Newbie
  • Members
  • Join Date: 22-Dec 11
  • 9 posts

Posted 12 June 2014 - 01:17 PM #106

Thank you Valentin code perfectly working

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 13 June 2014 - 02:36 AM #107

You are welcome

 

Posted 13 June 2014 - 09:27 PM #108

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}

<script language="javascript" type="text/javascript">
$(function() {$ldelim}
$( "#info_popup_modal" ).dialog({$ldelim}
width: {300},
modal: true,
buttons: {$ldelim}
Ok: function() {$ldelim} $( this ).dialog( "close" ); {$rdelim}
{$rdelim},
close: function( event, ui ) {$ldelim} $.cookie.set('test', 1, '', '/'); {$rdelim}
{$rdelim});
{$rdelim});
</script>
{strip}{assign var="banner" value=26|fn_get_banner_data}{/strip}
<div id="info_popup_modal" class="hidden" title="{$banner.banner}"><div style=" padding:10px">{$banner.description nofilter}</div></div>


{/if}



{if $runtime.controller == 'products' && $runtime.view== 'view' && $smarty.request.product_id==9909}
<script language="javascript" type="text/javascript">
$(function() {$ldelim}
$( "#info_popup_modal" ).dialog({$ldelim}
width: {300},
modal: true,
buttons: {$ldelim}
Ok: function() {$ldelim} $( this ).dialog( "close" ); {$rdelim}
{$rdelim},
close: function( event, ui ) {$ldelim} $.cookie.set('test', 1, '', '/'); {$rdelim}
{$rdelim});
{$rdelim});
</script>
{strip}{assign var="banner" value=26|fn_get_banner_data}{/strip}
<div id="info_popup_modal" class="hidden" title="{$banner.banner}"><div style=" padding:10px">{$banner.description nofilter}</div></div>


{/if}

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11392 posts

Posted 13 June 2014 - 09:31 PM #109

What is $view? Do you mean $mode?
Also please use 'code' tags so your posts are readable....

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 14 June 2014 - 03:18 AM #110

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
part of hungryweb.net

 

Posted 16 June 2014 - 02:43 PM #111

Thanks it works .

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

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 16 June 2014 - 06:20 PM #112

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

Regards,

---
Valentin
part of hungryweb.net

 

Posted 24 June 2014 - 08:33 PM #113

Thanks

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

Regards,

---
Valentin
part of hungryweb.net



 

Posted 25 June 2014 - 02:09 PM #114

How can I increase the pop up size?

Posted Image

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 25 June 2014 - 04:39 PM #115

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

Regards,

---
Valentin
part of hungryweb.net

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 28 July 2014 - 06:35 AM #116

Add-on is ready for CS.Cart 4.2.1

 

Posted 31 July 2014 - 01:53 PM #117

How can i make a form in the pop up its something like this :

http://peridomicilio.../suscripciones/

I am using it like a iframe but i cant close the pop up after submit.
Like this : http://www.peridomic...m/suscrito.html

My code to the form is
<html>
<head>
  <meta charset="utf-8">
  <title>Suscripción</title>
  <meta name="author" content="Andrés">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<div class="wrapper">
  <div id="main" style="padding:50px 0 0 0;">

  <!-- Form -->
  <form id="contact-form" action="" method="post">
   <h3>Suscripción</h3>
   <div>
    <label>
		 <span>Su email:</span>
		 <input name="emailSuscriptor" placeholder="Por favor introduzca su email" type="email" tabindex="1" required>
    </label>
   </div>
 
   <div>
    <label>
		 <span>Número de Celular</span>
		 <input name="celular" placeholder="" type="number" tabindex="2" required>
    </label>
   </div> 
 
   <div>
    <label>
		 <span>Acepto recibir infomación por correo electrónico de www.peridomicilio.com y mensajes de texto a mi teléfono celular
		 <input name="suscripcion" type="checkbox" tabindex="3" required>
		 </span>
    </label>
   </div>
 
   <div>
    <label for="usercheck">Verificación</label><br />
		   <?php
		    require_once('/home/peridomi/public_html/suscripciones/recaptcha-php/recaptchalib.php');
		 $publickey = "test";
		 $privatekey = "test";
		 $error = null;
		 echo recaptcha_get_html($publickey, $error,true);
    ?>
		 </div>
   <div>
    <button name="submit" type="submit" id="contact-submit" tabindex="4">Suscribirme</button>
   </div>
  </form>
  <!-- /Form -->
<?php
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 '<script type="text/javascript">alert("Error intente nuevamente");</script>';
  }

 
  else
  {
   $fila = mysql_fetch_array($resultado);


   if($fila['Email'] == $emailSuscriptor)
   {
    echo '<script type="text/javascript">alert("El email ingresado ya esta suscrito");</script>';
   }
   else
   {
   //echo "Email consulta<br>".$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 '<script type="text/javascript">alert("No se ha podido ingresar sus datos");</script>';
    }
    else
    {
  
    /*
  
    echo "<script language='javascript' type='text/javascript'>
    function closeModalsus() { $('#info_popup_modal').modal('hide');};</script>";
    */
    echo "<script language='javascript' type='text/javascript'>
    window.opener.location.close();</script>";
  
	   
		 //echo '<script language="JavaScript" type="text/javascript">parent.$("info_popup_modal").dialog("close");</script>';
		 //$varSus = '<script type="text/javascript">parent.$(\'info_popup_modal\').dialog(\'close\');</script>';
		 //echo $varSus;
    //echo '<script type="text/javascript">parent.closeModalsus();</script>';
	   
    //echo "<script type='text/javascript'>$.cookie.set('hw_popup_info', 1, 'a', 'a');</script>";
														    //echo '<script language="JavaScript" type="text/javascript">window.location="https://www.peridomicilio.com/suscripciones/termino.php";</script>';
    //echo '<script language="JavaScript" type="text/javascript">window.top.location.href="https://www.peridomicilio.com/suscrito.html";</script>';
		  
    }
 
   }
  }
 
 
 
 
 
 
 
   } else {
   echo '<script type="text/javascript">alert("Ingrese nuevamente los datos , el código de verificación es incorrecto");</script>';
   }
  }
}
?>
  </div>
</div>
</body>
</html>


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 24 October 2014 - 06:54 AM #118

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
part of hungryweb.net

 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 18 May 2015 - 06:35 AM #119

Posted Image
[-] 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

 
  • Rust
  • Member
  • Members
  • Join Date: 24-Dec 09
  • 110 posts

Posted 01 July 2015 - 06:02 PM #120

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