Smijn2 Posted May 15, 2016 Share Posted May 15, 2016 Hi, I'm using PS 1.6.1.4 with a custom theme from Leotheme. The newsletter block is located in the footer and when submitted an e-mailaddress, the page refreshes and the customer gets redirected to the top of the page. I want the customer to be 'redirected' to the footer instead. Can anyone help me with this? Thank you very much in advance. This is the code in modules/blocknewsletter/blocknewsletter.tpl: <!-- Block Newsletter module--> <div id="newsletter_block_left" class="block inline"> <h4 class="title_block">{l s='Subscribe' mod='blocknewsletter'}</h4> <div class="block_content"> <form action="{$request_url}" method="post"> <div class="form-group{if isset($msg) && $msg } {if $nw_error}form-error{else}form-ok{/if}{/if}" > <input class="inputNew form-control grey newsletter-input" id="newsletter-input" type="text" name="email" size="18" placeholder="{if isset($msg) && $msg}{$msg}{elseif isset($value) && $value}{$value}{else}{l s='Enter your e-mail' mod='blocknewsletter'}{/if}" /> <button type="submit" name="submitNewsletter" class="btn button button-small"> <i class="fa fa-arrow-right"></i> </button> <input type="hidden" name="action" value="0" /> </div> </form> </div> {hook h="displayBlockNewsletterBottom" from='blocknewsletter'} </div> <!-- /Block Newsletter module--> {strip} {if isset($msg) && $msg} {addJsDef msg_newsl=$msg|@addcslashes:'\''} {/if} {if isset($nw_error)} {addJsDef nw_error=$nw_error} {/if} {addJsDefL name=placeholder_blocknewsletter}{l s='Enter your e-mail' mod='blocknewsletter' js=1}{/addJsDefL} {if isset($msg) && $msg} {addJsDefL name=alert_blocknewsletter}{l s='Newsletter : %1$s' sprintf=$msg js=1 mod="blocknewsletter"}{/addJsDefL} {/if} {/strip} Link to comment Share on other sites More sharing options...
klemonnier Posted September 9, 2017 Share Posted September 9, 2017 (edited) <form action="{$urls.current_url}#footer" method="post"> with prestashop 1.7 Edited September 9, 2017 by klemonnier (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