canonical)) { $doc = JFactory::getDocument(); $doc->addCustomTag(''); } $classes = array(); if(!empty($this->categories)){ foreach($this->categories as $category){ $classes[] = 'hikashop_product_of_category_'.$category->category_id; } } ?>
element)) { $app->enqueueMessage(JText::_('PRODUCT_NOT_FOUND')); hikashop_setPageTitle(JText::_('PRODUCT_NOT_FOUND')); echo '
'; return; } if(!empty($this->links->previous)) echo ""; if(!empty($this->links->next)) echo ""; ?>
variant_name =''; if(!empty($this->element->variants)&&$this->config->get('variant_increase_perf',1)&&!empty($this->element->main)){ foreach (get_object_vars($this->element->main) as $name=>$value) { if(!is_array($name)&&!is_object($name)){ if(empty($this->element->$name)){ if($name=='product_quantity' && $this->element->$name==0){ continue; } $this->element->$name=$this->element->main->$name; continue; } } if($this->params->get('characteristic_display')=='list' && !empty ($this->element->characteristics) && !empty($this->element->main->characteristics)){ $this->element->$name = $this->element->main->$name; } } } $this->setLayout($this->productlayout); echo $this->loadTemplate(); if($this->productlayout != 'show_tabular') { ?>
params->get('characteristic_display') == 'list') { $this->setLayout('show_block_characteristic'); echo $this->loadTemplate(); } if($this->productlayout != 'show_tabular') { $config =& hikashop_config(); if($config->get('enable_status_vote') == "comment" || $config->get('enable_status_vote') == "two" || $config->get('enable_status_vote') == "both" ) { ?>
params->get('show_vote_product')){ $js = ''; if(isset($this->element->main)){ $product_id = $this->element->main->product_id; }else{ $product_id = $this->element->product_id; } $this->params->set('product_id',$product_id); echo hikashop_getLayout('vote', 'listing', $this->params, $js); ?>
element->main)){ $product_id = $this->element->main->product_id; }else{ $product_id = $this->element->product_id; } $this->params->set('product_id',$product_id); echo hikashop_getLayout('vote', 'form', $this->params, $js); } ?>
config->get('product_contact',0); if(empty($this->element->variants) || $this->params->get('characteristic_display') == 'list') { if(hikashop_level(1) && !empty($this->element->options)) { $priceUsed = 0; if(!empty($this->row->prices)){ foreach($this->row->prices as $price){ if(!isset($price->price_min_quantity) || !empty($this->cart_product_price) || $price->price_min_quantity > 1) continue; if($this->params->get('price_with_tax')){ $priceUsed = $price->price_value_with_tax; } else { $priceUsed = $price->price_value; } } } ?> generateVariantData($this->element); $main_images =& $this->element->main->images; foreach($this->element->variants as $variant) { $this->row = & $variant; $variant_name = array (); if(!empty($variant->characteristics)) { foreach($variant->characteristics as $k => $ch) { $variant_name[] = $ch->characteristic_id; } } $this->element->images =& $main_images; if(!empty($variant->images)) $this->element->images =& $variant->images; $variant_name = implode('_', $variant_name); $this->variant_name = '_' . $variant_name; $this->setLayout('show_block_img'); echo $this->loadTemplate(); if(!empty($variant->product_name)) { ?> config->get('show_code') && !empty($variant->product_code)) { ?> element->options)) { $priceUsed = 0; if(!empty($this->row->prices)) { foreach($this->row->prices as $price) { if(isset($price->price_min_quantity) && empty($this->cart_product_price) && $price->price_min_quantity <= 1) $priceUsed = ($this->params->get('price_with_tax')) ? $price->price_value_with_tax : $price->price_value; } } ?> product_description)) { ?> config->get('weight_display', 0)) { if(!empty($variant->product_weight) && bccomp($variant->product_weight,0,3)){ ?> config->get('dimensions_display', 0)) { if(!empty ($variant->product_width) && bccomp($variant->product_width, 0, 3)) { ?> product_length) && bccomp($variant->product_length,0,3)){ ?> product_height) && bccomp($variant->product_height,0,3)){ ?> product_url)) { ?> fields)) { ?> files)) { $skip = true; foreach ($variant->files as $file) { if ($file->file_free_download) $skip = false; } if (!$skip) { ?> params->set('show_price_weight', 0); $this->product = $this->element; ?>
modules) && is_array($this->modules)) { jimport('joomla.application.module.helper'); foreach($this->modules as $module) { echo JModuleHelper::renderModule($module); } } ?>
get('comments_feature') == 'jcomments') { $comments = HIKASHOP_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php'; if(file_exists($comments)) { require_once ($comments); if(hikashop_getCID('product_id') != $this->product->product_id && isset($this->product->main->product_name)) { $product_id = $this->product->main->product_id; $product_name = $this->product->main->product_name; } else { $product_id = $this->product->product_id; $product_name = $this->product->product_name; } echo JComments::showComments($product_id, 'com_hikashop', $product_name); } } elseif($config->get('comments_feature') == 'jomcomment') { $comments = HIKASHOP_ROOT . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php'; if(file_exists($comments)) { require_once ($comments); if(hikashop_getCID('product_id') != $this->product->product_id && isset($this->product->main->product_name)) $product_id = $this->product->main->product_id; else $product_id = $this->product->product_id; echo jomcomment($product_id, 'com_hikashop'); } } ?>