Free Addon: Info Popup for customers

Dear Vali

thank you for your reply

I did the next

I added the next code as you said in /skins/basic/customer/views/checkout/cart.tpl

to be like the next :

[quote]{script src=“js/exceptions.js”}



{if !$cart|fn_cart_is_empty}

{include file=“views/checkout/components/cart_content.tpl”}

{else}

{$lang.text_cart_empty}







{include file=“buttons/continue_shopping.tpl” but_href=$continue_url|default:$index_script but_role=“submit”}



{/if}

{if $controller == 'checkout' && $mode == 'view'}

{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}
{/if}[/quote]
but unfrotunatily it wasn't work
please advice
thank you

Hi @makmerghen, is no need to modify the skins/basic/customer/views/checkout/cart.tpl file and add the condition becouse you are aleady there ;)



You should modify [color=#ff0000]skins/basic/customer/addons/hw_popup_info/hooks/index/footer.post.tpl[/color]





Valentin

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

Dear Vali

thanks for the correction

I did the next into file

[color=#ff0000]skins/basic/customer/addons/hw_popup_info/hooks/index/footer.post.tpl[/color]


[quote]{if $controller == 'products' && $view== 'view' && $smarty.request.product_id==18}

{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}

{/if}
{/if}[/quote]

and I cleared cach and cleared cookies
but unforunatily not working
would you please see if i did any thing wrong
thank you

Please check if you have cookie is created ;) , send me the link and i will check





Valentin

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

Hi,



I have went through the full threat but cant find the solution for it. I have two store in ultimate edition and want to show different banners for different store.



since we cant edit the addon when the store is selected we can only place one banner Id if we select all store.





Any suggestion guys

Yes, you can choose different banner for every store



you need to:

  1. uninstall the addon
  2. edit the file [color=#ff0000]app/addons/hw_popup_info/addon.xml[/color]

replace



#with

3. install the addon

4. set banner_id for every store

5. have fun



OR



You can re-download from hungryweb.net/cs-cart-addons/info-popup-for-customers.html because i have update the archive



I hope that helps,





Valentin

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

Hi,

how to hide the banner title in the popup.



thanks again …



RR

[quote name='ravt' timestamp='1397288163' post='181600']

Hi,

how to hide the banner title in the popup.



thanks again …



RR

[/quote]



Hi @RR,

For this you need to do:





#on filedesign/themes/basic/templates/addons/hw_popup_info/hooks/index/footer.post.tpl



1.

#under width: {$addons.hw_popup_info.width},

#adddialogClass: 'no-header',



2

#under



#add



I hope that helps,





Valentin

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

GREAT JOB! We've installed it. Now we will see how it does. At first glance the only suggestion I would have is to make it so it only pops up when a customer first hits the home page and not every time they go there.

So how did everyone get this to ONLY pop up on the home page? It started popping up on all search pages and anything that uses the “index.php”. The strange part is the site is supposed to be using seo links but for some reason this add on seems to have done something to that. Once I disabled this info pop up every thing went back to normal.

Hi Tim,

To get popup only on home page please do:

#replace content from file:```php


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

#with```php
<br />
{if $runtime.controller=='index' && $runtime.mode=='index'}<br />
{if $addons.hw_popup_info.testmode==Y || $smarty.cookies.hw_popup_info!=1}<br />
<script language="javascript" type="text/javascript"><br />
$(function() {$ldelim}<br />
$( "#info_popup_modal" ).dialog({$ldelim}<br />
		 width: {$addons.hw_popup_info.width},<br />
		 modal: true,<br />
		 buttons: {$ldelim}<br />
		    Ok: function() {$ldelim} $( this ).dialog( "close" ); {$rdelim}<br />
		    {$rdelim},<br />
		 close: function( event, ui ) {$ldelim} $.cookie.set('hw_popup_info', 1, '', '/');  {$rdelim}<br />
	    {$rdelim});<br />
{$rdelim});<br />
</script><br />
{strip}{assign var="banner" value=$addons.hw_popup_info.banner_id|fn_get_banner_data}{/strip}<br />
<div id="info_popup_modal" class="hidden" title="{$banner.banner}"><div style=" padding:10px">{$banner.description nofilter}</div></div><br />
{/if}<br />
{/if}<br />

```<br />
<br />
[quote]The strange part is the site is supposed to be using seo links but for some reason this add on seems to have done something to that. Once I disabled this info pop up every thing went back to normal.[/quote]<br />
<br />
The add-on is not the reason <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"> because is not using any php scripts, only use tpl and this have no impact on cs-cart functionality<br />
<br />
I hope that helps,<br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

This is a great addon , would it be able to be used for just certain category pages instead of just the home page so different info can popup on different categories.



Thanks

John

[quote name='johnbol1' timestamp='1399886438' post='183334']

This is a great addon , would it be able to be used for just certain category pages instead of just the home page so different info can popup on different categories.

[/quote]



Hope you will be interested in our free Pop-up Wrapper add-on. Just select the new wrapper to the block with any content and the content of this block will be displayed in the pop-up window.

[quote name=‘Vali’ timestamp=‘1399865397’ post=‘183307’]

Hi Tim,

To get popup only on home page please do:

#replace content from file:```php


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

#with```php
<br />
{if $runtime.controller=='index' && $runtime.mode=='index'}<br />
{if $addons.hw_popup_info.testmode==Y || $smarty.cookies.hw_popup_info!=1}<br />
<script language="javascript" type="text/javascript"><br />
$(function() {$ldelim}<br />
$( "#info_popup_modal" ).dialog({$ldelim}<br />
		 width: {$addons.hw_popup_info.width},<br />
		 modal: true,<br />
		 buttons: {$ldelim}<br />
			Ok: function() {$ldelim} $( this ).dialog( "close" ); {$rdelim}<br />
			{$rdelim},<br />
		 close: function( event, ui ) {$ldelim} $.cookie.set('hw_popup_info', 1, '', '/');  {$rdelim}<br />
		{$rdelim});<br />
{$rdelim});<br />
</script><br />
{strip}{assign var="banner" value=$addons.hw_popup_info.banner_id|fn_get_banner_data}{/strip}<br />
<div id="info_popup_modal" class="hidden" title="{$banner.banner}"><div style=" padding:10px">{$banner.description nofilter}</div></div><br />
{/if}<br />
{/if}<br />

```<br />
<br />
<br />
<br />
The add-on is not the reason <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"> because is not using any php scripts, only use tpl and this have no impact on cs-cart functionality<br />
<br />
I hope that helps,<br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]<br />
[/quote]<br />
<br />
Sorry, I'm not interested in changing the core code any more than I have to.  For a simple pop up it really seems you should not have to.  This add on is a great contribution to the community, but unless an end user is able to do more coding or want to start messing with the core CS-Cart code it really is not recommended for those who like things to work out of the box.

[quote]Sorry, I’m not interested in changing the core code any more than I have to. For a simple pop up it really seems you should not have to. This add on is a great contribution to the community, but unless an end user is able to do more coding or want to start messing with the core CS-Cart code it really is not recommended for those who like things to work out of the box.[/quote]

I consider you really misunderstand my message, the add-on is working out of the box and working as designed.



Doesn’t modify any cs-cart core functionality, it used only one tpl hook.



The rest of the functionality, to be displayed on the home, on a specific category or on other cs.cart page i share for free code that user can add in order for the add-on to work for him as he desire



What i share with you, [color=#ff0000]the post that you give -1[/color], was to help you in order to create the functionality you desire, i spent almost an hour from my life for free to help you and you do not appreciate at all ;)



Regards,





Valentin

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

who gave minus 1, thats very bad,Vali has contributed many things to this forum… I assume it was some accident perhaps?

Thank you @johnbol1 and you may be right, -1 accidental ;)



Regards,





Valentin

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

Come on man! Who woke up this morning and decided to be a chucklehead?



If you can't or won't learn PHP and Javascript then don't expect anyone to do the heavy lifting for you. More so if someone does offer something, such as this tiny bit of code that Vali put together, and you don't appreciate any aspect of it, simply don't use it.



Don't leave negative feedback.

Don't leave a silly comment.

Just leave.

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.



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.



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 name='clips' timestamp='1399926413' post='183385']

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.



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.



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]



Clips…after you installed it did you make sure to remove the tick in the admin>addon>settings> test check box, this enables it to popup all the time for test purposes.



John