Jump to content
vekia

[module] HTML Box Pro - put the code anywhere you want - prestashop 1.7 / 1.6 / 1.5 / 1.4

Recommended Posts

i want to introduce module which can add any informations, code such like html, js, css anywhere you want!

HTML Box Pro Module

 

html-box-pro-new-cover-big.png

 

html-box-pro-prestashop-17.png

 

This is PrestaShop module for adding any code (html , javascript, css, etc.) in places selected by user. More than 20 hooks supported - which mean that you can add your code anywhere you want. Module supports any client side code such like html, html5, css2, css3, javascript, jquery etc.

 

Addon has many conditons and visibility rules. All of these options allows to display custom contents on various pages like cms pages, product pages, order process, category pages, manufacturer pages, list of products and so on. Details about this module you can find here: HTML Box Pro Module

 

this module is extended version of free module: HTML Box

 

  • Like 4

Share this post


Link to post
Share on other sites

Hello Vekia,

 

You may want to check your server as the page is not showing up. I am getting an error in Chrome. It's telling me to access a cached copy

 

Just thought I would let you know

Clayton

  • Like 1

Share this post


Link to post
Share on other sites

Hello Vekia,

 

You may want to check your server as the page is not showing up. I am getting an error in Chrome. It's telling me to access a cached copy

 

Just thought I would let you know

Clayton

 

thank you very much for info. My ISP now restarting my dedicated server. many many thanks for you :)

  • Like 1

Share this post


Link to post
Share on other sites

Hello Vekia

 

You're most welcome :). May I ask is this module in a English version as well? I do not see it in languages on the website, just wanted to ask because this module can be very useful.

Share this post


Link to post
Share on other sites

translations available: en.pngde.pngpl.pngit.pngfr.pnges.png which means EN, DE, PL, IT, FR, ES :)

Edited by vekia
  • Like 1

Share this post


Link to post
Share on other sites

Yesterday we updated this module to version 1.2

 

This update improves the interpretation of the characters used in your code, such as the ENTER (newline) - that caused problems in the javascript code. Now it's working properly

Share this post


Link to post
Share on other sites

Module updated to version 1.3!

 

We have updated module, in newest version you can use also WYSIWYG editor (rich text editor). You can ofcourse write code without this feature. For all customers: remember, you can always download up to date version, module is available here: html block for prestashop

Edited by vekia

Share this post


Link to post
Share on other sites

Hi! I recently bought this module and Im having difficulty with it. I want to place the box exactly in the middle between two blocks in the header (its the content with pic and words free registered mail, etc - please refer to my website, it has been done by my web designer as he couldnt figure out how to use htmlboxpro that way), but was unable to and it kept appearing right at the top. (highlight the black header to see the test content Ive used with the module.) Please tell me how to do this easily instead of using codes. Thanks!

 

www.mumshearts.com

Share this post


Link to post
Share on other sites

Hi! I recently bought this module and Im having difficulty with it. I want to place the box exactly in the middle between two blocks in the header (its the content with pic and words free registered mail, etc - please refer to my website, it has been done by my web designer as he couldnt figure out how to use htmlboxpro that way), but was unable to and it kept appearing right at the top. (highlight the black header to see the test content Ive used with the module.) Please tell me how to do this easily instead of using codes. Thanks!

 

www.mumshearts.com

 

hi

 

Where you want exactly put this image? Can you prepare some simulation-image ?

In my opion it is placed exactly there, where you want

 

you can catch me on PM or on skype: mypresta.eu

 

I'm waiting for your message (here, or where you want)

Share this post


Link to post
Share on other sites

Hi vekia! Im on skype now, I've just added you, please accept. Thanks for your reply, I will contact you on skype. :)

Edited by hijabgal

Share this post


Link to post
Share on other sites

Hi vekia! Im on skype now, I've just added you. Thanks for your reply, I will contact you on skype. :)

 

i don't have any friend request on skype, could you send me it again? Im online now

Share this post


Link to post
Share on other sites

Hi,

I am also interested in purchasing this form.

