I want to show my calculated discount on the product page only to logged in users beloging to a certain customer group.
My code currently works fine for all users logged in. So how can I limit it to a certain customer group.
Code: Select all
<?php if (!$logged) { ?>
<?php } else { ?>
<h5>Ihr Rabatt für dieses Produkt: <strong><?php echo round((($priceInt[0]-$specialInt[0])/$priceInt[0])*100,1); ?>%</strong></h5>
<?php } ?>
Thanks, Chris