Prestashop Module - Adding Newsletter feature

jaroslaw.belchatow
12 Posts
jaroslaw.belchatow posted this 08 April 2016

Hello!

Does someone know how to move the "Newsletter feature" from Footer section to Header section?
It is possible to copy that feature & paste in Header section?

Best regards,
J.P.

Hello! Does someone know how to move the "Newsletter feature" from Footer section to Header section? It is possible to copy that feature & paste in Header section? Best regards, J.P.
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 12 April 2016

Hi,

According to the newsletter module source code it can be transplanted into the displayLeftColumn, displayRightColumns and displayFooter hooks only.
In general, if you do not have, for example, Right Sidebar with Hook Right Column in the theme you can transplant Newsletter module into the displayRightColumn hook in PrestaShop and output the content of this hook using CMS Code control in the Themler:

{hook h="displayRightColumn" blockId="5"}

Thank you,
Olivia

Hi, According to the newsletter module source code it can be transplanted into the displayLeftColumn, displayRightColumns and displayFooter hooks only. In general, if you do not have, for example, Right Sidebar with Hook Right Column in the theme you can transplant Newsletter module into the displayRightColumn hook in PrestaShop and output the content of this hook using **CMS Code** control in the Themler: `{hook h="displayRightColumn" blockId="5"}` Thank you, Olivia
jaroslaw.belchatow
12 Posts
jaroslaw.belchatow posted this 13 April 2016

Hello,

Thank you for your response.

I've added a CMS Code in "Header section" like this:

      <form class=" bd-newsletter-1 form-inline" method="get" name="newsletterform" action="{$path}">
                <div class="bd-container-inner">
                    <div class="bd-newsletter-wrapper">



                            <div class="bd-input-wrapper">
                                <input type="text" name="email" class=" bd-bootstrapinput-3 form-control ac_input" placeholder="Wpisz adres e-mail" />
                            </div>


                            <div class="bd-button-wrapper">
                                <input type="submit" value="Zapisz" class=" bd-button-9" name="submitNewsletter" />
                            </div>
                    </div>
                </div>
                {if isset($smarty.get.theme_name)}<input type="hidden" name="theme_name" value="{$smarty.get.theme_name}" />{/if}
            </form>

Could you tell my if this code in "Header section" will works fine?

Best regards,
J.P.

Hello, Thank you for your response. I've added a **CMS Code** in "Header section" like this: <form class=" bd-newsletter-1 form-inline" method="get" name="newsletterform" action="{$path}"> <div class="bd-container-inner"> <div class="bd-newsletter-wrapper"> <div class="bd-input-wrapper"> <input type="text" name="email" class=" bd-bootstrapinput-3 form-control ac_input" placeholder="Wpisz adres e-mail" /> </div> <div class="bd-button-wrapper"> <input type="submit" value="Zapisz" class=" bd-button-9" name="submitNewsletter" /> </div> </div> </div> {if isset($smarty.get.theme_name)}<input type="hidden" name="theme_name" value="{$smarty.get.theme_name}" />{/if} </form> Could you tell my if this code in "Header section" will works fine? Best regards, J.P.
Support Team
Support Team posted this 19 April 2016

Hi,

It may work but you will not be able to style it in Themler.

Thank you,
Olivia

Hi, It may work but you will not be able to style it in Themler. Thank you, Olivia
You must log in or register to leave comments