I would like more detailed information, where can I contact you?

Best Regards

Share this post


Link to post
Share on other sites

feel free to write here, using Messaging feature in this forum or write me to webmaster [at] mypresta.eu, or on skype: mypresta.eu

Share this post


Link to post
Share on other sites

very nice and useful module! (i used the free version without any problems)

 

but one thing i can not find out for the pro version: can i put more then 1 block of html in 1 hook?

 

so for example 2 different HTML blocks in the right column on the homepage?

Edited by mr10

Share this post


Link to post
Share on other sites

Hi

 

By default It's impossible to add many boxes into one hook by using one module. You can input in one box as many code as you want.

 

We have got solution for this and share it for free when our customers want to add more than one box into right column.

Share this post


Link to post
Share on other sites

new version available!

 

we updated module, now it is in 1.4.2 version. We fixed little issue with extraleft hook. We fixed also issues with module icon. more informations about module you can read on official module website: multi html & multi language block

Share this post


Link to post
Share on other sites

I've a problem, when creating multiple elements in the right column and is easy, i can't understand why the right column block goes over the footer covering it, i can't solve it by myself, and i need some help. thank you.

i've the full license.

Edited by alsco1977

Share this post


Link to post
Share on other sites

I've a problem, when creating multiple elements in the right column and is easy, i can't understand why the right column block goes over the footer covering it, i can't solve it by myself, and i need some help. thank you.

i've the full license.

 

hello

 

can you please share the url to your page and i will check (share also the code you want to insert)

 

regards

  • Like 1

Share this post


Link to post
Share on other sites

Greetings! I just purchased this module without creating an account on presta.eu website; I thought I was gonna redirect to a download page after processing paypal payment but it wasn't so.

Am I supposed to receive an email about download details?

 

Edit: nevermind, we received the login details afterall. It got confused with another project. :)

Edited by LavienRose

Share this post


Link to post
Share on other sites

Greetings! I just purchased this module without creating an account on presta.eu website; I thought I was gonna redirect to a download page after processing paypal payment but it wasn't so.

Am I supposed to receive an email about download details?

 

Edit: nevermind, we received the login details afterall. It got confused with another project. :)

 

hello

 

if you've got any problems - PM me or write tu support [at] mypresta [dot] eu i will help you ASAP

Share this post


Link to post
Share on other sites

version 2.0 of the module released! many new features, multi block support, create scratches of the block, define the visibility etc.

enjoy the changes!

Share this post


Link to post
Share on other sites

version 2.2 released

module supports two additional hooks:

productActions & orderConfirmation

+ portuguese language pack added

Share this post


Link to post
Share on other sites

version 2.3 released!

module is ready for upcoming 1.5.5 version of prestashop engine.

(drag'n'drop function to change position of the block in 1.5.5 definitely fixed)

Share this post


Link to post
Share on other sites

module updated once again! version 2.4 released

  1. possibility to define blocks only for https:// pages (pages with ssl in your store)

Share this post


Link to post
Share on other sites

new version of this addon released! (2.4.1)

 

fixes: 

- "undefined variable: selected2" fixed

- "undefined variable: form2" fixed

Share this post


Link to post
Share on other sites

new major update released. version 2.5.0 available now!

- module supports multistore feature now

  • Like 1

Share this post


Link to post
Share on other sites

version 2.5.1 released!

I added possibility to display blocks:

- only on homepage

- only on selected products pages

Share this post


Link to post
Share on other sites

Hi Vekia...I was wondering, if you would know I I could center this bit of code in the header using HTML Box Pro?

I got it from Dynamic Drive and was hoping to use it.

 

The website address if you want to see how it currently looks is: http://cjrfinearts.com/ps/

<script language="JavaScript1.2">


//Translucent scroller- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use


var scroller_width='975px'
var scroller_height='87px'
var bgcolor='#fffff'
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)


