예제 #1
0
?>
/> <?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>
		<td>Trial</td>
		<td>
			<input type='checkbox' id='mm-has_trial' onchange="mmjs.toggleTrial();" <?php 
echo $product->hasTrial() ? 'checked' : '';
?>
 <?php 
echo $hasBeenPurchased ? "disabled" : "";
?>
 />
			<input type='hidden' id='mm-has_trial_val' value='<?php 
echo $product->hasTrial() ? '1' : '0';
?>
' />
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div id='mm_has_trial_row' style='display:none;'>
예제 #2
0
파일: products.php 프로젝트: huynp/Critical
     $accessGranted .= MM_Utils::getAccessIcon(MM_OrderItemAccess::$ACCESS_TYPE_MEMBERSHIP);
     $accessGranted .= " <a href='" . MM_ModuleUtils::getUrl(MM_MODULE_PRODUCT_SETTINGS, MM_MODULE_MEMBERSHIP_LEVELS) . "&autoload=" . $membership->getId() . "'>" . $membership->getName() . "</a>";
 }
 if (empty($accessGranted)) {
     $bundle = $product->getAssociatedBundle();
     if ($bundle->isValid()) {
         $accessGranted .= MM_Utils::getAccessIcon(MM_OrderItemAccess::$ACCESS_TYPE_BUNDLE);
         $accessGranted .= " <a href='" . MM_ModuleUtils::getUrl(MM_MODULE_PRODUCT_SETTINGS, MM_MODULE_BUNDLES) . "&autoload=" . $bundle->getId() . "'>" . $bundle->getName() . "</a>";
     }
 }
 if (empty($accessGranted)) {
     $accessGranted = MM_NO_DATA;
 }
 // Attributes
 $attributes = "";
 if ($product->hasTrial()) {
     $attributes .= MM_Utils::getIcon('clock-o', 'beige', '1.3em', '0px', 'Has Trial', 'margin-right:5px;');
 } else {
     $attributes .= "<img title='No Trial' style='margin-right:5px;' src='" . MM_Utils::getImageUrl("clear") . "' />";
 }
 if ($product->isRecurring()) {
     if ($product->doLimitPayments()) {
         $attributes .= MM_Utils::getIcon('calendar-o', 'beige', '1.3em', '0px', 'Payment Plan', 'margin-right:5px;');
     } else {
         $attributes .= MM_Utils::getIcon('refresh', 'beige', '1.3em', '0px', 'Subscription', 'margin-right:5px;');
     }
 } else {
     $attributes .= "<img title='No Recurring' style='margin-right:5px;' src='" . MM_Utils::getImageUrl("clear") . "' />";
 }
 if ($product->isShippable()) {
     $attributes .= MM_Utils::getIcon('truck', 'beige', '1.3em', '0px', 'Requires Shipping', 'margin-right:5px;');