stevell Posted January 17, 2013 Share Posted January 17, 2013 (edited) I have hunted though Prestashop but I cannot find anywhere to unsubscribe from the newsletter when they join through blocknewsletter in 1.5.3. Can anyone tell me where it is? Steve Edited January 25, 2013 by stevell (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 18, 2013 Share Posted January 18, 2013 front office-->login-->my accounts-->my personal information down at the bottom you can subscribe or unsubscribe 1 Link to comment Share on other sites More sharing options...
stevell Posted January 18, 2013 Author Share Posted January 18, 2013 front office-->login-->my accounts-->my personal information down at the bottom you can subscribe or unsubscribe That would mean the customer would need to register so they can unsubscribe from the newsletter which i doubt many would want to do. It looks like i will need to delete them manually from the database. Link to comment Share on other sites More sharing options...
El Patron Posted January 18, 2013 Share Posted January 18, 2013 so the hunt goes on...in the future you may want to elaborate more of what you are trying to accomplish... Link to comment Share on other sites More sharing options...
stevell Posted January 24, 2013 Author Share Posted January 24, 2013 I found the answer with this free module http://www.prestashop.com/forums/topic/138521-module-manage-newsletter-block-subscribers/ Link to comment Share on other sites More sharing options...
artofadornment Posted February 24, 2013 Share Posted February 24, 2013 (edited) [i realize this has already been solved, I just wanted to add an alternative action should anyone prefer to try something different.[/size]] Since my PS 1.5.3.1 newsletter block module didn't have the drop-down list with subscribe/unsubscribe on it (like older versions of PS apparently did), I got suspicious and decided to check the code to see if there was a way to add it back. First back up a copy of blocknewsletter.tpl in themes > (theme name) > modules > blocknewsletter > blocknewsletter.tpl (because it's always good to have a copy of the original). Change this section: <p> {* @todo use jquery (focusin, focusout) instead of onblur and onfocus *} <input type="text" name="email" size="18" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}" onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter' js=1}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter' js=1}';" class="inputNew" /> <!--<select name="action"> <option value="0"{if isset($action) && $action == 0} selected="selected"{/if}>{l s='Subscribe' mod='blocknewsletter'}</option> <option value="1"{if isset($action) && $action == 1} selected="selected"{/if}>{l s='Unsubscribe' mod='blocknewsletter'}</option> </select>--> <input type="submit" value="ok" class="button_mini" name="submitNewsletter" /> <input type="hidden" name="action" value="0" /> </p> To this: <p> <input type="text" name="email" size="18" value="your e-mail" onfocus="javascript:if(this.value=='your e-mail')this.value='';" onblur="javascript:if(this.value=='')this.value='your e-mail';" /></p> <p><select name="action"> <option value="0">Subscribe</option> <option value="1">Unsubscribe</option> </select> <input type="submit" value="ok" class="button_mini" name="submitNewsletter"/> </p> Originally I tried removing the comments around the <select> tags but that didn't work. Anyway, I tested both subscribe and unsubscribe with the code change and it worked great. Frankly, I'd rather customers not have to bug me to unsubscribe them, and as a customer I know I'd be annoyed to have to do that or create an account just so I could unsubscribe. Edited February 24, 2013 by artofadornment (see edit history) 6 Link to comment Share on other sites More sharing options...
yogeshyrk Posted March 26, 2014 Share Posted March 26, 2014 [i realize this has already been solved, I just wanted to add an alternative action should anyone prefer to try something different.] Since my PS 1.5.3.1 newsletter block module didn't have the drop-down list with subscribe/unsubscribe on it (like older versions of PS apparently did), I got suspicious and decided to check the code to see if there was a way to add it back. First back up a copy of blocknewsletter.tpl in themes > (theme name) > modules > blocknewsletter > blocknewsletter.tpl (because it's always good to have a copy of the original). Change this section: <p> {* @todo use jquery (focusin, focusout) instead of onblur and onfocus *} <input type="text" name="email" size="18" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}" onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter' js=1}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter' js=1}';" class="inputNew" /> <!--<select name="action"> <option value="0"{if isset($action) && $action == 0} selected="selected"{/if}>{l s='Subscribe' mod='blocknewsletter'}</option> <option value="1"{if isset($action) && $action == 1} selected="selected"{/if}>{l s='Unsubscribe' mod='blocknewsletter'}</option> </select>--> <input type="submit" value="ok" class="button_mini" name="submitNewsletter" /> <input type="hidden" name="action" value="0" /> </p>To this: <p> <input type="text" name="email" size="18" value="your e-mail" onfocus="javascript:if(this.value=='your e-mail')this.value='';" onblur="javascript:if(this.value=='')this.value='your e-mail';" /></p> <p><select name="action"> <option value="0">Subscribe</option> <option value="1">Unsubscribe</option> </select> <input type="submit" value="ok" class="button_mini" name="submitNewsletter"/> </p>Originally I tried removing the comments around the <select> tags but that didn't work. Anyway, I tested both subscribe and unsubscribe with the code change and it worked great. Frankly, I'd rather customers not have to bug me to unsubscribe them, and as a customer I know I'd be annoyed to have to do that or create an account just so I could unsubscribe. Thanks!! it worked! Link to comment Share on other sites More sharing options...
Recommended Posts