var scrollercontent=new Array()
//Define scroller contents. Extend or contract array as needed
scrollercontent[0]='scrollercontent[2]='<a href="http://boojh.x10host.com/ps/258-zwarenstein-alex"><img src="http://cjrfinearts.com/ps/themes/cjrtheme/images/ads/adv1.jpg"  /></a>''
scrollercontent[1]='<a href="http://boojh.x10host.com/ps/258-zwarenstein-alex"><img src="http://cjrfinearts.com/ps/themes/cjrtheme/images/ads/adv2.jpg"  /></a>'
scrollercontent[2]='<a href="http://boojh.x10host.com/ps/258-zwarenstein-alex"><img src="http://cjrfinearts.com/ps/themes/cjrtheme/images/ads/adv3.jpg"  /></a>'




////NO need to edit beyond here/////////////


var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1


if (ie4||dom)
document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>')
}


var curpos=scroller_height*(1)
var degree=10
var curcanvas="canvas0"
var curindex=0
var nextindex=1


function moveslide(){
if (curpos>0){
curpos=Math.max(curpos-degree,0)
tempobj.style.top=curpos+"px"
}
else{
clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML=scrollercontent[curindex]
nextindex=(nextindex<scrollercontent.length-1)? nextindex+1 : 0
setTimeout("rotateslide()",pause)
}
}


function rotateslide(){
if (ie4||dom){
resetit(curcanvas)
crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
if (crossobj.filters)
document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2
var temp='setInterval("moveslide()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else if (document.layers){
crossobj.document.write(scrollercontent[curindex])
crossobj.document.close()
}
curindex=(curindex<scrollercontent.length-1)? curindex+1 : 0
}


function resetit(what){
curpos=parseInt(scroller_height)*(1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.top=curpos+"px"
}


function startit(){
crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
if (ie4||dom){
crossobj.innerHTML=scrollercontent[curindex]
rotateslide()
}
else{
document.tickernsmain.visibility='show'
curindex++
setInterval("rotateslide()",pause)
}
}


if (ie4||dom||document.layers)
window.onload=startit


</script>

Share this post


Link to post
Share on other sites

and how .html code for this slider looks like?

Share this post


Link to post
Share on other sites

Wow Vekia, I admire how quick you are to answer a question.  It's very much appreicated.

 

that's the full code I got from dynamic drive.  the only thing I changed was this:

 

//Define scroller contents. Extend or contract array as needed

and

var scroller_width='975px'

var scroller_height='87px'
var bgcolor='#fffff'

 

According to Dynamic Drive I was just to place that entire code wherever I wanted it to appear in the body

So I placed it in the header of HTML Box pro.

 

This is where I got the code from.

http://www.dynamicdrive.com/dynamicindex2/translucentscroll.htm

Share this post


Link to post
Share on other sites

i checked your website, and you added there <div> am I right?

just add there (to div style="") margin:auto; 

 

will work then

  • Like 1

Share this post


Link to post
Share on other sites

hey that worked!  the div style was buried in that code from dynamic drive and i didn't even see it.

 

thanks so much!

Share this post


Link to post
Share on other sites

you're welcome :) 

glad to hear that it works as you expected :)

if you need any other help in cases like this one, just write

i will reply as soon as it will be possible :)

 

with regards,

Milos

Share this post


Link to post
Share on other sites
Version 2.5.2 has been released

 

new feature:

- possibility to display blocks with code only on selected CMS pages (you can define CMS pages or just turn off this feature)

 

fixes

- displaying blocks on selected product pages

 

update instruction

- download latest version and reinstall it in back office (no worries, you will have all defined blocks)

Share this post


Link to post
Share on other sites

hello, are attached new version of the Portuguese translation updated to version htmlbox pro v2.5.2.
greetings

pt.php

Share this post


Link to post
Share on other sites

hello, are attached new version of the Portuguese translation updated to version htmlbox pro v2.5.2.

greetings

 

hello

 

thank you for that! i've got something for you, send me PM with module name from my store - choose the one you like ;)

Share this post


Link to post
Share on other sites

vekia hello, can not send PM, I've been watching what I like.
  'll let you know how?

Share this post


Link to post
Share on other sites

thanks! i received it, i also replied to your message, please let me know one additional thing

