Beispiel #1
0
/>
					Only allow one trial per member
					<?php 
echo MM_Utils::getInfoIcon("Checking this option instructs MemberMouse to only allow each member to get the trial once. If this is checked, the second time a member attempts to purchase this product they will be redirected to the checkout page and instructed to purchase the alternate product defined below.");
?>
				    <input type='hidden' id='mm-do_limit_trial' value='<?php 
echo $product->doLimitTrial() ? '1' : '0';
?>
' />
					<div id='mm_limit_trial_row' style='display:none; font-size:11px; padding-left:24px; padding-top:5px;'>
						Alternate Product <?php 
echo MM_Utils::getInfoIcon("This is the product that members will be instructed to purchase following an attempt to purchase this trial product more than once.");
?>
<br/>
						<?php 
$productsList = MM_HtmlUtils::getProducts($product->getLimitTrialAltProductId(), array($product->getId()));
if (!empty($productsList)) {
    ?>
							<select id="mm-trial_alternate_product" onchange="mmjs.getMMProductDescription();">
								<?php 
    echo $productsList;
    ?>
							</select>
						<?php 
} else {
    ?>
							<span style="font-size:11px; color:#cc0000;"><em>No other products are available to be an alternate. Please create another product in order to be able to limit this product to one trial per member.</em></span>
						<?php 
}
?>