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_name;?>
product_code)){ ?>
product_code;?>
params->get('show_price','-1')=='-1'){
$config =& hikashop_config();
$this->params->set('show_price',$config->get('show_price'));
}
if ($this->params->get('show_price')) {
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
?>
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 '
';
}
?>
row = & $variant;
if(empty($this->formName)) {
$this->formName = ',0';
if (!$this->config->get('ajax_add_to_cart', 1)) {
$this->formName = ',\'hikashop_product_form\'';
}
}
$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this->row->product_id . '\',field,1' . $this->formName . ',\'cart\'); } else { return false; }';
$this->setLayout('quantity');
echo $this->loadTemplate();
?>
element->main->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_description)){ ?>
#i','',$variant->product_description));?>
config->get('weight_display', 0)) {
if(!empty($variant->product_weight) && bccomp($variant->product_weight,0,3)){ ?>
product_weight,'0'),',.').' '.JText::_($variant->product_weight_unit); ?>
config->get('dimensions_display', 0)) {
if (!empty ($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)){ ?>
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);
}
}
?>