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


PHP comquick2cartHelper::getCatName方法代碼示例

本文整理匯總了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>
開發者ID:BetterBetterBetter,項目名稱:B3App,代碼行數:30,代碼來源:my.php

示例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;
 }
開發者ID:BetterBetterBetter,項目名稱:B3App,代碼行數:32,代碼來源:products.php

示例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';
開發者ID:BetterBetterBetter,項目名稱:B3App,代碼行數:31,代碼來源:default.php


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