Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: better alerts for members when using member discounts

better alerts for members when using member discounts 13 years 3 months ago #14347

  • thepiston
  • thepiston's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 151
  • Thank you received: 0
One of the big problems with dtregister is that it doesn't have a good way to get members to log in when there is a member discount. We are left adding large text all over telling them to log in before they register. Even then a lot of people think "hey, I'm a member, so I will be getting the member price" even though they do not log in. I know it seems stupid, but it happens all of the time. Most users are not site admins like us.

My temporary fix is adding this php code to this file (/components/com_dtregister/views/event/tmpl/price_header.php) right before the final </div>

for J1.5:
<?php
$user =& JFactory::getUser();
$uid = $user->get('id');

if  ($uid==0)
echo "<span class='alert'>You are not logged in!  Logged in members receive an $80 discount.  If you have never been a member, please consider <a href='component/comprofiler/registers.html'>becoming a member.  If you are a past member and let your membership expire, please log in to renew.</span>";
else echo "<span class='tip' style='width:508px;'><h3>You are logged in and have received your $80 discount!</h3></span>";
?>


for J1.6:
<?php
$uid = $user->get('id');

if  ($uid==0)
echo "<span class='alert'>You are not logged in!  Logged in members receive an $80 discount.  If you have never been a member, please consider <a href='component/comprofiler/registers.html'>becoming a member.  If you are a past member and let your membership expire, please log in to renew.</span>";
else echo "<span class='tip' style='width:508px;'><h3>You are logged in and have received your $80 discount!</h3></span>";
?>

makes it look like this for members logged in:

[attachment=1:1jvzfi1c]<!-- ia1 -->members.jpg<!-- ia1 -->[/attachment:1jvzfi1c]

and like this for when you are not logged in:

[attachment=0:1jvzfi1c]<!-- ia0 -->nonmembers.jpg<!-- ia0 -->[/attachment:1jvzfi1c]
Attachments:

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.116 seconds