本文整理汇总了PHP中comquick2cartHelper::getCatName方法的典型用法代码示例。如果您正苦于以下问题:PHP comquick2cartHelper::getCatName方法的具体用法?PHP comquick2cartHelper::getCatName怎么用?PHP comquick2cartHelper::getCatName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类comquick2cartHelper
的用法示例。
在下文中一共展示了comquick2cartHelper::getCatName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
<?php
echo $edit_link;
?>
</td>
<td class="q2c_width_15 hidden-phone small">
<?php
if (!empty($store_details[$row->store_id])) {
echo $store_details[$row->store_id]['title'];
}
?>
</td>
<td class="q2c_width_15 hidden-phone small">
<?php
$catname = $comquick2cartHelper->getCatName($row->category);
echo !empty($catname) ? $catname : $row->category;
?>
</td>
<td class="q2c_width_10 nowrap center hidden-phone small">
<?php
if ($row->cdate != '0000-00-00 00:00:00') {
$cdate = date("Y-m-d", strtotime($row->cdate));
echo $cdate;
} else {
echo "-";
}
?>
</td>
示例2: getItems
/**
* Method to get a list of products.
*
* @return mixed An array of data items on success, false on failure.
*
* @since 1.6.1
*/
public function getItems()
{
$items = parent::getItems();
$comquick2cartHelper = new comquick2cartHelper();
$quick2cartBackendProductsHelper = new quick2cartBackendProductsHelper();
$store_details = $comquick2cartHelper->getAllStoreDetails();
foreach ($items as $item) {
// Get product category
$catname = $comquick2cartHelper->getCatName($item->category);
$item->category = !empty($catname) ? $catname : $item->category;
// Get store name
$item->store_name = '';
if (!empty($store_details[$item->store_id])) {
$item->store_name = $store_details[$item->store_id]['title'];
}
// Get store owner
$item->store_owner = '';
if (!empty($store_details[$item->store_id])) {
$item->store_owner = $store_details[$item->store_id]['firstname'];
}
$item->edit_link = $quick2cartBackendProductsHelper->getProductLink($item->item_id, 'editLink');
$item->parent = $quick2cartBackendProductsHelper->getProductParentName($item->item_id);
}
return $items;
}
示例3:
</div>
-->
</div>
<!--end of tabbable div -->
</div>
<?php
}
?>
<!-- END :: PROD DESCRIPTION-->
<!-- RELEATED PRODUCT FROM SAME CAT-->
<?php
if ($this->prodFromCat) {
$prodCatName = '';
if (!empty($this->itemdetail->category)) {
$prodCatName = $comquick2cartHelper->getCatName($this->itemdetail->category);
}
?>
<div class="row-fluid">
<div class="span12 well well-small">
<strong><?php
echo JText::sprintf('QTC_SIMILAR_CAT_PRODUCTS', $prodCatName);
?>
</strong>
<hr class="hr hr-condensed"/>
<?php
$random_container = 'q2c_pc_similar_products';
// We are defining pin width here itself, bcoz this will be shown on side
//$pin_width_defined = '1';