Mukesh Ravi Posted October 22, 2012 Share Posted October 22, 2012 Hi, I am using Prestashop v1.5. I need to implement "Contact-form" in footer section. But I am facing problem in this and looking for solution. Is there any solution for thta? Thanks in advance. Link to comment Share on other sites More sharing options...
jaanrs Posted March 1, 2013 Share Posted March 1, 2013 Did you ever solve this? This would be a much needed here too. The contact form itself is easily displayed in the footer by placing: {include file="$tpl_dir./contact-form.tpl"} in footer.tpl after {$HOOK_FOOTER}, but the form doesnt work then. All ive managed to come up with is trying to include contactcontroller.php in index.php mut no go. Any one have ideas? Link to comment Share on other sites More sharing options...
PascalVG Posted March 3, 2013 Share Posted March 3, 2013 Do you want to put the form fields of the contact-form directly in the footer section? or just a link to the contact form? (The link is provided by default as far as I know in the INFORMATION->Contact up link, but I expect you know that) Please elaborate Pascal 1 Link to comment Share on other sites More sharing options...
jaanrs Posted March 6, 2013 Share Posted March 6, 2013 The fields into the footer, so that you dont need to go to a separate contact -page. Link to comment Share on other sites More sharing options...
Kogkalidis Posted September 7, 2013 Share Posted September 7, 2013 Do you want to put the form fields of the contact-form directly in the footer section? or just a link to the contact form? (The link is provided by default as far as I know in the INFORMATION->Contact up link, but I expect you know that) Please elaborate Pascal I want to make footer the main form (no redirection)!! Thanx version 1.5.4.1 Link to comment Share on other sites More sharing options...
newnova Posted January 28, 2014 Share Posted January 28, 2014 Hi! This problem is very crucial, somebody can help? Link to comment Share on other sites More sharing options...
newnova Posted January 30, 2014 Share Posted January 30, 2014 Seriously, no one knows how to position contact form on the home page or on the pages of CMS?? Link to comment Share on other sites More sharing options...
PascalVG Posted January 30, 2014 Share Posted January 30, 2014 Hi newnova, worked on some solution yesterday, but somehow not working yet. Hoped to use capturing the form using a buffer and then adding it at the end. For some reason it captures the "current page" as yet, not the one I want. Needs more trying... :-( Link to comment Share on other sites More sharing options...
PascalVG Posted February 8, 2014 Share Posted February 8, 2014 Hi All, I made some module that adds the Contact form in the footer, (With default css that makes it like one of the footer columns). Hope this is useful. Requirements: PrestaShop 1.5+ Let me know if it works. Let me know if you like it :-) pascal. blockcontactformfooter.zip 4 Link to comment Share on other sites More sharing options...
Paulito Posted February 9, 2014 Share Posted February 9, 2014 Good morning Installed OK Entered email address and message Click send Got a white screen, hotmail is saying "Mail delivery failed: returning message to sender If you need anymore info let me know Paul Link to comment Share on other sites More sharing options...
PascalVG Posted February 9, 2014 Share Posted February 9, 2014 Hi Paul, thanks for the feedback. Can you check for me if the normal contact form of you works as expected? Do you have a link to your (test) site where I could try it myself? What PS version do you use? Thanks, pascal. Link to comment Share on other sites More sharing options...
Paulito Posted February 9, 2014 Share Posted February 9, 2014 OOOOP's I never thought of checking that, you are correct I get a white screen with the default contact form as well That's bad for me BUT good for you It's only a test site anyway Sorry to worry you Paul Link to comment Share on other sites More sharing options...
PascalVG Posted February 9, 2014 Share Posted February 9, 2014 Hi Paul, Good to hear (for me). Hope you find out what's wrong at your side. Let me know if it needs help :-) Furthermore entirely possible that there may be hiccups with this module. Was a quick idea, and, except for quickly testing if it worked with Friendly URL or not and Multi language site/URL's I didn't do too much testing myself. I just noticed more people asked for this, so I made it a module. Thanks for the feedback and testing! pascal. Link to comment Share on other sites More sharing options...
JLeonrp Posted March 26, 2014 Share Posted March 26, 2014 Hi All, I made some module that adds the Contact form in the footer, (With default css that makes it like one of the footer columns). Hope this is useful. Requirements: PrestaShop 1.5+ Contact-form in Footer - module.png Let me know if it works. Let me know if you like it :-) pascal. blockcontactformfooter.zip Hi Pascal, First of all, thanks for the module and all the effort you put in it! Now, I'm trying to install it, but when I do, my PS goes to blank. without errors (yes, I've already turned on the DevMode). Do you have any clue why is this happening? I'm running a 1.5.3.1 PrestaShop. Thanks in advance! Link to comment Share on other sites More sharing options...
PascalVG Posted March 27, 2014 Share Posted March 27, 2014 Hi JLeon, Thanks for the feedback. Installed a testsite 1531 and came upon the same problem. Seems that older 1.5 versions don't use the screen caching method yet, introduced in ( later versions of) 1.5 Please edit the file : /modules/blockcontactformfooter/blockcontactformfooter.php. (maybe make backup, just in case) Change the function (all the way at the end of the file, remove red text, or copy from here): public function hookFooter($params) { if (!$this->isCached('blockcontactformfooter.tpl', $this->getCacheId())) return $this->display(__FILE__, 'blockcontactformfooter.tpl', $this->getCacheId()); } to this: public function hookFooter($params) { return $this->display(__FILE__, 'blockcontactformfooter.tpl'); } That should do the trick. :-) Pascal. 1 Link to comment Share on other sites More sharing options...
JLeonrp Posted March 27, 2014 Share Posted March 27, 2014 Hi JLeon, Thanks for the feedback. Installed a testsite 1531 and came upon the same problem. Seems that older 1.5 versions don't use the screen caching method yet, introduced in ( later versions of) 1.5 Please edit the file : /modules/blockcontactformfooter/blockcontactformfooter.php. (maybe make backup, just in case) Change the function (all the way at the end of the file, remove red text, or copy from here): public function hookFooter($params) { if (!$this->isCached('blockcontactformfooter.tpl', $this->getCacheId())) return $this->display(__FILE__, 'blockcontactformfooter.tpl', $this->getCacheId()); } to this: public function hookFooter($params) { return $this->display(__FILE__, 'blockcontactformfooter.tpl'); } That should do the trick. :-) Pascal. Hi Pascal, Thanks for the response! It worked! Didn't know that the way the PS uses cache changed between these versions. Link to comment Share on other sites More sharing options...
fquirogam Posted February 19, 2015 Share Posted February 19, 2015 Hi Pasca, I'm using your module in Prestashop 1.6 but after submit the form, i'm redirected to the contact page with a message. Invalid e-mail Link to comment Share on other sites More sharing options...
PascalVG Posted February 24, 2015 Share Posted February 24, 2015 Hi fquirogam, Some questions: - If you send a message using the normal 'contact' form (if you click on the 'contact us' link) , does everything work as expected? I installed it on 1.6.0.8, and everything seems to be ok (except for some minor css problems, like text colour and font) - What version do you use? - Default theme, or some custom theme? Let me know, pascal. Link to comment Share on other sites More sharing options...
tony_mik Posted August 9, 2016 Share Posted August 9, 2016 (edited) Hi All, I made some module that adds the Contact form in the footer, (With default css that makes it like one of the footer columns). Hope this is useful. Requirements: PrestaShop 1.5+ Contact-form in Footer - module.png Let me know if it works. Let me know if you like it :-) pascal. blockcontactformfooter.zip Thank you! This module helped me finish up a project. Keep up the good work! PS: tested in PS 1.6.1.6 Edited August 9, 2016 by tony_mik (see edit history) 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