Exemple #1
0
 public function MerchantSendBankInstruction($merchant_id = '', $amount = '', $ref = '')
 {
     $amount = standardPrettyFormat($amount);
     $link = Yii::app()->getBaseUrl(true) . "/store/depositverify/?ref=" . $ref;
     $links = "<a href=\"{$link}\" target=\"_blank\" >" . Yii::t("default", "Click on this link") . "</a>";
     $sender = Yii::app()->functions->getOption('merchant_deposit_sender', $merchant_id);
     $subject = Yii::app()->functions->getOption('merchant_deposit_subject', $merchant_id);
     $instructions = Yii::app()->functions->getOption('merchant_deposit_instructions', $merchant_id);
     $instructions = smarty('amount', displayPrice(adminCurrencySymbol(), $amount), $instructions);
     $instructions = smarty('verify-payment-link', $links, $instructions);
     $client_info = Yii::app()->functions->getClientInfo(Yii::app()->functions->getClientId());
     if (is_array($client_info) && count($client_info) >= 1) {
         Yii::app()->functions->sendEmail($client_info['email_address'], '', $subject, $instructions);
     }
     return false;
 }
?>
</th>                                           
            <th width="5%"><?php 
echo Yii::t("default", "Total Price");
?>
</th>                 
            <th width="5%"><?php 
echo Yii::t("default", "Commission (%)");
?>
</th>                        
            <!--<th width="5%"><?php 
echo Yii::t("default", "Commission price");
?>
</th>  -->
            <th width="5%"><?php 
echo Yii::t("default", "Commission") . " (" . adminCurrencySymbol() . ")";
?>
</th>            
            <th width="5%"><?php 
echo Yii::t("default", "Net Amount");
?>
</th>  
            <th width="5%"><?php 
echo Yii::t("default", "Date");
?>
</th>  
        </tr>
    </thead>
    <tbody> 
    </tbody>
</table>
Exemple #3
0
       <?php 
        if ($val['promo_price'] >= 1) {
            ?>
         <p class="promo"><?php 
            echo adminCurrencySymbol() . standardPrettyFormat($val['price']);
            ?>
</p>
         <p><?php 
            echo adminCurrencySymbol() . standardPrettyFormat($val['promo_price']);
            ?>
</p>
       <?php 
        } else {
            ?>
        <p><?php 
            echo adminCurrencySymbol() . standardPrettyFormat($val['price']);
            ?>
</p>
       <?php 
        }
        ?>
       <p><?php 
        echo Yii::t("default", "Fax Credit");
        ?>
: <?php 
        echo $val['fax_limit'];
        ?>
</p>
       
       <p class="uk-text-muted"><?php 
        echo Yii::t("default", "Take this package");
echo Yii::t("default", "Package Name");
?>
</label>
  <span class="uk-text-bold"><?php 
echo isset($data['package_name']) ? ucwords($data['package_name']) : "Not Available";
?>
</span>
  </div>
  
  <div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Package Price");
?>
</label>
  <span class="uk-text-primary"><?php 
echo adminCurrencySymbol() . standardPrettyFormat($data['package_price']);
?>
</span>
  </div>
  
  <div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Membership Expired On");
?>
</label>
  <span class="uk-text-success">
   <?php 
