element)){
$app =& JFactory::getApplication();
$app->enqueueMessage(JText::_('PRODUCT_NOT_FOUND'));
}else{
?>
element->variants)){
if(hikashop_level(1) && !empty($this->element->options)){
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{
foreach($this->element->variants as $variant){
$variant_name = array();
if(!empty($variant->characteristics)){
foreach($variant->characteristics as $k => $ch){
$variant_name[]=$ch->characteristic_id;
}
}
$variant_name = implode('_',$variant_name);
if(!empty($variant->images)){
?>
images);
if(!$this->config->get('thumbnail')){
echo '
';
}else{
$style='';
if(count($variant->images)>1){
$height = $this->config->get('thumbnail_y');
if(!empty($height)){
$style=' style="height:'.($height+5).'px;"';
}
} ?>
>
image->display($image->file_path,true,$image->file_name,'id="hikashop_main_image_'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_'.$variant_name.'_link"'); ?>
images)>1){
?>
images as $image){
echo $this->image->display($image->file_path,'hikashop_main_image_'.$variant_name,$image->file_name,'class="hikashop_child_image"');
}
}
?>
product_name;?>
product_code;?>
params->get('show_price')){
$this->row =& $variant;
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
?>
element->options)){
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 '
';
}
}
}
}
}
?>
row =& $variant;
$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\''.$this->row->product_id.'\',field,1'.$form.'); } else { return false; }';
$this->setLayout('quantity');
echo $this->loadTemplate();
?>
product_contact)))){
echo $this->cart->displayButton(JText::_('CONTACT_US_FOR_INFO'),'contact_us',@$this->params,hikashop_completeLink('product&task=contact&cid='.$variant->product_id),'window.location=\''.hikashop_completeLink('product&task=contact&cid='.$variant->product_id).'\';return false;');
}
?>
product_weight) && bccomp($variant->product_weight,0,3)){ ?>
product_weight,'0'),',.').' '.JText::_($variant->product_weight_unit); ?>
config->get('dimensions_display',0)){
if(isset($variant->product_width) && bccomp($variant->product_width,0,3)){ ?>
product_width,'0').' '.JText::_($variant->product_dimension_unit); ?>
product_length) && bccomp($variant->product_length,0,3)){ ?>
product_length,'0').' '.JText::_($variant->product_dimension_unit); ?>
product_height) && bccomp($variant->product_height,0,3)){ ?>
product_height,'0').' '.JText::_($variant->product_dimension_unit); ?>
product_url)){
echo JText::sprintf('MANUFACTURER_URL',''.$variant->product_url.'');
} ?>
fields)){?>
fieldsClass->prefix = '';
foreach($this->fields as $fieldName => $oneExtraField) {
if(!empty($variant->$fieldName)){ ?>
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);
}
}
?>