예제 #1
0
if (!$userMemberType->isFree()) {
    $existingProduct = new MM_Product($userMemberType->getDefaultProduct());
    if ($existingProduct->isValid()) {
        $currentMembershipPrice = "\$" . $existingProduct->getPrice(true);
    }
}
?>
<input type='hidden' id='mm-member-type-id' value='<?php 
echo $memberTypeId;
?>
' />
<table style='font-size: 14px;'> 
<tr>
	<td style='font-size: 14px;'> 
		Are you sure you'd like to change your membership level from <?php 
echo $user->getMembershipName();
?>
 to  <?php 
echo $memberType->getName();
?>
?
	</td> 
</tr> 
<tr>
	<td align='center'>
		<table border='0' style='width: 80%; font-size: 14px;'>
			<tr>
				<td>Current membership price</td>
				<td><?php 
echo $currentMembershipPrice;
?>
예제 #2
0
 $status = MM_Status::getImage($user->getStatus());
 // actions
 $editActionUrl = "href='" . MM_ModuleUtils::getUrl(MM_MODULE_MANAGE_MEMBERS, MM_MODULE_MEMBER_DETAILS_GENERAL) . "&user_id=" . $user->getId() . "'";
 $deleteActionUrl = 'onclick="mmjs.remove(\'' . $user->getId() . '\', \'' . $user->getEmail() . '\')"';
 $actions = MM_Utils::getEditIcon("Edit Member", '', $editActionUrl);
 if ($user->getStatus() == MM_Status::$ERROR || $user->getStatus() == MM_Status::$PENDING_ACTIVATION) {
     $actions .= MM_Utils::getDeleteIcon("Delete Member", 'margin-left:5px;', $deleteActionUrl);
 } else {
     if (!$user->hasActiveSubscriptions()) {
         $actions .= MM_Utils::getDeleteIcon("Delete Member", 'margin-left:5px;', $deleteActionUrl);
     } else {
         $actions .= MM_Utils::getDeleteIcon("This member has an active paid membership or bundle which must be canceled before they can be deleted", 'margin-left:5px;', '', true);
     }
 }
 // membership level
 $membershipStr = $user->getMembershipName();
 if ($user->getStatus() == MM_Status::$PENDING_ACTIVATION || $user->getStatus() == MM_Status::$ERROR) {
     $membershipStr = "<em>" . $user->getMembershipName() . "</em>";
 }
 // bundles
 if (!empty($item->bundles)) {
     $bundles = explode(",", $item->bundles);
     // iterate over array of bundle IDs, lookup bundle ID name
     // and replace the ID with the bundle name
     for ($i = 0; $i < count($bundles); $i++) {
         $bundleId = $bundles[$i];
         if (isset($bundleName[$bundleId])) {
             $bundleName[$bundleId];
         } else {
             $bundle = new MM_Bundle($bundleId);
             if ($bundle->isValid()) {