if ($data['membership_expired'] != "0000-00-00") {
    ?>
   <?php 
    $date = date("F d Y", strtotime($data['membership_expired']));
Exemple #5
0
"><?php 
echo t("Withdraw money");
?>
</a>
   </div>
  </li>
  
  
  <li>
   <div class="rounded-box rounded">
     <p><?php 
echo t("Total value of your item sales");
?>
:</p>
     <h3><?php 
echo displayPrice(adminCurrencySymbol(), normalPrettyPrice($sale_total));
?>
</h3>
     <!--<P class="small"><?php 
echo t("based on list price of each item");
?>
</P>-->
     <P class="small"><?php 
echo t("From");
?>
:<?php 
echo $total_sale_count;
?>
 <?php 
echo t("orders");
?>
Exemple #6
0
?>
<div class="page-right-sidebar payment-option-page">
  <div class="main">  
  
  <?php 
if (!empty($error)) {
    ?>
  <p class="uk-text-danger"><?php 
    echo $error;
    ?>
</p>  
  <?php 
} else {
    ?>
  
  <h3><?php 
    echo t("Amount") . " " . displayPrice(adminCurrencySymbol(), standardPrettyFormat($amount_to_pay));
    ?>
</h3>
    
  <?php 
    echo $forms;
    ?>
  
  <?php 
}
?>
      
  
  </div>
</div>
   <?php 
    foreach ($res as $val) {
        ?>
  
        <?php 
        $account = $val['account'];
        $method = "Paypal to {$account}";
        if ($val['payment_method'] == "bank") {
            $account = $val['bank_account_number'];
            $method = "Bank account to {$account}";
        }
        ?>
      
        <tr>                        
            <td><?php 
        echo displayPrice(adminCurrencySymbol(), normalPrettyPrice($val['amount']));
        ?>
</td>            
            <td><?php 
        echo $method;
        ?>
</td>            
            <td><?php 
        echo prettyDate($val['date_process']);
        ?>
</td>
            <td><?php 
        echo $val['status'];
        ?>
</td>            
        </tr>
Exemple #8
0
<form class="uk-form uk-form-horizontal forms" id="forms">
<?php 
echo CHtml::hiddenField('action', 'shipppingRates');
echo CHtml::hiddenField('id', isset($_GET['id']) ? $_GET['id'] : "");
?>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Free delivery above Sub Total Order");
?>
</label>
  <?php 
echo CHtml::textField('free_delivery_above_price', Yii::app()->functions->getOption("free_delivery_above_price", $mtid), array('class' => "numeric_only"));
?>
  <span style="padding-left:8px;"><?php 
echo adminCurrencySymbol();
?>
</span>
</div>


<div class="uk-form-row">
  <label class="uk-form-label"><?php 
echo Yii::t("default", "Enabled Table Rates");
?>
?</label>
  <?php 
echo CHtml::checkBox('shipping_enabled', Yii::app()->functions->getOption("shipping_enabled", $mtid) == 2 ? true : false, array('class' => "icheck", 'value' => 2));
?>
</div>
<?php

$percent = Yii::app()->functions->getOptionAdmin('admin_commision_percent');
$commision_type = Yii::app()->functions->getOptionAdmin('admin_commision_type');
$currency = adminCurrencySymbol();
?>

<div class="page">
  <div class="main signup-selection"> 
  <h3><?php 
echo t("Please Choose A Package Below To Signup");
?>
</h3>
  
  
  <div class="table">
  
  <li>
  <a class="a rounded" href="<?php 
echo Yii::app()->createUrl("/store/merchantSignup");
?>
">
  <h5><?php 
echo t("Membership Click here");
?>
</h5>
  <p><?php 
echo t("You will be charged a monthly or yearly fee");
?>
.</p>
  </a>
<?php 
if ($res = Yii::app()->functions->getWithdrawalInformation($withdrawal_id)) {
    $wd_days_process = Yii::app()->functions->getOptionAdmin("wd_days_process");
    if (empty($wd_days_process)) {
        $wd_days_process = 5;
    }
    $process_date = date("d F Y", strtotime($res['date_created'] . " +{$wd_days_process} days"));
    ?>

<p>
<?php 
    echo t("Your withdrawal request has been sent to admin");
    ?>
.<br/>
<?php 
    echo t("Total Amount") . " " . displayPrice(adminCurrencySymbol(), normalPrettyPrice($res['amount']));
    ?>
</p>
<p>
<?php 
    echo t("We will complete this request on the");
    ?>
 <?php 
    echo $process_date . " ";
    echo t("(or the next business day), but it can take up to 7 days to appear in your account. A second confirmation email will be sent at this time");
    ?>
</p>

<?php 
} else {
    ?>
Exemple #11
0
 public function smsPurchaseTransaction()
 {
     $merchant_id = Yii::app()->functions->getMerchantID();
     $slug = $this->data['slug'];
     $stmt = "\n\t\tSELECT a.*,\n\t\t(\n\t\tselect title\n\t\tfrom\n\t\t{{sms_package}}\n\t\twhere\n\t\tsms_package_id=a.sms_package_id\n\t\t) as package_name\n\t\t FROM\n\t\t{{sms_package_trans}} a\n\t\tWHERE\n\t\tmerchant_id=" . Yii::app()->functions->q($merchant_id) . "\n\t\tORDER BY id DESC\n\t\t";
     if ($res = $this->rst($stmt)) {
         foreach ($res as $val) {
             /*$date=Yii::app()->functions->prettyDate($val['date_created']);
               $date=Yii::app()->functions->translateDate($date);   */
             $date = FormatDateTime($val['date_created']);
             $feed_data['aaData'][] = array($val['id'], strtoupper($val['payment_type']), ucfirst($val['package_name']), displayPrice(adminCurrencySymbol(), normalPrettyPrice($val['package_price'])), $val['sms_limit'], $val['status'], $date);
         }
         $this->otableOutput($feed_data);
     }
     $this->otableNodata();
 }