Share this post


Link to post
Share on other sites

hello vekia, you already answered again.

another question, this module now why she gave you that you put two things in Left column, you can not choose the position of each of them.
should give to individually choose.

can you solve it?

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/1.jpg

greetings

Edited by Speed2010

Share this post


Link to post
Share on other sites

hello vekia, you already answered again.

 

another question, this module now why she gave you that you put two things in Left column, you can not choose the position of each of them.

should give to individually choose.

 

can you solve it?

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/1.jpg

 

greetings

 

hello

this is not bug, you can change block position on module configuration page

kZtpM2z.png

 

hope that this is what you're looking for.

Share this post


Link to post
Share on other sites

hello, yes, I know that.
but I wanted to mention that I have in the picture, if I move the position, moves me the 2 blocks added.

should have individual positions.

if you wish for a block on top in the left column and another below does not.

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/2.jpg

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/2.1.jpg

greetings

Edited by Speed2010

Share this post


Link to post
Share on other sites

hello

unfortunately, this is how prestashop works, 

you can run only one instance of module in one hook.

it mean that there is no way to use the same module two times in one hook.

Share this post


Link to post
Share on other sites

thank you very much

 

hello cookiez

you need some assistance? if so, just let me know, i'm online now!

Share this post


Link to post
Share on other sites

thse two modules are separate things

html box pro allows to create tabs everywhere (on module configuration page)

product page blocks only on product page (one product edit page)

  • Like 1

Share this post


Link to post
Share on other sites
version 2.5.3 released!

Fixed notifications about "undefined index"

  • Like 1

Share this post


Link to post
Share on other sites

vekia hello, I have an error with the new version, see attached image.

in the previous version did not show any of this, you know why this appears?

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/erro%20htmlboxpro.jpg

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/erro%20htmlboxpro%202.jpg

 

Greetings

Edited by Speed2010

Share this post


Link to post
Share on other sites

this module doesn't use header.tpl file, problem is not related to html box pro module

some of your other modules has got issues in their tempalte files named header.tpl, verify them.

 

you can also disable error reporting. Open htmlboxpro.php file and turn off error reporting:

 

instead of:

