<?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>
/** * 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; }
</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';