Jump to content

how to Avoid HTML Box module on Homepage


Recommended Posts

Hi maybe my question is simple but i have 2 hours trying to solve it.

 

I just downladed and installed HTML BOX (free version) from http://mypresta.eu, the issue is than I DONT WANT this be displayed on my homepage, only need the content into the products page

 

How can i configure it?

 

I tested several changes without positive results.

 

Your help will be really appreciated.

 

INFO:

- Im using a purchased theme http://www.templatemonster.com/demo/46623.html

- I wish it will be displayed on the RIGHT SIDE into the products page

 

Thanks

 

LuchoFox

Edited by vekia (see edit history)
Link to comment
Share on other sites

hello

 

you can create simple if condition in module html.tpl file

 

use there this code

{if $page_name !='index'}
{if Configuration::get('htmlbox_ssl')==1}
    {if $is_https_htmlbox==1}
        {if $page_name!='index'}
            {if Configuration::get('htmlbox_home')==1}
                {* disable *}
            {else}
                {$htmlboxbody}
            {/if}
        {else}
            {$htmlboxbody}
        {/if}
    {/if}
{else}
    {if $page_name!='index'}
        {if Configuration::get('htmlbox_home')==1}
                {* disable *}
        {else}
            {$htmlboxbody}
        {/if}
     {else}
        {$htmlboxbody}
     {/if}
{/if}
{/if}

voila ;)

Link to comment
Share on other sites

vekia, couldn't this be done more easily from Backoffice > Modules > Positions, by adding an exception for the "index" page...?

 

 

EDIT: Never mind, I saw you mentioned it while I was writing this post. :)

 

yes you've got right, i forgot about this :)

Link to comment
Share on other sites

New question appear... 

 

I'll insert on that HTMLBox (righ sidebar) an JPG image (map icon). Could it open a lightbox from there?

 

Is possible?

 

Thanks!


this code displays code anywhere but not on homepage.

you can also define exceptions in back office: modules > positions > edit module

define exceptions - select homepage / index

 

New question appear... 

I'll insert on that HTMLBox (righ sidebar) an JPG image (map icon). Could it open a lightbox from there?

Is possible?

Thanks!

Link to comment
Share on other sites

hello

 

yes but in this case you will need to add fancybox libraries to your prestashop store, it's because fancybox is attached only on two pages:

product pages

order process page

 

what to do?

attach fancybox library to frontcontroller and then follow guides there: fancybox gallery

(only part related to tinymce editor)

Link to comment
Share on other sites

hello

 

yes but in this case you will need to add fancybox libraries to your prestashop store, it's because fancybox is attached only on two pages:

product pages

order process page

 

what to do?

attach fancybox library to frontcontroller and then follow guides there: fancybox gallery

(only part related to tinymce editor)

 

Thanks Vekia for your answer. Im not sure how start..

 

This if for the icon/text "map" on product page http://goo.gl/ez7ZAm

 

any advice?

Link to comment
Share on other sites

you can display google maps link in facybox due to the fact that they blocked possibility to display url to google map in iframe.

 

google maps has got this header problem: 'X-Frame-Options' to 'SAMEORIGIN'.

 

I tried to do but i dont have the "fancybox" class on my available classes. 

 

Can i to use a javascript inside HTMLbox to show this as a popup?

 

I prefer the fancybox but i dont have it.. mmmm.... be or not to be...

 

some advice..?

 

Your answers are really appreciated.

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...