Exemple #1
0
					 <p>**There are currently no paid bundles created.</p>
				<?php 
}
?>
			</div>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<div style="width: 540px; margin-top: 5px; margin-bottom:4px;" class="mm-divider"></div>
		</td>
	</tr>
	<tr>
		<td>Price*</td>
		<td><input type='text' id='mm-price' value='<?php 
echo $product->getPrice(false);
?>
'  style='width: 125px;' <?php 
echo $hasBeenPurchased ? "disabled" : "";
?>
/> <?php 
echo MM_CurrencyUtil::getActiveCurrency();
?>
</td>
	</tr>
	<tr>
		<td colspan="2">
		<div style="width: 540px; margin-top: 5px; margin-bottom:4px;" class="mm-divider"></div>
		</td>
	</tr>
	<tr>
Exemple #2
0
$memberTypeId = $p->member_type_id;
$user = new MM_User($current_user->ID);
$userMemberType = new MM_MembershipLevel($user->getMembershipId());
$memberType = new MM_MembershipLevel($memberTypeId);
$costOfNewMemberType = "Free";
if (!$memberType->isFree()) {
    $product = new MM_Product($memberType->getDefaultProduct());
    $costOfNewMemberType = "\$" . $product->getPrice(true);
}
$refund = "N/A";
$refundFloat = 0;
$currentMembershipPrice = "Free";
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();