thezey Posted October 7, 2013 Share Posted October 7, 2013 Hello everyone, A rather simple question, but I didn't find how to add links to homepage. Three columns are currently displayed on the bottom of my homepage: Categories, Information and, My Account. If possible, I'd like to add a fourth column with "Useful links" or "Products" as a title, and then display all the links I need under that column. Do you know how to do add those links? Thanks in advance Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 hello you can do it with free html block module with this addon you can define own conent (in this case links to products) how to do that? form the left hand side column select "footer" hook and then, use code with own links and you will achieve what you expected. if you need any help with code - feel free to write 1 Link to comment Share on other sites More sharing options...
thezey Posted October 7, 2013 Author Share Posted October 7, 2013 Hey vekia, thanks for your reply. A couple of questions coming to mind right now: 1) Does this module re-write over the current links in the footer? If it does, what about the links currently displayed? 2) Can I download the module from the back office? 3) Would you have an easy example on how to add links? 4) Is there another way to add links in Prestashop? Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 1) module doesn't overwrite links in footer, if you don't want them - you can disable them in modules tab in back office 2) you can download module only from topic that i created on forum, and also from my website. 3) <div class="block_various_links" id="block_various_links_footer"> <p class="title_block">Information</p> <ul> <li class="first_item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/prices-drop" title="Specials">Specials</a></li> <li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/new-products" title="New products">New products</a></li> <li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/best-sales" title="Top sellers">Top sellers</a></li> <li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/stores" title="Our stores">Our stores</a></li> <li class="item"><a href="https://apps.facepages.eu/prestashop/gb/contact-us" title="Contact us">Contact us</a></li> <li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/content/3-terms-and-conditions-of-use" title="Terms and conditions of use">Terms and conditions of use</a></li> <li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/content/4-about-us" title="About us">About us</a></li> <li><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/sitemap" title="sitemap">Sitemap</a></li> <li class="last_item">Powered by <a class="_blank" href="http://www.prestashop.com" target="_blank">PrestaShop</a>™</li> </ul> </div> 4) you can use block links module and use it in footer section Link to comment Share on other sites More sharing options...
thezey Posted October 7, 2013 Author Share Posted October 7, 2013 2) Downloaded your module, but when I want to add it as a module in prestashop, it says "unknown archive type". What am i missing? 4) Added a link in block links, but I can't see anything on the homepage. How do i make the link visible? Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 20 instead of downloading archive try to use direct link to the archive with module (in module tab page you see probably field where you can use direct url instead of archive file) 4) you see block with links? or just you don't see one link? Link to comment Share on other sites More sharing options...
thezey Posted October 7, 2013 Author Share Posted October 7, 2013 4) any link at all Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 you don't see links, but what about whole block "BLOCK LINK" ? Link to comment Share on other sites More sharing options...
thezey Posted October 7, 2013 Author Share Posted October 7, 2013 No, I don't see block link in the homepage nor in any frontend page. Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 ok, can you please open the modules > positions tab search for "displayLeftColumn" modules list, have you got there block links module ? Link to comment Share on other sites More sharing options...
thezey Posted October 7, 2013 Author Share Posted October 7, 2013 no. only customcontent2 module. Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2013 Share Posted October 8, 2013 go to modules > positions > transplant then select "block links" module and then - transplant it to the "footer" column Link to comment Share on other sites More sharing options...
thezey Posted October 8, 2013 Author Share Posted October 8, 2013 Just to make sure i'm right. My module is named "Link Block". I don't have any "block links" module. Second, should I select "display footer" from the list, as there's no "transplant" in the list? Please confirm. Link to comment Share on other sites More sharing options...
vekia Posted October 10, 2013 Share Posted October 10, 2013 link block = block links what you mean by: Second, should I select "display footer" from the list, as there's no "transplant" in the list? let me explain, just follow these steps: 1) open modules > positions 2) click on transplant button: http://i.imgur.com/qnG127q.png 3) select link block module from dropdown, then select displayFooter module, click save http://i.imgur.com/4xPIX4x.png Link to comment Share on other sites More sharing options...
thezey Posted October 11, 2013 Author Share Posted October 11, 2013 Thank you, Vekia. However, when I proceed, there's an error message saying "This module cannot be transplanted to this hook.". Any idea why it shows up? Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 open file: modules/blocklink/blocklink.php after this code: public function hookRightColumn($params) { return $this->hookLeftColumn($params); } add this one: public function hookFooter($params) { return $this->hookLeftColumn($params); } then try to transplant module once again 1 Link to comment Share on other sites More sharing options...
thezey Posted October 11, 2013 Author Share Posted October 11, 2013 Thank you very much, Vekia. Question solved! Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 glad to hear that i could help you a little in this case as you suggested, in going to mark topic as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
steviger Posted October 15, 2014 Share Posted October 15, 2014 Hi Milos, I'm using PS 1.6.0.8 Default bootstrap theme. Just downloaded your excellent module, thanks. I have two questions however: 1) When adding code and hit save settings, the code changes with loads of quotes: <div class="\"\\"block_various_links\\"\"" id="\"\\"block_various_links_footer\\"\""> <p class="\"\\"title_block\\"\"">Information</p> <ul> <li><a href="\"\\"#;\\"\"">Shipping</a></li> <li>Repair Service</li> <li>Paying Methods</li> <li>Terms & Conditions</li> <li>Product care & composition</li> </ul> </div> I disabled the Use HTMLPurifier Library option. 2) I would like the module to be displayed on the right side, next to My Account block (see attachment). But I can't seem to find out how. Could it have to do with the issue stated in my first question? Thanks in advance! Cheers, Steven Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2014 Share Posted October 16, 2014 your hosting account probably use magic quotes prestashop suggests to not use it are you able to disable it? Link to comment Share on other sites More sharing options...
steviger Posted October 17, 2014 Share Posted October 17, 2014 Just moved to a newer server and indeed, problem solved. It must be a CSS thing but I can't get the module to be displayed on the right side, next to My Account block. Here's my code in your module: <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer"> <div> <h4>F.A.Q.</h4> <ul> <li><a href="#">Shipping</a></li> <li><a href="#">Repair Service</a></li> <li><a href="#">Paying Methods</a></li> <li><a href="#">Terms & Conditions</a></li> <li><a href="#">Product care & composition</a></li> </ul> </div> </section> Cheers, Steven Link to comment Share on other sites More sharing options...
Recommended Posts