本文整理汇总了PHP中shopFunctions::getAvailabilityIconUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP shopFunctions::getAvailabilityIconUrl方法的具体用法?PHP shopFunctions::getAvailabilityIconUrl怎么用?PHP shopFunctions::getAvailabilityIconUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shopFunctions
的用法示例。
在下文中一共展示了shopFunctions::getAvailabilityIconUrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($tpl = null)
{
if (!class_exists('VmImage')) {
require VMPATH_ADMIN . DS . 'helpers' . DS . 'image.php';
}
if (!class_exists('VmHTML')) {
require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
}
$model = tmsModel::getModel();
$usermodel = tmsModel::getModel('user');
JToolBarHelper::title(tsmText::_('com_tsmart_CONFIG'), 'head vm_config_48');
$this->addStandardEditViewCommands();
$this->config = tsmConfig::loadConfig();
if (!empty($this->config->_params)) {
unset($this->config->_params['pdf_invoice']);
// parameter remove and replaced by inv_os
}
$this->userparams = JComponentHelper::getParams('com_users');
$this->jTemplateList = ShopFunctions::renderTemplateList(tsmText::_('com_tsmart_ADMIN_CFG_JOOMLA_TEMPLATE_DEFAULT'));
$this->vmLayoutList = $model->getLayoutList('tsmart');
$this->cartLayoutList = $model->getLayoutList('cart', array('padded.php', 'perror.php'));
$this->categoryLayoutList = $model->getLayoutList('category');
$this->productLayoutList = $model->getLayoutList('productdetails');
$this->productsFieldList = $model->getFieldList('products');
$this->noimagelist = $model->getNoImageList();
$this->orderStatusModel = tmsModel::getModel('orderstatus');
$this->os_Options = $this->osWoP_Options = $this->osDel_Options = $this->orderStatusModel->getOrderStatusNames();
$emptyOption = JHtml::_('select.option', -1, tsmText::_('com_tsmart_NONE'), 'order_status_code', 'order_status_name');
array_unshift($this->os_Options, $emptyOption);
unset($this->osWoP_Options['P']);
array_unshift($this->osWoP_Options, $emptyOption);
$deldate_inv = JHtml::_('select.option', 'm', tsmText::_('com_tsmart_DELDATE_INV'), 'order_status_code', 'order_status_name');
unset($this->osDel_Options['P']);
array_unshift($this->osDel_Options, $deldate_inv);
array_unshift($this->osDel_Options, $emptyOption);
//vmdebug('my $this->os_Options',$this->osWoP_Options);
$this->currConverterList = $model->getCurrencyConverterList();
$this->activeLanguages = $model->getActiveLanguages(tsmConfig::get('active_languages'));
$this->orderByFieldsProduct = $model->getProductFilterFields('browse_orderby_fields');
tmsModel::getModel('category');
foreach (tsmartModelCategory::$_validOrderingFields as $key => $field) {
if ($field == 'c.category_shared') {
continue;
}
$fieldWithoutPrefix = $field;
$dotps = strrpos($fieldWithoutPrefix, '.');
if ($dotps !== false) {
$prefix = substr($field, 0, $dotps + 1);
$fieldWithoutPrefix = substr($field, $dotps + 1);
}
$text = tsmText::_('com_tsmart_' . strtoupper(str_replace(array(',', ' '), array('_', ''), $fieldWithoutPrefix)));
$orderByFieldsCat[] = JHtml::_('select.option', $field, $text);
}
$this->orderByFieldsCat = $orderByFieldsCat;
$this->searchFields = $model->getProductFilterFields('browse_search_fields');
$this->aclGroups = $usermodel->getAclGroupIndentedTree();
if (!class_exists('VmTemplate')) {
require VMPATH_SITE . DS . 'helpers' . DS . 'vmtemplate.php';
}
$this->vmtemplate = VmTemplate::loadVmTemplateStyle();
$this->imagePath = shopFunctions::getAvailabilityIconUrl($this->vmtemplate);
$this->listShipment = $this->listIt('shipment');
$this->listPayment = $this->listIt('payment');
shopFunctions::checkSafePath();
$this->checkTCPDFinstalled();
$this->checkVmUserVendor();
//$this -> checkClientIP();
parent::display($tpl);
}
示例2: display
function display($tpl = null) {
// Get the task
$task = vRequest::getCmd('task',$this->getLayout());
$this->assignRef('task', $task);
// Load helpers
if (!class_exists('CurrencyDisplay'))
require(VMPATH_ADMIN . DS . 'helpers' . DS . 'currencydisplay.php');
if (!class_exists('VmHTML'))
require(VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php');
if (!class_exists('VmImage'))
require(VMPATH_ADMIN . DS . 'helpers' . DS . 'image.php');
$model = VmModel::getModel();
// Handle any publish/unpublish
switch ($task) {
case 'add':
case 'edit':
//this was in the controller for the edit tasks, we need this for the access by FE
//$this->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'views'.DS.'product'.DS.'tmpl');
VmConfig::loadJLang('com_virtuemart_orders',TRUE);
VmConfig::loadJLang('com_virtuemart_shoppers',TRUE);
$virtuemart_product_id = vRequest::getInt('virtuemart_product_id');
if(is_array($virtuemart_product_id) && count($virtuemart_product_id) > 0){
$virtuemart_product_id = (int)$virtuemart_product_id[0];
} else {
$virtuemart_product_id = (int)$virtuemart_product_id;
}
$product = $model->getProductSingle($virtuemart_product_id,false);
//$user = JFactory::getUser();
$superVendor = VmConfig::isSuperVendor();
if( $superVendor !=1 and $superVendor!=$product->virtuemart_vendor_id){
JFactory::getApplication()->redirect( 'index.php?option=com_virtuemart', vmText::_('JERROR_ALERTNOAUTHOR'), 'error');
}
if(!empty($product->product_parent_id)){
$product_parent= $model->getProductSingle($product->product_parent_id,false);
}
$customfields = VmModel::getModel ('Customfields');
$product->allIds[] = $product->virtuemart_product_id;
if(!empty($product->product_parent_id)) $product->allIds[] = $product->product_parent_id;
$product->customfields = $customfields->getCustomEmbeddedProductCustomFields ($product->allIds);
//vmdebug('my customfields',$product->customfields);
// Get the category tree
if (isset($product->categories)) $this->category_tree = ShopFunctions::categoryListTree($product->categories);
else $this->category_tree = ShopFunctions::categoryListTree();
//Fallback for categories inherited by parent to correctly calculate the prices
if(empty($product->categories) and !empty($product_parent->categories)){
$product->categories = $product_parent->categories;
}
//Get the shoppergoup list - Cleanshooter Custom Shopper Visibility
if (!isset($product->shoppergroups)) $product->shoppergroups = 0;
$this->shoppergroupList = ShopFunctions::renderShopperGroupList($product->shoppergroups);
//$this->assignRef('shoppergroupList', $shoppergroupList);
// Load the product price
if(!class_exists('calculationHelper')) require(VMPATH_ADMIN.DS.'helpers'.DS.'calculationh.php');
$product_childIds = $model->getProductChildIds($virtuemart_product_id);
$product_childs = array();
$childs = 0;
$maxChilds = 50;
foreach($product_childIds as $id){
if($childs++>$maxChilds) break;
$product_childs[] = $model->getProductSingle($id,false);
}
$this->product_childs = $product_childs;
if(!class_exists('VirtueMartModelConfig')) require(VMPATH_ADMIN .'/models/config.php');
$productLayouts = VirtueMartModelConfig::getLayoutList('productdetails');
$this->productLayouts = $productLayouts;
// Load Images
$model->addImages($product);
if(!class_exists('VmTemplate')) require(VMPATH_SITE.DS.'helpers'.DS.'vmtemplate.php');
$vmtemplate = VmTemplate::loadVmTemplateStyle();
$this->imagePath = shopFunctions::getAvailabilityIconUrl($vmtemplate);
// Load the vendors
$vendor_model = VmModel::getModel('vendor');
if(Vmconfig::get('multix','none')!=='none'){
$lists['vendors'] = Shopfunctions::renderVendorList($product->virtuemart_vendor_id);
}
// Load the currencies
//.........这里部分代码省略.........