Peter.31 Posted June 12, 2020 Share Posted June 12, 2020 Can anyone advise me how to remove "Email Alerts" from a quick preview when a product is unavailable? Link to comment Share on other sites More sharing options...
Razi Posted June 15, 2020 Share Posted June 15, 2020 here is the path of file where you can change/remove the code /themes/your_theme_name/modules/mailalerts/views/templates/hook/product.tpl <!-- MODULE MailAlerts --> {if isset($email) AND $email} <p class="form-group"> <input type="text" id="oos_customer_email" name="customer_email" size="20" value="{l s='[email protected]' mod='mailalerts'}" class="mailalerts_oos_email form-control" /> </p> {/if} <a href="#" title="{l s='Notify me when available' mod='mailalerts'}" id="mailalert_link" rel="nofollow">{l s='Notify me when available' mod='mailalerts'}</a> <span id="oos_customer_email_result" style="display:none; display: block;"></span> Link to comment Share on other sites More sharing options...
Peter.31 Posted June 15, 2020 Author Share Posted June 15, 2020 Thank you very much for your answer, but there is not the "mailalerts" folder in my theme files. Maybe it depends on theme which I use. Is there another solution? Link to comment Share on other sites More sharing options...
Razi Posted June 15, 2020 Share Posted June 15, 2020 which exact prestashop version you have ? and also check "mailalerts" folder in direct /modules/ Link to comment Share on other sites More sharing options...
Peter.31 Posted June 15, 2020 Author Share Posted June 15, 2020 I have PrestaShop 1.7.6.1. I found only "ps_emailalerts" folder and I would like to remove "Email Alerts" just from quick preview. Link to comment Share on other sites More sharing options...
Razi Posted June 15, 2020 Share Posted June 15, 2020 in Perstashop 1.7.x its in /modules/ps_emailalerts/views/templates/hook/product.tpl <form> <div class="js-mailalert" style="text-align:center;" data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}"> {if isset($email) AND $email} <input class="form-control" type="email" placeholder="{l s='[email protected]' d='Modules.Mailalerts.Shop'}"/><br /> {/if} {if isset($id_module)} {hook h='displayGDPRConsent' id_module=$id_module} {/if} <input type="hidden" value="{$id_product}"/> <input type="hidden" value="{$id_product_attribute}"/> <button class="btn btn-primary" type="submit" rel="nofollow" onclick="return addNotification();">{l s='Notify me when available' d='Modules.Mailalerts.Shop'}</button> <span style="display:none;padding:5px"></span> </div> </form> Link to comment Share on other sites More sharing options...
Razi Posted June 15, 2020 Share Posted June 15, 2020 in 1.7 you have also option in Backoffice module setting Link to comment Share on other sites More sharing options...
Peter.31 Posted June 15, 2020 Author Share Posted June 15, 2020 I know how to disable it in back-office, but I would like to disable only in "quick preview" and enable in "product page". 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