<?php 
class htmlboxpro extends Module {
function __construct(){
ini_set("display_errors", 1);
error_reporting(E_ALL)

use:

<?php 
class htmlboxpro extends Module {
function __construct(){
//ini_set("display_errors", 1);
//error_reporting(E_ALL)

Share this post


Link to post
Share on other sites

hello, you can resolve the issue of my modules? or is it better to use the previous version of the module?

Greetings

Share this post


Link to post
Share on other sites

it's not related to htmlboxpro, module works well, turn off error reporting only then you will not see these messages from other modules.

 

i don't know what modules you use.

Share this post


Link to post
Share on other sites

from what I saw is giving error in

file.header.tpl.php on line 159

blockuseronline.php on line 76

blockuseronline.php on line 81

blockuseronline / blockuseronline.php on line 82

/ blockuseronline / blockuseronline.php on line 87


if I wanted to solve, what would by these lines? I could give you access if you could do it myself.

Greetings

Share this post


Link to post
Share on other sites

it's not default module (blockuseronline), i don't know this addon, ask module developer to fix it

Share this post


Link to post
Share on other sites

ok, unlike the previous module to the new one is that right?

version 2.5.3 released!
Fixed notifications about "undefined index"

so I will continue to use the same, or new modifications have this new addition?

Share this post


Link to post
Share on other sites

Hi Vekia,

 

I was hoping you can help me with something.  I've got three codes in HTML Box Pro for the right column.  My problem seems to be that my Viewed Products list only appears in Firefox when I use these codes.  I does not show in Explorer or Chrome.  Can you help?

 

The site is located at: www.cjrfinearts.com

 

Thanks so much.

 

The codes for the three different HTMLBox Pro boxes are below.  I tried to upload them as txt files, but the forum would not let me.

Code for Collectors Club:
<div id="collectors_club" > 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr align="center">
 <td><a href=http://www.cjrfinearts.com/content/6-collectors-club><img src="http://www.cjrfinearts.com/themes/cjrtheme/images/c-club.jpg"></a></td>
 </td>
 </tr></table><br>
</div>

Code for Free Shipping
<div id="free_shipping" class="block blockmanufacturer"> 
<p class="title_block">Free Shipping</p>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td><img src="http://www.cjrfinearts.com/ps/themes/cjrtheme/images/box.jpg"></td>
 <td>All domestic orders of $100 or more qualify for <strong>FREE</strong> shipping. For international shipping prices, please <a href=https://www.cjrfinearts.com/contact-us><font color="#0000CC"><strong>CONTACT US</strong></a></font></td>
 </tr></table>
</div>

Code for Newsletter Signup
<div id="newsletter_join" class="block blockmanufacturer" align="center"> 
<p class="title_block">Join Our Newsletter</p>
<br>
<!-- BEGIN: Constant Contact Stylish Email Newsletter Form -->
<form name="ccoptin" action="http://visitor.r20.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:3;">
<font style="font-weight: bold; font-family:Arial; font-size:14px; color:#006699;">Join our Email List & Get $20 off Your First Order of $100 or more</font><br>
<input type="text" name="ea" size="20" value="" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:10px; border:1px solid #999999;">
<input type="submit" name="go" value="GO" class="submit" style="font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10px;">
<input type="hidden" name="llr" value="kvbhp5cab">
<input type="hidden" name="m" value="1102681704106">
<input type="hidden" name="p" value="oi">
</form>
</div>
<!-- END: Constant Contact Stylish Email Newsletter Form -->
<!-- BEGIN: SafeSubscribe -->
<div align="center" style="padding-top:5px;">
<img src="https://imgssl.constantcontact.com/ui/images1/safe_subscribe_logo.gif" border="0" width="168" height="14" alt=""/>
</div>
<!-- END: SafeSubscribe -->
<br>
Edited by cjrent

Share this post


Link to post
Share on other sites

hahahahaha....omg, I am the biggest idiot ever.  Vekia, that was such a polite way to call me goofy.  NO i didn't view any products.  Just forget I asked the question.  I am so embarrassed and cannot stop laughing at myself.  I obviously need coffee this morning.

 

You are the absolute best.  Thank you!

Share this post


Link to post
Share on other sites
quick update released.

after latest update i turned on debug mode in module core, and i forgot to turn it off, what a shame ;)

now everything is okay with debug values, enjoy!

Share this post


Link to post
Share on other sites

no, you don't have because you switcher error reporting manually :)

Share this post


Link to post
Share on other sites
new version released!

updated tinymce editor for prestashop in version 1.2.5 and 1.3.6

Share this post


Link to post
Share on other sites

vekia hello, okay? updated to version 2.5.4, but now I can not edit the html, when I go to edit it shows and hides right away.

 

I've done to redefine the module, but still the same

can you see it?

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/htmlboxpro%20v2.5.4.jpg

 

Prestashop v1.4.10

Greetings

Edited by Speed2010

Share this post


Link to post
Share on other sites

hello

can you verify something? please scroll page down, do you see editor there? (below whole hooks block)

Share this post


Link to post
Share on other sites

okay, now press "editor"

and scroll page down, do you see editor there? let me know i want to release update asap :)

Share this post


Link to post
Share on other sites

hello vekia
I think it has some error, because when we were doing edit, appeared at our side and showed the right code.
gonna launch new update? or is it better to install the previous version.

Share this post


Link to post
Share on other sites

hello can you answer for my question? when you hit "edit", scroll page down, does the form to edit block appear below ? or not?

Share this post


Link to post
Share on other sites

hello, yes appears below, but was better in the previous version that appeared on the side, moreover those who are not aware do not really notice should automatically scroll down.

code by clicking rises up again, but does not show the right code, as shown in the screenshot in my previous post.

can not you by this version with the previous layout?

Greetings

Share this post


Link to post
Share on other sites

thankk you, this is what i wanted to know, new version will be released tommorow morning,

im working on it

 

seems like problem is related only to 1.4 version, weirdy, but i've got solution

thank you

Share this post


Link to post
Share on other sites

version 2.5.41 released


fixed:


- tinymce editor in 1.4 version


- multishop fix for 1.5.x versions


  • Like 1

Share this post


Link to post
Share on other sites
new version of html block module released!

- module now works with prestashop 1.6!

  • Like 1

Share this post


Link to post
Share on other sites

hello vekia

this module works with prestashop 1.6 ?

if not, after official release of 1.6 - it will work?

Share this post


Link to post
Share on other sites

hello vekia

this module works with prestashop 1.6 ?

if not, after official release of 1.6 - it will work?

 

yes, module works with prestashop 1.6 very very well ;)

Share this post


Link to post
Share on other sites

Hi,

 

I bought some of your modules and they work fine

 

I have many products, I would like to add the possibility to display blocks on selected product category..

Do you can help me to do this?

Thanks¡

Edited by Maelux

Share this post


Link to post
Share on other sites

it's possible only with core modification of the module (php files, database(!), and tpl)

in the nearest update i will add function to define categories, where you want to display block.

Share this post


Link to post
Share on other sites

Certainly It's a problem for me wait to the next update for add this.
I have some programing knowledge, ¿Could explain me what  code I add in  the differents files which you say, and in what line?

thanks

Share this post


Link to post
Share on other sites

unfortunately, it's not like "one line" solution.

you have to:
- add field to module configuration page which will be store information about category restriction (if it's turned on / off)

- add field in module database table to store information about product category (you wanto to display block only on product page which belongs to selected by you category)

- to insert / edit this information you have to modify module back office, you have to add additional fields to module configuration page to store information about that in addition you have to create function which will save information about selected categories (in new field in DB that you created)

- now you have to modify display block function, you have to include to smarty array variable with information about selected categories, and information about restriction (if it is selected or not)
- then in module .tpl file you have to create if condition to check if product is attached to selected categories, if so - display block, if not - hide it

Share this post


Link to post
Share on other sites

unfortunately, it's not like "one line" solution.

you have to:

- add field to module configuration page which will be store information about category restriction (if it's turned on / off)

- add field in module database table to store information about product category (you wanto to display block only on product page which belongs to selected by you category)

- to insert / edit this information you have to modify module back office, you have to add additional fields to module configuration page to store information about that in addition you have to create function which will save information about selected categories (in new field in DB that you created)

- now you have to modify display block function, you have to include to smarty array variable with information about selected categories, and information about restriction (if it is selected or not)

- then in module .tpl file you have to create if condition to check if product is attached to selected categories, if so - display block, if not - hide it

 

 

Hi Vekia,

I just wondered if this modification could solve my problem with displaying a categories block which only shows the subcategories of the parent category you are on, and also displays this block if you are on any of those subcategories (sorry, it's difficult to explain!).  You said that you may be able to modify your categories block module to do this but I I just wondered if this solution would be easier.  I could create several "categories blocks" with this module and assign them to a range of categories.  Do you think this would work?

Cheers

 

EDIT: I meant the pro version of this module, which you can already specify product and cms id's.

Edited by pel024

Share this post


Link to post
Share on other sites

unfortunately, it's not like "one line" solution.

you have to:

- add field to module configuration page which will be store information about category restriction (if it's turned on / off)

- add field in module database table to store information about product category (you wanto to display block only on product page which belongs to selected by you category)

- to insert / edit this information you have to modify module back office, you have to add additional fields to module configuration page to store information about that in addition you have to create function which will save information about selected categories (in new field in DB that you created)

- now you have to modify display block function, you have to include to smarty array variable with information about selected categories, and information about restriction (if it is selected or not)

- then in module .tpl file you have to create if condition to check if product is attached to selected categories, if so - display block, if not - hide it

 

I think will be better wait to next update. It´s too hard for my.

 

Anyway thank you by take your time on this answer.

Share this post


Link to post
Share on other sites

i will update it on upcoming weekend :)

Share this post


Link to post
Share on other sites