Jump to content

Email Alerts


Peter.31

Recommended Posts

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

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

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