element)) { $app->enqueueMessage(JText::_('PRODUCT_NOT_FOUND')); } else { if(!empty($this->links->previous)) echo ""; if(!empty($this->links->next)) echo ""; 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; } } } } $this->setLayout($this->productlayout); echo $this->loadTemplate(); ?> config->get('product_contact',0); ?> element->variants)){ 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)){ if($price->price_min_quantity<=1){ if($this->params->get('price_with_tax')){ $priceUsed = $price->price_value_with_tax; } else { $priceUsed = $price->price_value; } } } } } echo ' '; } } else { $perfs = $this->config->get('variant_increase_perf',1); if($perfs && !empty($this->element->main)){ $required_fields = array(); foreach (get_object_vars($this->element->main) as $name=>$value) { if(!is_array($name)&&!is_object($name)){ $required = false; foreach ($this->element->variants as $variant) { if(!empty($variant->$name) && (!is_numeric($variant->$name) || $variant->$name>0)){ $required = true; break; } } if($required){ foreach ($this->element->variants as $k=>$variant) { if(empty($variant->$name) || (is_numeric($variant->$name) && $variant->$name==0.0)){ if($name=='product_quantity' && $variant->$name==0){ continue; } $this->element->variants[$k]->$name=$this->element->main->$name; } } } } } } if(!isset($this->element->main->images))$this->element->main->images=null; $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)){ ?> 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)){ if($price->price_min_quantity<=1){ if($this->params->get('price_with_tax')){ $priceUsed = $price->price_value_with_tax; }else{ $priceUsed = $price->price_value; } } } } } echo ' '; } ?> 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); ?>
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->element->product_id && isset ($this->element->main->product_name)){ $product_id = $this->element->main->product_id; $product_name = $this->element->main->product_name; }else{ $product_id = $this->element->product_id; $product_name = $this->element->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->element->product_id && isset ($this->element->main->product_name)) $product_id = $this->element->main->product_id; else $product_id = $this->element->product_id; echo jomcomment($product_id, 'com_hikashop'); } } ?>