本文整理汇总了PHP中BFCHelper::getItem方法的典型用法代码示例。如果您正苦于以下问题:PHP BFCHelper::getItem方法的具体用法?PHP BFCHelper::getItem怎么用?PHP BFCHelper::getItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BFCHelper
的用法示例。
在下文中一共展示了BFCHelper::getItem方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($config, $order, $language, $urlBack, $url, $suffixOrder, $overrideAmount = 0, $debug = FALSE)
{
$paymentData = explode('|', $config);
/*ShopID|Separator|SecretKey|PaymentUrl */
$this->shopID = $paymentData[0];
$this->separator = $paymentData[1];
$this->SecretKey = $paymentData[2];
$this->paymentUrl = $paymentData[3];
$this->numord = sprintf('B%s%s%s%s', rand(1, 9999) . $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->importo = number_format($order->DepositAmount * COM_BOOKINGFORCONNECTOR_CONVERSIONCURRENCY, 2, ',', '');
$this->importoForMac = intval($order->DepositAmount * 100 * COM_BOOKINGFORCONNECTOR_CONVERSIONCURRENCY);
if (isset($suffixOrder) && $suffixOrder != "" && $overrideAmount > 0) {
$this->numord .= $this->separator . "R" . $suffixOrder;
$this->importo = number_format($overrideAmount * COM_BOOKINGFORCONNECTOR_CONVERSIONCURRENCY, 2, ',', '');
$this->importoForMac = intval($overrideAmount * 100 * COM_BOOKINGFORCONNECTOR_CONVERSIONCURRENCY);
}
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->languageId = $this->getLanguage($language);
$this->url = $url;
$this->urlBack = $urlBack;
if ($debug) {
$this->shopID = 'MYSHOP';
$this->numord = 78;
$this->importo = '17,00';
$this->importoForMac = '1700';
$this->SecretKey = '3DfEO2B5Jjm4VC1Q3vEh';
}
//$this->mac = $this->getMac();
$this->redirectUrl = getUrl();
}
示例2: __construct
public function __construct($config, $order, $language, $urlBack, $url, $suffixOrder, $overrideAmount = 0, $debug = FALSE)
{
//$this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY);
$paymentData = explode('|', $config);
/*id|password|separator|PaymentUrl */
$this->id = $paymentData[0];
$this->separator = $paymentData[2];
$this->password = $paymentData[1];
$this->paymentUrl = $paymentData[3];
$this->trackid = sprintf('B%s%s%s%s', $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->langid = $this->getLanguage($language);
$this->amt = $order->DepositAmount;
$this->udf2 = $order->OrderId;
$this->orderId = $order->OrderId;
if (isset($suffixOrder) && $suffixOrder != "" && $overrideAmount > 0) {
$this->trackid .= $this->separator . "R" . $suffixOrder;
//$this->orderId .= $this->separator . "R" . $suffixOrder;
$this->udf2 .= $this->separator . "R" . $suffixOrder;
$this->amt = $overrideAmount;
$this->udf4 = $overrideAmount;
$this->suffixOrder = $suffixOrder;
}
$this->responseUrl = $url;
$this->errorUrl = $urlBack;
if ($debug) {
//$this->merchantNumber = '99999999';
//$this->password = '99999999';
$this->paymentUrl = 'https://test4.constriv.com/cg301/servlet/PaymentInitHTTPServlet';
}
$this->requestUrl = $this->getUrl();
}
示例3: __construct
public function __construct($config, $order, $language, $urlBack, $url, $debug = false, $donation = false)
{
$paymentData = explode('|', $config);
/*Username|Password|Signature|Separator */
$this->Username = $paymentData[0];
$this->Password = $paymentData[1];
$this->Signature = $paymentData[2];
$this->separator = $paymentData[3];
$this->divisa = 'EUR';
$this->numord = sprintf('B%s%s%s%s', rand(1, 9999) . $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->languageId = $this->getLanguage($language);
$this->importo = intval($order->DepositAmount);
$this->paymentUrl = 'https://www.paypal.com/cgi-bin/webscr';
$this->paymentUrlAPI = 'https://api-3t.paypal.com/nvp';
$this->returnurl = $url;
$this->urlBack = $urlBack;
$this->method = "SetExpressCheckout";
$this->version = "109.0";
$this->paymentaction = "Sale";
if ($debug) {
$this->paymentUrl = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
$this->paymentUrlAPI = 'https://api-3t.sandbox.paypal.com/nvp';
}
//$this->requestUrl = $this->getUrl();
}
示例4: __construct
public function __construct($config, $order, $language, $urlok, $urlko, $suffixOrder, $overrideAmount = 0, $debug = FALSE)
{
$paymentData = explode('|', $config);
/*MerchantID|ShopID|UserID|Password|Separator|SecretString */
$this->merchantID = $paymentData[0];
$this->shopID = $paymentData[1];
$this->userID = $paymentData[2];
$this->password = $paymentData[3];
$this->separator = $paymentData[4];
$this->SecretKey = $paymentData[5];
//$this->paymentUrl = $paymentData[3];
$this->numeroOrdine = sprintf('B%s%s%s%s', rand(1, 9999) . $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->totaleOrdine = intval($order->DepositAmount * 100);
if (isset($suffixOrder) && $suffixOrder != "" && $overrideAmount > 0) {
$this->numord .= $this->separator . "R" . $suffixOrder;
$this->totaleOrdine = intval($overrideAmount * 100);
}
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->languageId = $this->getLanguage($language);
$this->urlOk = $urlok;
$this->urlKo = $urlko;
if ($debug) {
$this->merchantID = '9999888';
$this->shopID = '99888';
$this->userID = '9999888_IPERTRD';
$this->numeroOrdine = 'VERXORDXPROD196';
$this->totaleOrdine = '1';
$this->password = 'Ipertrade2013!';
$this->SecretKey = 'b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1';
$this->tipoRispostaApv = 'click';
$this->urlOk = "http://www.dominio.it/ok.html";
$this->urlKo = "http://www.dominio.it/ko.html";
}
// $this->paymentUrl .= $this->getUrl();
}
示例5: __construct
public function __construct($config, $order, $language, $urlBack, $url, $suffixOrder, $overrideAmount = 0, $debug = FALSE)
{
// echo "<pre>order";
// echo print_r($order);
// echo "</pre>";
//$this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY);
$paymentData = explode('|', $config);
/* MerchantId|Abi|MacKey|Separator|PaymentUrl */
$this->merchant_id = $paymentData[0];
$this->abi = $paymentData[1];
$this->SecretKey = $paymentData[2];
$this->separator = $paymentData[3];
$this->paymentUrl = $paymentData[4];
$this->order_id = sprintf('B%s%s%s%s', $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->lingua = $this->getLanguage($language);
$this->importo = number_format($order->DepositAmount, 2, ',', '');
//$this->order_id = $order->OrderId;
if (isset($suffixOrder) && $suffixOrder != "" && $overrideAmount > 0) {
$this->order_id .= $this->separator . "R" . $suffixOrder;
//$this->orderId .= $this->separator . "R" . $suffixOrder;
$this->importo = $overrideAmount;
$this->suffixOrder = $suffixOrder;
}
if (empty($order->ExternalId)) {
$order->ExternalId = $this->abi;
}
$this->urlok = $url;
$this->urlko = $urlBack;
$paymentDescr = "payment";
if (isset($order->donationNotes) && !empty($order->donationNotes)) {
$paymentDescr = $order->donationNotes;
}
$paymentDescr = preg_replace('/[^A-Za-z0-9\\- ]/', '', $paymentDescr);
if (strlen($paymentDescr > 120)) {
$paymentDescr = substr($paymentDescr, 0, 120);
}
$ExternalId = $order->ExternalId;
if (strlen($ExternalId > 32)) {
$ExternalId = substr($ExternalId, 0, 32);
}
$this->items = $ExternalId . $this->FieldSeparator . $paymentDescr . $this->FieldSeparator . "1" . $this->FieldSeparator . $this->importo . $this->FieldSeparator . $this->divisa . $this->macSeparator;
/*if ($debug){
$this->merchant_id = 'NCHTEST';
$this->abi = '03599';
$this->SecretKey = 'CAE5859549B7F54834040AA110A533A1';
}*/
$this->mac = $this->getMac();
}
示例6: __construct
public function __construct($config, $order, $language, $urlBack, $url, $suffixOrder, $overrideAmount = 0, $debug = FALSE)
{
// echo "<pre>order";
// echo print_r($order);
// echo "</pre>";
//$this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY);
$paymentData = explode('|', $config);
/* storename|ksig|Separator|PaymentUrl */
$this->storename = $paymentData[0];
$this->ksig = $paymentData[1];
$this->separator = $paymentData[2];
$this->paymentUrl = $paymentData[3];
$this->order_id = sprintf('B%s%s%s%s', $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->language = $this->getLanguage($language);
$this->importo = number_format($order->DepositAmount, 2, '.', '');
$this->currentDateTime = date("Y:m:d-H:i:s");
//$this->order_id = $order->OrderId;
if (isset($suffixOrder) && $suffixOrder != "" && $overrideAmount > 0) {
$this->order_id .= $this->separator . "R" . $suffixOrder;
//$this->orderId .= $this->separator . "R" . $suffixOrder;
$this->importo = number_format($overrideAmount, 2, '.', '');
$this->suffixOrder = $suffixOrder;
}
$this->responseSuccessURL = $url;
$this->responseFailURL = $urlBack;
$paymentDescr = "payment";
if (isset($order->donationNotes) && !empty($order->donationNotes)) {
$paymentDescr = $order->donationNotes;
}
$paymentDescr = preg_replace('/[^A-Za-z0-9\\- ]/', '', $paymentDescr);
if (strlen($paymentDescr > 120)) {
$paymentDescr = substr($paymentDescr, 0, 120);
}
if (empty($order->ExternalId)) {
$this->invoicenumber = $order->ExternalId;
}
if (strlen($this->invoicenumber > 32)) {
$this->invoicenumber = substr($this->invoicenumber, 0, 32);
}
$this->info = $this->invoicenumber . $this->FieldSeparator . $paymentDescr . $this->FieldSeparator . "1" . $this->FieldSeparator . $this->importo . $this->FieldSeparator . $this->divisa;
/*if ($debug){
$this->merchant_id = 'NCHTEST';
$this->abi = '03599';
$this->SecretKey = 'CAE5859549B7F54834040AA110A533A1';
}*/
$this->hash = $this->getHash();
}
示例7: __construct
public function __construct($config, $order, $language, $urlBack, $url, $debug = FALSE)
{
$paymentData = explode('|', $config);
/*ShopID|Separator|StartSecretKey|PaymentUrl */
$this->alias = $paymentData[0];
$this->separator = $paymentData[1];
$this->startSecretKey = $paymentData[2];
$this->paymentUrl = $paymentData[3];
$this->divisa = 'EUR';
$this->numord = sprintf('B%s%s%s%s', rand(1, 9999) . $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->languageId = $this->getLanguage($language);
$this->importo = intval($order->DepositAmount * 100);
$this->url = $url;
$this->urlBack = $urlBack;
if ($debug) {
$this->numord = 'testCILME534';
$this->importo = 1;
$this->alias = 'payment_testm_urlmac';
$this->startSecretKey = 'esempiodicalcolomac';
}
$this->mac = $this->getMac();
}
示例8: __construct
public function __construct($config, $order, $language, $urlBack, $url, $suffixOrder, $overrideAmount = 0, $debug = false, $donation = false)
{
//$this->helper = new wsQueryHelper(COM_BOOKINGFORCONNECTOR_WSURL, COM_BOOKINGFORCONNECTOR_APIKEY);
$paymentData = explode('|', $config);
/*Separator|MerchantNumber|SecretString */
$this->merchantNumber = $paymentData[1];
$this->separator = $paymentData[0];
$this->password = $paymentData[2];
$this->trackid = sprintf('B%s%s%s%s', $this->separator, $order->ExternalId, $this->separator, $order->OrderId);
$this->email = BFCHelper::getItem($order->CustomerData, 'email') . "";
$this->langid = $this->getLanguage($language);
$this->amt = $order->DepositAmount;
$this->udf1 = $order->OrderId;
$this->orderId = $order->OrderId;
if (isset($suffixOrder) && $suffixOrder != "" && $overrideAmount > 0) {
$this->trackid .= $this->separator . "R" . $suffixOrder;
//$this->orderId .= $this->separator . "R" . $suffixOrder;
$this->udf1 .= $this->separator . "R" . $suffixOrder;
$this->amt = $overrideAmount;
$this->udf4 = $overrideAmount;
$this->suffixOrder = $suffixOrder;
}
$this->isdonation = $donation;
if ($this->isdonation) {
$this->udf1 = sprintf('%s %s', $order->ExternalId, BFCHelper::getItem($order->CustomerData, 'nome'));
$this->trackid = $order->ExternalId;
}
$this->responseUrl = $url;
$this->errorUrl = $urlBack;
if ($debug) {
$this->merchantNumber = '99999999';
$this->password = '99999999';
$this->paymentUrl = 'https://test.monetaonline.it/monetaweb/hosted/init/http';
}
$this->requestUrl = $this->getUrl();
}
示例9: JDate
$dateCheckin = new JDate($dateCheckin);
$dateCheckout = BFCHelper::parseJsonDate($order->EndDate, 'Y-m-d');
$dateCheckout = new JDate($dateCheckout);
$expirationjdate = new JDate('now -1 month');
// 3:20 PM, December 1st, 2012
$checkin = $dateCheckin->format('Ym01');
if (($dateCheckout < $expirationjdate || $dateCheckout > $jdate) && !array_key_exists($checkin, $listDateArray)) {
$ratingError = 5;
$showForm = false;
}
$selectdate = false;
$name = BFCHelper::getItem($order->CustomerData, 'nome');
$email = BFCHelper::getItem($order->CustomerData, 'email');
$nation = BFCHelper::getItem($order->CustomerData, 'stato');
$city = BFCHelper::getItem($order->CustomerData, 'citta');
$unitiid = BFCHelper::getItem($order->NotesData, 'idunita', 'unita');
// controllo se l'ordine è riferito a questa risorsa
if (!isset($unitiid) && $unitiid !== $resource->UnitId) {
// ordine non riferito a questa risorsa
$ratingError = 4;
$showForm = false;
}
} else {
// ordine inesistente o a cui non è possibile associare una recensione
$ratingError = 3;
$showForm = false;
}
}
} else {
//ordine non numerico
$ratingError = 1;
示例10:
:</strong> <?php
echo BFCHelper::getItem($contacts, 'telefono1');
?>
<?php
if (BFCHelper::getItem($contacts, 'telefono2') != '') {
?>
- <?php
echo BFCHelper::getItem($contacts, 'telefono2');
}
?>
<br/>
<strong><?php
echo JTEXT::_('MOD_BOOKINGFORCONNECTOR_MERCHANT_FAX');
?>
:</strong> <?php
echo BFCHelper::getItem($contacts, 'fax');
?>
<br/>
<strong><?php
echo JTEXT::_('MOD_BOOKINGFORCONNECTOR_MERCHANT_INFO');
?>
:</strong> <a class="com_bookingforconnector_resource-merchantLink" href="<?php
echo JRoute::_('index.php?option=com_bookingforconnector&view=merchantdetails&merchantId=' . $merchant->MerchantId . ':' . BFCHelper::getSlug($merchant->Name));
?>
"><?php
echo JTEXT::_('MOD_BOOKINGFORCONNECTOR_MERCHANT_MERCHANTSHEET');
?>
</a>
</p>
<?php
if ($XGooglePos != null && $XGooglePos != '' && ($YGooglePos != null && $YGooglePos != '')) {
示例11: display
function display($tpl = NULL, $preparecontent = false)
{
$document = JFactory::getDocument();
$language = $document->getLanguage();
// load scripts
$document->addScript('components/com_bookingforconnector/assets/js/jquery.validate.min.js');
$document->addScript('components/com_bookingforconnector/assets/js/additional-methods.min.js');
// Initialise variables
$trackorder = false;
$state = $this->get('State');
$actionmode = JRequest::getVar('actionmode', "");
$item = $this->get('Item');
$params =& $state->params;
$this->assignRef('state', $state);
$this->assignRef('params', $params);
$this->assignRef('language', $language);
$this->assignRef('item', $item);
$this->assignRef('actionmode', $actionmode);
if ($actionmode == "orderpayment") {
//recupero quanti pagamenti sono stati effettuati
$item->paymentCount = BFCHelper::getTotalOrderPayments($item->order->OrderId);
$item->overrideAmount = JRequest::getFloat('overrideAmount');
//sostituisco i dati dell'ordine da pagare con i dati passati e l'ordine con un suffisso in più
/*$item = $this->get('Item');*/
/*$item = "fet";*/
}
if ($actionmode == "orderpaid") {
$trackorder = true;
}
if ($actionmode != '' && $actionmode != 'cancel' && $actionmode != 'donation' && $actionmode != 'orderpayment') {
if ($item->order->Status != 5) {
$hasPayed = $this->processPayment($actionmode, $item->order->OrderId);
/* eccezione per setefi che pretende un url di ritorno */
} else {
//$hasPayed = true;
$hasPayed = $this->processOrderPayment($actionmode, $item->order->OrderId, $language);
}
/*
$link = '';
if ($hasPayed){
}
$app = JFactory::getApplication();
$app->redirect($link, $msg);
*/
}
if ($actionmode == '' && $actionmode != 'donation') {
if ($item->order->Status != 5) {
$this->inizializePayment($item->order->OrderId);
}
}
if ($actionmode == 'orderpaid') {
$hasPayed = $item->order->Status == 5;
}
if (isset($trackorder) && $trackorder) {
$merchants = array();
$merchants[] = $item->order->MerchantId;
$criteoConfig = BFCHelper::getCriteoConfiguration(4, $merchants, $item->order->OrderId);
if (isset($criteoConfig) && isset($criteoConfig->enabled) && $criteoConfig->enabled && count($criteoConfig->merchants) > 0) {
$document->addScript('//static.criteo.net/js/ld/ld.js');
$document->addScriptDeclaration('window.criteo_q = window.criteo_q || [];
window.criteo_q.push(
{ event: "setAccount", account: ' . $criteoConfig->campaignid . '},
{ event: "setSiteType", type: "d" },
{ event: "setEmail", email: "" },
{ event: "trackTransaction", id: "' . $criteoConfig->transactionid . '", item: [' . json_encode($criteoConfig->orderdetails) . '] }
);');
}
$analyticsEnabled = $this->checkAnalytics("Sales Resource List");
if ($analyticsEnabled && $config->get('eecenabled', 0) == 1) {
$purchaseObject = new stdClass();
$purchaseObject->id = "" . $item->order->OrderId;
$purchaseObject->affiliation = "" . $item->order->Label;
$purchaseObject->revenue = "" . $item->order->TotalAmount;
$purchaseObject->tax = 0.0;
$allobjects = array();
$svcTotal = 0;
$allservices = array_values(array_filter(simpledom_load_string($order->NotesData)->xpath("//price"), function ($prc) {
return (string) $prc->tag == "extrarequested";
}));
foreach ($allservices as $svc) {
$svcObj = new stdClass();
$svcObj->id = "" . (int) $svc->priceId . " - Service";
$svcObj->name = (string) $svc->name;
$svcObj->category = "Services";
$svcObj->brand = $item->Name;
$svcObj->variant = (string) BFCHelper::getItem($order->NotesData, 'nome', 'unita');
$svcObj->price = round((double) $svc->discountedamount / (int) $svc->quantity, 2);
$svcObj->quantity = (int) $svc->quantity;
$allobjects[] = $svcObj;
$svcTotal += (double) $svc->discountedamount;
}
$mainObj = new stdClass();
$mainObj->id = "" . $item->order->RequestedItemId . " - Resource";
$mainObj->name = (string) BFCHelper::getItem($order->NotesData, 'nome', 'unita');
$mainObj->variant = (string) BFCHelper::getItem($order->NotesData, 'refid', 'rateplan');
$mainObj->category = $item->MainCategoryName;
$mainObj->brand = $item->Name;
$mainObj->price = $item->order->TotalAmount - $svcTotal;
$mainObj->quantity = 1;
//.........这里部分代码省略.........
示例12:
$order = $this->item->order;
$merchantPayments = $this->item->merchantPayments;
if (isset($this->item->merchantPayment)) {
$merchantPayment = $this->item->merchantPayment;
$paymentSystemId = $merchantPayment->PaymentSystemId;
// $paymentSystemRef = null;
$paymentSystemRef = $merchantPayment->PaymentSystemName;
$actionmode = $this->actionmode;
$hasPayed = $this->hasPayed;
//echo "<pre>";
//echo $actionmode;
//echo "</pre>";
$routeOrderPayed = JRoute::_('index.php?view=orders&actionform=login&checkMode=5&orderid=' . $order->OrderId . '&email=' . BFCHelper::getItem($order->CustomerData, 'email'));
if (COM_BOOKINGFORCONNECTOR_USEEXTERNALUPDATEORDERSYSTEM === "GPDati") {
$dateCheckin = BFCHelper::parseJsonDate($order->StartDate);
$routeOrderPayed = JRoute::_('index.php?view=orders&actionform=login&checkMode=146&externalOrderId=' . $order->ExternalId . '&customerLastname=' . BFCHelper::getItem($order->CustomerData, 'cognome') . '&checkIn=' . $dateCheckin);
}
?>
<?php
if ($actionmode == 'donation') {
?>
<?php
$routeOrderPayed = JRoute::_('index.php?view=orders&actionmode=donation');
//echo "<pre>merchantPayment:<br />";
//echo print_r($merchantPayment);
//echo "</pre>";
if (!empty($paymentSystemRef)) {
echo $this->loadTemplate('payment_' . $paymentSystemRef);
}
?>
<?php
示例13: array
?>
<?php
$resource = $result->Resource;
$merchant = $result->Merchant;
//echo ("<pre>");
//echo (print_r($merchant));
//echo ("</pre>");
// $resourceName = BFCHelper::getLanguage($resource->Name, $this->language);
$resourceName = BFCHelper::getLanguage($resource->Name, $this->language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
$addressData = $resource->AddressData;
if ($addressData == null || $addressData == '') {
$merchantAddressData = $merchant->AddressData;
//echo ("<pre>");
//echo (print_r($merchant));
//echo ("</pre>");
$addressData = sprintf("%s - %s - %s (%s)", BFCHelper::getItem($merchantAddressData, 'indirizzo'), BFCHelper::getItem($merchantAddressData, 'cap'), BFCHelper::getItem($merchantAddressData, 'comune'), BFCHelper::getItem($merchantAddressData, 'provincia'));
}
$resourceLat = $resource->XGooglePos;
$resourceLon = $resource->YGooglePos;
$showResourceMap = $resourceLat != null && $resourceLon != null;
// $route = JRoute::_('index.php?option=com_bookingforconnector&view=resource&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName));
// $routeMerchant = JRoute::_('index.php?option=com_bookingforconnector&view=merchantdetails&merchantId=' . $merchant->MerchantId . ':' . BFCHelper::getSlug($merchant->Name));
$resourceImageUrl = "/media/com_bookingfor/images/default.png";
if ($resource->ImageUrl != '') {
$resourceImageUrl = BFCHelper::getImageUrl('resources', $resource->ImageUrl, 'resource_list_default');
} elseif ($merchant->LogoUrl != '') {
$resourceImageUrl = BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'resource_list_default_logo');
}
$stay = $resource->Stay;
if ($itemId != 0) {
$route = JRoute::_($uri . '&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName) . '&Itemid=' . $itemId);
示例14: getOrderMerchantPayment
public function getOrderMerchantPayment($order)
{
$bookingTypeId = BFCHelper::getItem($order->NotesData, 'bookingTypeId');
if ($bookingTypeId != '') {
$bookingType = $this->getMerchantPaymentPaymentFromService($bookingTypeId);
return $bookingType;
}
return null;
}
示例15:
<?php
//echo "<pre>this->params";
//echo print_r($this->params);
//echo "</pre>";
$donation = $this->params['donation'];
if ($donation) {
echo $this->loadTemplate('donation');
} else {
//else no donation
$checkmode = $this->params['checkmode'];
$route = JRoute::_('index.php?view=orders&checkmode=' . $checkmode);
$order = $this->item;
$email = "";
if (!empty($order)) {
$email = BFCHelper::getItem($order->CustomerData, 'email') . "";
}
$actionform = $this->actionform;
?>
<?php
if ($order == null && $checkmode !== 0) {
?>
<?php
if ($actionform == "login") {
?>
<div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong><?php
echo JTEXT::_('COM_BOOKINGFORCONNECTOR_ORDERS_VIEW_ERROR');
?>