?> <?php } else { ?> <?php echo JText::_('COM_CITRUSCART_PRICE'); ?> : <?php echo CitruscartHelperBase::currency($item->product_price); ?> <?php } ?> <br/> <?php echo CitruscartHelperProduct::getRatingImage($item->product_rating); ?> <br/> <?php if (!empty($this->onDisplayCartItem) && !empty($this->onDisplayCartItem[$i])) { ?> <div class='onDisplayCartItem_wrapper_<?php echo $i; ?> '> <?php echo $this->onDisplayCartItem[$i]; ?> </div> <?php
?> </div> </td> <td style="text-align: left;"> <a href="<?php echo $item->link; ?> "> <?php echo JText::_($item->user_name); ?> </a> </td> <td style="text-align: center;"> <?php echo CitruscartHelperProduct::getRatingImage($item->productcomment_rating, $this); ?> </td> <td style="text-align: center;"> <a href="<?php echo $item->link; ?> "> <?php echo JText::_($item->helpful_votes); ?> </a> ( <a href="<?php echo $item->link; ?>
function getFilters() { $filters = array(); if (!empty($this->_filter_category) && !empty($this->category_current)) { $catObj = new stdClass(); $catObj->label = JText::_('COM_CITRUSCART_CATEGORY'); $catObj->value = $this->category_current->category_name; $catObj->link = $this->_link . '&filter_category='; $filters[] = $catObj; } if (!empty($this->_filter_price_from) || !empty($this->_filter_price_to)) { $priceObj = new stdClass(); $priceObj->label = JText::_('COM_CITRUSCART_PRICE'); $priceObj->value = CitruscartHelperBase::currency($this->_filter_price_from) . ' - ' . CitruscartHelperBase::currency($this->_filter_price_to); $priceObj->link = $this->_link . '&filter_category=' . $this->_filter_category . '&filter_price_from=0&filter_price_to='; $filters[] = $priceObj; } if (!empty($this->_filter_attribute_set)) { $options = explode(',', $this->_filter_option_set); $session = JFactory::getSession(); $saveOptions = $session->get('options', array(), 'Citruscart_layered_nav'); $trackOpts = array(); $link = ''; $newOPT = array(); $listPAO = array(); $listPA = array(); if (isset($saveOptions[$this->_filter_category])) { foreach ($saveOptions[$this->_filter_category] as $saveOption) { if (in_array($saveOption->productattributeoption_id, $options)) { $listPAO[] = $saveOption->productattributeoption_id; $listPA[] = $saveOption->productattribute_id; $newOPT[$saveOption->productattributeoption_name]->istopa[] = $saveOption->productattribute_id; $newOPT[$saveOption->productattributeoption_name]->istopao[] = $saveOption->productattributeoption_id; } } } foreach ($options as $option) { if (empty($this->_options[$option])) { continue; } $combination = $this->_options[$option]->attributename . '::' . $this->_options[$option]->productattributeoption_name; if (!in_array($combination, $trackOpts)) { $trackOpts[] = $combination; $attriObj = new stdClass(); $attriObj->label = $this->_options[$option]->attributename; $attriObj->value = $this->_options[$option]->productattributeoption_name; //create option set $option_set = array_diff($listPAO, $newOPT[$attriObj->value]->istopao); //create attribute set $attribute_set = array_diff($listPA, $newOPT[$attriObj->value]->istopa); $attriObj->link = $this->_link . '&filter_category=' . $this->_filter_category . '&filter_attribute_set=' . implode(',', $attribute_set) . '&filter_option_set=' . implode(',', $option_set); $filters[] = $attriObj; } } } if ($this->_filter_rating && $this->_params->get('filter_rating')) { $ratingObj = new stdClass(); $ratingObj->label = JText::_('COM_CITRUSCART_RATING'); $ratingObj->value = CitruscartHelperProduct::getRatingImage((double) $this->_filter_rating) . ' ' . JText::_('COM_CITRUSCART_AND_UP'); $ratingObj->link = $this->_link . '&filter_category=' . $this->_filter_category . '&filter_rating=0'; $filters[] = $ratingObj; } if ($this->_multi_mode) { if (!empty($this->_filter_manufacturer_set)) { $brandSet = explode(',', $this->_filter_manufacturer_set); foreach ($brandSet as $brand) { $brandObj = new stdClass(); $brandObj->label = JText::_('COM_CITRUSCART_MANUFACTURER'); $brandObj->value = $this->brands[$brand]; $brandObj->link = $this->_link . '&filter_category=' . $this->_filter_category . '&filter_manufacturer_set=' . implode(',', array_diff($brandSet, array($brand))); $filters[] = $brandObj; } } } else { if (!empty($this->_filter_manufacturer)) { $brandObj = new stdClass(); $brandObj->label = JText::_('COM_CITRUSCART_MANUFACTURER'); $brandObj->value = $this->brands[$this->_filter_manufacturer]; $brandObj->link = $this->_link . '&filter_category=' . $this->_filter_category . '&filter_manufacturer='; $filters[] = $brandObj; } } return $filters; }
<td class="dsc-value"><?php echo CitruscartSelect::btbooleanlist('product_enabled', '', $row->product_enabled); ?> </td> </tr> </table> </div> <div style="float: left; margin: 5px;"> <table class="table table-striped table-bordered"> <tr> <td style="width: 100px; text-align: right;" class="dsc-key"><?php echo JText::_('COM_CITRUSCART_OVERALL_RATING'); ?> :</td> <td class="dsc-value"><?php echo $helper_product->getRatingImage($row->product_rating, $this); ?> </td> </tr> <tr> <td style="width: 100px; text-align: right;" class="dsc-key"><?php echo JText::_('COM_CITRUSCART_COMMENTS'); ?> :</td> <td class="dsc-value"><?php echo $row->product_comments; ?> </td> </tr> </table> </div>