WebfactoryUK Posted June 10, 2013 Share Posted June 10, 2013 Hey everyone, New to Prestashop and trying to setup a site. I understand the basics of the different hooks and transplanting modules but (and I am sure this is fairly simple!) the bit that has me stumped is, say I want 2 adverts on my right column, I have found the advert block but you can only have one? Installed a HTML block but again you can only have one of those.. I also want to add my own hooks as I think this is what I need to do to change the layout of the homepage? I want a slideshow with a column of ads on the right and then a full width content area below basically. Got the slideshow and column sorted but then I need another hook below that to insert some more content and make it full width... I think? Thanks in advance for any pointers! Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 unfortunately it isn't possible to use one module in the same hook several times. it mean that one module = one instance in the hook. you can use other modules to add as many html boxes as you want. This is the only way to achieve this. second case it is necessary to modify the theme template files (.tpl) Link to comment Share on other sites More sharing options...
nathanrobjohn Posted June 10, 2013 Share Posted June 10, 2013 You could also duplicate the module and rename it so you would have say advert module 1 and advert module 2 and put them both in a hook . Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 that's correct but sometimes free license for module don't allow to duplicate the module Link to comment Share on other sites More sharing options...
WebfactoryUK Posted June 11, 2013 Author Share Posted June 11, 2013 Thanks for the replies! I was looking at some of the showcase examples on Prestashop.com and the have created new hooks like Footer box 1 and 2 etc etc. Guess I just need to work out the adding hooks part. I keep finding conflicting information though.. is there a guide I could use? Thanks again. Link to comment Share on other sites More sharing options...
WebfactoryUK Posted June 11, 2013 Author Share Posted June 11, 2013 Vekia I have just noticed its your HTML Box module I am using. So it can only be used in one place again? Is there another version that can be used in multiple hooks with different content? Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 i think that here aren't many modules which supports non-default hooks. It's because... we don't know what kind of hooks you created (name etc) Link to comment Share on other sites More sharing options...
WebfactoryUK Posted June 11, 2013 Author Share Posted June 11, 2013 Yea I kinda realised that shortly after posting. So, if you dont mind. Could you explain really briefly how you would go about creating a homepage with lots of different blocks for adverts? Would you create your own module and custom hooks? Prestashop isnt very beginner friendly lol. Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 the problem is that for one module you can use only one instance for hook. It mean that one module = one instance in the hook. you can of course use different hooks, but as i said - one module can be used only one time in hook. hope you understand me if you want to use many blocks with different positions in one hook - you need as many "html box" modules as the number for the blocks you want to create Link to comment Share on other sites More sharing options...
WebfactoryUK Posted June 12, 2013 Author Share Posted June 12, 2013 Yea I understand, thanks for that. Realised I was being stupid. i can use one html block to display multiple ads. But still, is there a HTML module available that you can use multiple times in DIFFERENT hooks. Even if you have to pay for it? Surely you don't have to use loads of different ones if you want a few over the whole site? Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 sure, for example html block premium edition: html block pro or other modules like Arbitrary HTML Link to comment Share on other sites More sharing options...
WebfactoryUK Posted June 12, 2013 Author Share Posted June 12, 2013 Perfect! Thanks for your help. Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 you're welcome if you've got any questions related to the modules i pasted - feel free to write i will try to help 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