當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ShopFunctions::getTaxByID方法代碼示例

本文整理匯總了PHP中ShopFunctions::getTaxByID方法的典型用法代碼示例。如果您正苦於以下問題:PHP ShopFunctions::getTaxByID方法的具體用法?PHP ShopFunctions::getTaxByID怎麽用?PHP ShopFunctions::getTaxByID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ShopFunctions的用法示例。


在下文中一共展示了ShopFunctions::getTaxByID方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getOrderShipmentHtml

 function getOrderShipmentHtml($virtuemart_order_id)
 {
     $db = JFactory::getDBO();
     $q = 'SELECT * FROM `' . $this->_tablename . '` ' . 'WHERE `virtuemart_order_id` = ' . $virtuemart_order_id;
     $db->setQuery($q);
     if (!($method = $db->loadObject())) {
         vmWarn(500, $q . " " . $db->getErrorMsg());
         return '';
     }
     if (!class_exists('CurrencyDisplay')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php';
     }
     $currency = CurrencyDisplay::getInstance();
     $tax = ShopFunctions::getTaxByID($method->tax_id);
     $taxDisplay = is_array($tax) ? $tax['calc_value'] . ' ' . $tax['calc_value_mathop'] : $method->tax_id;
     $taxDisplay = $taxDisplay == -1 ? JText::_('COM_VIRTUEMART_PRODUCT_TAX_NONE') : $taxDisplay;
     //geting selected parcel
     $parcels = $this->_quote();
     $title = $parcels[$method->selected_parcel]['title'];
     $html = '<table class="adminlist">' . "\n";
     $html .= $this->getHtmlHeaderBE();
     $html .= $this->getHtmlRowBE('POST24_SM', 'Omniva');
     $html .= $this->getHtmlRowBE('POST24_SELECTED_PARCEL', $title);
     $html .= $this->getHtmlRowBE('POST24_TOPHONE', $method->phone);
     $html .= '</table>' . "\n";
     return $html;
 }
開發者ID:jflash,項目名稱:moodulid25,代碼行數:27,代碼來源:post24.php

示例2: getOrderShipmentHtml

 /**
  * @param $virtuemart_order_id
  * @return string
  * @author zasilkovna
  */
 function getOrderShipmentHtml($virtuemart_order_id)
 {
     $db = JFactory::getDBO();
     $q = 'SELECT * FROM `' . $this->_tablename . '` ' . 'WHERE `virtuemart_order_id` = ' . $virtuemart_order_id;
     $db->setQuery($q);
     if (!($shipinfo = $db->loadObject())) {
         vmWarn(500, $q . " " . $db->getErrorMsg());
         return '';
     }
     if (!class_exists('CurrencyDisplay')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php';
     }
     $currency = CurrencyDisplay::getInstance();
     $tax = ShopFunctions::getTaxByID($shipinfo->tax_id);
     $taxDisplay = is_array($tax) ? $tax['calc_value'] . ' ' . $tax['calc_value_mathop'] : $shipinfo->tax_id;
     $taxDisplay = $taxDisplay == -1 ? JText::_('COM_VIRTUEMART_PRODUCT_TAX_NONE') : $taxDisplay;
     $html = '<table class="adminlist">' . "\n";
     $html .= $this->getHtmlHeaderBE();
     $html .= $this->getHtmlRowBE('WEIGHT_COUNTRIES_SHIPPING_NAME', $shipinfo->shipment_name);
     $html .= $this->getHtmlRowBE('BRANCH', $shipinfo->branch_name_street);
     $html .= $this->getHtmlRowBE('CURRENCY', $shipinfo->branch_currency);
     $html .= '</table>' . "\n";
     return $html;
 }
開發者ID:aldegtyarev,項目名稱:stelsvelo,代碼行數:29,代碼來源:ulozenka.php

示例3: getOrderShipmentHtml

	/**
	 * @param $virtuemart_order_id
	 * @return string
	 */
	function getOrderShipmentHtml ($virtuemart_order_id) {

		$db = JFactory::getDBO ();
		$q = 'SELECT * FROM `' . $this->_tablename . '` '
			. 'WHERE `virtuemart_order_id` = ' . $virtuemart_order_id;
		$db->setQuery ($q);
		if (!($shipinfo = $db->loadObject ())) {
			vmWarn (500, $q . " " . $db->getErrorMsg ());
			return '';
		}

		if (!class_exists ('CurrencyDisplay')) {
			require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php');
		}

		$currency = CurrencyDisplay::getInstance ();
		$tax = ShopFunctions::getTaxByID ($shipinfo->tax_id);
		$taxDisplay = is_array ($tax) ? $tax['calc_value'] . ' ' . $tax['calc_value_mathop'] : $shipinfo->tax_id;
		$taxDisplay = ($taxDisplay == -1) ? vmText::_ ('COM_VIRTUEMART_PRODUCT_TAX_NONE') : $taxDisplay;

		$html = '<table class="adminlist table">' . "\n";
		$html .= $this->getHtmlHeaderBE ();
		$html .= $this->getHtmlRowBE ('WEIGHT_COUNTRIES_SHIPPING_NAME', $shipinfo->shipment_name);
		$html .= $this->getHtmlRowBE ('WEIGHT_COUNTRIES_WEIGHT', $shipinfo->order_weight . ' ' . ShopFunctions::renderWeightUnit ($shipinfo->shipment_weight_unit));
		$html .= $this->getHtmlRowBE ('WEIGHT_COUNTRIES_COST', $currency->priceDisplay ($shipinfo->shipment_cost));
		$html .= $this->getHtmlRowBE ('WEIGHT_COUNTRIES_PACKAGE_FEE', $currency->priceDisplay ($shipinfo->shipment_package_fee));
		$html .= $this->getHtmlRowBE ('WEIGHT_COUNTRIES_TAX', $taxDisplay);
		$html .= '</table>' . "\n";

		return $html;
	}
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:35,代碼來源:weight_countries.php


注:本文中的ShopFunctions::getTaxByID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。