element->characteristics); if (!empty ($this->element->characteristics)) { ?>
params->get('characteristic_display')=='list'){ if(!empty($this->element->main->characteristics)){ $display=array('images'=>false,'variant_name'=>false,'product_description'=>false,'prices'=>false); $main_images = ''; if(!empty($this->element->main->images)){ foreach($this->element->main->images as $image){ $main_images.='|'.$image->file_path; } } $main_prices = ''; if(!empty($this->element->main->prices)){ foreach($this->element->main->prices as $price){ $main_prices.='|'.$price->price_value.'_'.$price->price_currency_id; } } foreach ($this->element->variants as $variant) { foreach($display as $k => $v){ if(isset($variant->$k) && !is_array($variant->$k)){ if (!empty($variant->$k)){ $display[$k] = true; } } } $variant_images = ''; if(!empty($this->element->main->images)){ if(!empty($variant->images)){ foreach($variant->images as $image){ $variant_images.='|'.$image->file_path; } } } if($variant_images!=$main_images) $display['images'] = true; $variant_prices = ''; if(!empty($this->element->main->prices)){ foreach($variant->prices as $price){ $variant_prices.='|'.$price->price_value.'_'.$price->price_currency_id; } } if($variant_prices!=$main_prices) $display['prices'] = true; } $columns=0; ?> config->get('thumbnail') && $display['images']){ $columns++; ?> config->get('show_code')) { $columns++; ?> element->main->characteristics as $characteristic){ $columns++; ?> params->get('show_price','-1')=='-1'){ $this->params->set('show_price',$this->config->get('show_price')); //} //if($this->params->get('show_price') && $display['prices']){ $columns++; ?> params->get('catalogue')){ $columns++; ?> generateVariantData($this->element); foreach ($this->element->variants as $variant) { if(isset($variant->map)) continue; //do not display variants dynamically generated because not in the database if(!$this->config->get('show_out_of_stock',1)){ if($variant->product_quantity==0) continue; } if(!$variant->product_published) continue; $this->row = & $variant; ?> config->get('thumbnail') && $display['images']){ ?> config->get('show_code')) { ?> element->main->characteristics as $characteristic){ ?> params->get('show_price') && $display['prices']){ ?> params->get('catalogue')){ ?>
characteristic_value; ?>
images)) { $image = reset($variant->images); $width = $this->config->get('thumbnail_x'); $height = $this->config->get('thumbnail_y'); $this->image->checkSize($width,$height,$image); foreach($variant->images as $image){ ?>
image->display($image->file_path,true,$image->file_name,'', '', $width, $height); ?>
variant_name; ?> product_code; ?> values)){ foreach($characteristic->values as $k => $value){ foreach($variant->characteristics as $variantCharacteristic){ if($variantCharacteristic->characteristic_id==$value->characteristic_id){ echo $variantCharacteristic->characteristic_value; break 2; } } } } ?> #i','',$variant->product_description)); ?> params->set('from_module',1); $this->setLayout('listing_price'); echo $this->loadTemplate(); //$this->params->set('from_module',0); ?>
formName = 'hikashop_product_form_'.$this->row->product_id.'_'.$this->params->get('main_div_name'); $this->ajax = 'return hikashopModifyQuantity(\'' . $this->row->product_id . '\',field,1' . $this->formName . ',\'cart\');'; $this->setLayout('quantity'); echo $this->loadTemplate(); if($this->config->get('redirect_url_after_add_cart','stay_if_cart')=='ask_user'){ ?>
characteristic->displayFE($this->element, $this->params); } ?>