Making the discount code dissapper.


i have written expression make discount code disappear , tested it. i'm trying make conditional discount code disappear when wholesaler logged in. how bc know when wholesaler logged in? cant seem find user type in of page source or session cookies.

 

heres javascript if understand im trying do:

 

<script type="text/javascript">

function block(){
document.getelementbyid("disccode").style.display='none';
}
if (wholesale user type goes here = true)
window.onload=block;
</script>

there no native user type in bc. have if logged in or not.



More discussions in How to - HTML / CSS / JavaScript


adobe

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support