Пример #1
1
		<td><input id="mm_first_name" name="mm_first_name" type="text" class="mm-myaccount-form-field" value="<?php 
echo $user->getFirstName();
?>
"/></td>
	</tr>
	<tr>
		<td><span class="mm-myaccount-dialog-label">Last Name</span></td>
		<td><input id="mm_last_name" name="mm_last_name" type="text" class="mm-myaccount-form-field" value="<?php 
echo $user->getLastName();
?>
"/></td>
	</tr>
	<tr>
		<td><span class="mm-myaccount-dialog-label">Phone</span></td>
		<td><input id="mm_phone" name="mm_phone" type="text" class="mm-myaccount-form-field" value="<?php 
echo $user->getPhone();
?>
"/></td>
	</tr>
	<tr>
		<td><span class="mm-myaccount-dialog-label">Email*</span></td>
		<td>
			<input id="mm_email" name="mm_email" type="text" class="mm-myaccount-form-field" value="<?php 
echo $user->getEmail();
?>
"/>
		</td>
	</tr>
	<?php 
if ($enableUsernameChange) {
    ?>
Пример #2
0
     $user->setBillingAddress($item->billing_address1);
     $user->setBillingCity($item->billing_city);
     $user->setBillingState($item->billing_state);
     $user->setBillingZipCode($item->billing_postal_code);
     $user->setBillingCountry($item->billing_country);
     $user->setShippingAddress($item->shipping_address1);
     $user->setShippingCity($item->shipping_city);
     $user->setShippingState($item->shipping_state);
     $user->setShippingZipCode($item->shipping_postal_code);
     $user->setShippingCountry($item->shipping_country);
 }
 $name = $user->getFullName(true);
 if (empty($name)) {
     $name = MM_NO_DATA;
 }
 $phone = $user->getPhone();
 if (empty($phone)) {
     $phone = MM_NO_DATA;
 }
 // status
 $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 {