Ejemplo n.º 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 
}
?>
						
Ejemplo n.º 2
0
			Membership Level
		</label>
		
		&nbsp;&nbsp;
		
		<label>
			<input onchange="itemTypeChangeHandler();" name="mm_checkout_item_type" value='product' type="radio" <?php 
echo $dfltCheckoutItemType == "product" ? "checked" : "";
?>
  />
			Product
		</label>
	</div>
	
	<div style="margin-top:10px;">
		<select id="mm_membership_level_selector" name="mm_membership_level_selector" style="visible:false;">
		<?php 
echo MM_HtmlUtils::getMemberships($dfltCheckoutItemId);
?>
		</select>
		
		<select id="mm_product_selector" name="mm_product_selector" style="visible:false;">
		<?php 
echo MM_HtmlUtils::getProducts($dfltCheckoutItemId);
?>
		</select>
	</div>
</div>
<script type='text/javascript'>
itemTypeChangeHandler();
</script>
Ejemplo n.º 3
0
echo MM_TransactionLog::$TRANSACTION_TYPE_RECURRING_PAYMENT;
?>
">Recurring Payments</option>
							<option value="<?php 
echo MM_TransactionLog::$TRANSACTION_TYPE_REFUND;
?>
">Refunds</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>Products</td>
					<td>
						<select id="mm-product-ids[]" multiple="multiple" style="width:300px;" size="8">
						<?php 
echo MM_HtmlUtils::getProducts($selectedProducts);
?>
						</select>
					</td>
				</tr>
			</table>
			</td>
			
			<!-- RIGHT COLUMN -->
			<td valign="top">
			<table cellspacing="5">
				<?php 
$availableCoupons = MM_Coupon::getAllCodes(true);
if (count($availableCoupons) > 0) {
    ?>
				<tr>