Dove99x Posted June 14, 2017 Share Posted June 14, 2017 (edited) How do I hide element if mail alert is showing in the product page? Using "{if $HOOK_PRODUCT_OOS}" in the products page doesn't seem to be working as it removes the element whether its there or not. Location: mailalerts/views/templates/hook/product.tpl <!-- MODULE MailAlerts --> {if isset($email) AND $email} <input type="text" id="oos_customer_email" name="customer_email" size="20" value="{l s='[email protected]' mod='mailalerts'}" class="mailalerts_oos_email" onclick="clearText();" /><br /> {/if} <a href="#" title="{l s='Notify me when available' mod='mailalerts'}" onclick="return addNotification();" id="mailalert_link" rel="nofollow">{l s='Notify me when available' mod='mailalerts'}</a> <span id="oos_customer_email_result" style="display:none;"></span> <!-- END : MODULE MailAlerts --> Edited June 14, 2017 by Dove99x (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