Skip to content

Instantly share code, notes, and snippets.

@ben72
Last active December 15, 2015 05:19
Show Gist options
  • Save ben72/5208266 to your computer and use it in GitHub Desktop.
Save ben72/5208266 to your computer and use it in GitHub Desktop.
Don't display any "Errors" on successful email recovery in shopplugin.
<div class="shopp shopp-errors">
<?php $msg = shopp('storefront','errors','echo=0');
if(trim($msg) == '<li>Check your email address for instructions on resetting the password for your account.</li>' ||
trim($msg) == '<li>Check your email address for your new password.</li>'): ?>
<ul>
<?php print $msg; ?>
<?php else: ?>
<h3>Errors</h3>
<ul>
<?php print $msg; ?>
<?php endif; ?>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment