Jump to content

Contact-form at footer section


Mukesh Ravi

Recommended Posts

  • 4 months later...

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

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

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

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

  • 4 months later...

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

  • 2 weeks later...

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

  • 1 month later...

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+

 

attachicon.gifContact-form in Footer - module.png

 

 

Let me know if it works. Let me know if you like it :-)

 

pascal.

 

 

attachicon.gifblockcontactformfooter.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

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.

  • Like 1
Link to comment
Share on other sites

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

  • 10 months later...

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

  • 1 year later...

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+

 

attachicon.gifContact-form in Footer - module.png

 

 

Let me know if it works. Let me know if you like it :-)

 

pascal.

 

 

attachicon.gifblockcontactformfooter.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 by tony_mik (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...