luchofox Posted October 24, 2013 Share Posted October 24, 2013 (edited) 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 October 24, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 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 More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 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 Link to comment Share on other sites More sharing options...
parsifal Posted October 24, 2013 Share Posted October 24, 2013 (edited) 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. Edited October 24, 2013 by parsifal (see edit history) 1 Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 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 More sharing options...
luchofox Posted October 24, 2013 Author Share Posted October 24, 2013 Awesome! works perfect. Thanks Vekia !! Always learning new things.... LuchoFox Link to comment Share on other sites More sharing options...
luchofox Posted October 24, 2013 Author Share Posted October 24, 2013 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 More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 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 More sharing options...
luchofox Posted October 24, 2013 Author Share Posted October 24, 2013 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 More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 so if it will be only on product page, you don't have to modify controllers, just add code to display fancybox. what url you want to display? Link to comment Share on other sites More sharing options...
luchofox Posted October 24, 2013 Author Share Posted October 24, 2013 so if it will be only on product page, you don't have to modify controllers, just add code to display fancybox. what url you want to display? I wanna display this URL (not shortly), the full. http://goo.gl/maps/VIjNk Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 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'. Link to comment Share on other sites More sharing options...
luchofox Posted October 24, 2013 Author Share Posted October 24, 2013 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 More sharing options...
luchofox Posted October 24, 2013 Author Share Posted October 24, 2013 Well im finally using popup from image link.. not is lightbox but works... Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now