?> <?php if ($show_rating) { ?> <tr class="row0"> <td> <?php echo JText::_('COM_TIENDA_AVERAGE_CUSTOMER_RATING'); ?> </td> <?php foreach ($items as $item) { ?> <td align="center" class="border-left"> <?php echo TiendaHelperProduct::getRatingImage($item->product_rating, $this); ?> </td> <?php } ?> </tr> <?php } ?> <?php if ($show_manufacturer) { ?>
<td class="dsc-value"><?php echo TiendaSelect::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_TIENDA_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_TIENDA_COMMENTS'); ?> :</td> <td class="dsc-value"><?php echo @$row->product_comments; ?> </td> </tr> </table> </div>
echo empty($review->user_name) ? empty($review->username) ? $review->user_email : $review->username : $review->user_name; ?> </span> </div> <div class="dateDiv" > <?php echo "(" . JHTML::_('date', $review->created_date, '') . ")"; if ($review->helpful_votes_total != 0) { echo sprintf(JText::_('COM_TIENDA_X_OF_X_FOUND_THIS_HELPFUL'), $review->helpful_votes, $review->helpful_votes_total); } ?> </div> <div class="customerRating"> <span> <?php echo TiendaHelperProduct::getRatingImage($review->productcomment_rating, $this); ?> </span> </div> </div> <div id="comments" class="commentsDiv"> <?php echo $review->productcomment_text; ?> </div> <?php $isFeedback = TiendaHelperProduct::isFeedbackAlready($user->id, $review->productcomment_id); $helpfuness_enable = Tienda::getInstance()->get('review_helpfulness_enable', '0'); if ($helpfuness_enable && $user->id != $review->user_id && !$isFeedback) { ?> <div id="helpful" class="commentsDiv">
function getFilters() { $filters = array(); if (!empty($this->_filter_category) && !empty($this->category_current)) { $catObj = new stdClass(); $catObj->label = JText::_('COM_TIENDA_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_TIENDA_PRICE'); $priceObj->value = TiendaHelperBase::currency($this->_filter_price_from) . ' - ' . TiendaHelperBase::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(), 'tienda_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_TIENDA_RATING'); $ratingObj->value = TiendaHelperProduct::getRatingImage((double) $this->_filter_rating) . ' ' . JText::_('COM_TIENDA_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_TIENDA_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_TIENDA_MANUFACTURER'); $brandObj->value = $this->brands[$this->_filter_manufacturer]; $brandObj->link = $this->_link . '&filter_category=' . $this->_filter_category . '&filter_manufacturer='; $filters[] = $brandObj; } } return $filters; }