Beispiel #1
0
    ?>
		
		<div class="featured-product-col higlight-enable" >
			<div class="featured-product-col-border" id="hss">
				<div class="featured-product-head">
					<div class="head-text" >
						<div class="name">
							<?php 
    echo $package->name;
    ?>
 
						</div>
						<div class="price" >
							<span class="item1">
								<span class="price-item"><?php 
    echo $package->price == 0 ? JText::_("LNG_FREE") : JBusinessUtil::getPriceFormat($package->price);
    ?>
</span>
								 <?php 
    echo $package->price == 0 ? "" : " / ";
    ?>
	
								<?php 
    if ($package->days > 0) {
        ?>
								 	<span>
								 		<?php 
        echo $package->time_amount;
        echo ' ';
        $time_unit = JText::_('LNG_DAYS');
        switch ($package->time_unit) {
Beispiel #2
0
 public static function prepareEmail($data, $company, $siteName, $billingInformation, $templEmail, $vat)
 {
     $user = JFactory::getUser($company->userId);
     $customerName = $user->username;
     $templEmail = str_replace(EMAIL_CUSTOMER_NAME, $customerName, $templEmail);
     $siteAddress = JURI::root();
     $templEmail = str_replace(EMAIL_SITE_ADDRESS, $siteAddress, $templEmail);
     $templEmail = str_replace(EMAIL_COMPANY_NAME, $siteName, $templEmail);
     $templEmail = str_replace(EMAIL_ORDER_ID, $data->order_id, $templEmail);
     $paymentMethod = $data->details->processor_type;
     $templEmail = str_replace(EMAIL_PAYMENT_METHOD, $paymentMethod, $templEmail);
     if (!empty($data->paid_at)) {
         $templEmail = str_replace(EMAIL_ORDER_DATE, JBusinessUtil::getDateGeneralFormat($data->paid_at), $templEmail);
     } else {
         $templEmail = str_replace(EMAIL_ORDER_DATE, JBusinessUtil::getDateGeneralFormat($data->details->payment_date), $templEmail);
     }
     $totalAmount = $data->amount_paid;
     if (empty($data->amount_paid)) {
         $totalAmount = $data->amount;
     }
     $templEmail = str_replace(EMAIL_TOTAL_PRICE, JBusinessUtil::getPriceFormat($totalAmount), $templEmail);
     $templEmail = str_replace(EMAIL_TAX_AMOUNT, JBusinessUtil::getPriceFormat($data->package->price * $vat / 100), $templEmail);
     $templEmail = str_replace(EMAIL_SUBTOTAL_PRICE, JBusinessUtil::getPriceFormat($data->package->price), $templEmail);
     $templEmail = str_replace(EMAIL_SERVICE_NAME, $data->service, $templEmail);
     $templEmail = str_replace(EMAIL_UNIT_PRICE, JBusinessUtil::getPriceFormat($data->package->price), $templEmail);
     $templEmail = str_replace(EMAIL_BILLING_INFORMATION, $billingInformation, $templEmail);
     return "<div style='width: 600px;'>" . $templEmail . '</div>';
 }
Beispiel #3
0
%):</b></td>
								<td align="right" nowrap="nowrap"><?php 
    echo JBusinessUtil::getPriceFormat($this->order->vat_amount);
    ?>
 </td>
							</tr>
						<?php 
}
?>
						<tr>
							<td align="right" colspan="2"><b><?php 
echo JText::_('LNG_TOTAL');
?>
:</b></td>
							<td align="right" nowrap="nowrap"><?php 
echo JBusinessUtil::getPriceFormat($this->order->amount);
?>
 </td>
						</tr>
					</tbody>
				</table>	
			</div>
			<div class="clear"></div>
			<div>
				<label for="coupon_code"><?php 
echo JText::_('LNG_DISCOUNT_TXT');
?>
</label>
				<input type="text" size="40" value="<?php 
echo !empty($this->order->discount) ? $this->order->discount->code : "";
?>
Beispiel #4
0
    public function getPaymentDetails($paymentDetails)
    {
        $result = "";
        ob_start();
        ?>
			<TABLE>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_AMOUNT', true);
        ?>
 : </b>
					</TD> 
					<TD>
						 <?php 
        echo JBusinessUtil::getPriceFormat($paymentDetails->amount);
        ?>
					</TD>
				</TR>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_BANK_NAME', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->bank_name;
        ?>
					</TD>
				</TR>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_BANK_HOLDER_NAME', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->bank_holder_name;
        ?>
					</TD>
				</TR>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_IBAN', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->iban;
        ?>
					</TD>
				</TR>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_BANK_ACCOUNT_NUMBER', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->bank_account_number;
        ?>
					</TD>
				</TR>
								<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_BANK_COUNTRY', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->bank_country;
        ?>
					</TD>
				</TR>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_BANK_CITY', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->bank_city;
        ?>
					</TD>
				</TR>
				<TR>
					<TD align=left width=40% nowrap>
						<b><?php 
        echo JText::_('LNG_SWIFT_CODE', true);
        ?>
 :</b>
					</TD> 
					<TD>
						<?php 
        echo $this->swift_code;
        ?>
					</TD>
				</TR>
			</TABLE>
		<?php 
        $result = $result . ob_get_contents();
        ob_end_clean();
        return $result;
    }
Beispiel #5
0
%):</b></td>
					<td align="right"><?php 
    echo JBusinessUtil::getPriceFormat($this->item->vat_amount);
    ?>
 </td>
				</tr>
			<?php 
}
?>
			<tr>
				<td align="right" colspan="4"><b><?php 
echo JText::_('LNG_TOTAL');
?>
:</b></td>
				<td align="right"><?php 
echo JBusinessUtil::getPriceFormat($this->item->amount);
?>
 </td>
			</tr>
		</tbody>
	</table>


	<div class="printbutton">
		<a onclick="window.print()" href="javascript:void(0);"><?php 
echo JText::_("LNG_PRINT");
?>
</a>
	</div>

</div>
Beispiel #6
0
</td>
						</tr>
						<?php 
}
?>
						
						<?php 
if (!empty($this->offer->specialPrice) || !empty($this->offer->price)) {
    ?>
						<tr>
							<th><?php 
    echo JText::_('LNG_SPECIAL_PRICE');
    ?>
:</th>
							<td><?php 
    echo JBusinessUtil::getPriceFormat($this->offer->specialPrice);
    ?>
</td>
						</tr>
						<?php 
}
?>
					</table>
					
					<div class="offer-location">
						<span itemprop="address"><i class="dir-icon-map-marker dir-icon-large"></i> <?php 
echo JBusinessUtil::getLocationTextOffer($this->offer);
?>
</span>
					</div>
					<div class="offer-dates">