- Posts: 71
- Thank you received: 0
Images not shown in content display module
10 years 8 months ago #232877
by bmichu
Images not shown in content display module was created by bmichu
-- url of the page with the problem -- :
www.florentia.ch/
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.1
Hi,
I have a module that displays all articles of a category. This used to work fine. However now it's not displaying the pictures anymore. The articles appear with Title and price, but no image
.
How can this be fixed? Attached the settings for the module.
Thanks
Michel
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.1
Hi,
I have a module that displays all articles of a category. This used to work fine. However now it's not displaying the pictures anymore. The articles appear with Title and price, but no image
How can this be fixed? Attached the settings for the module.
Thanks
Michel
Please Log in or Create an account to join the conversation.
10 years 8 months ago #232889
by nicolas
Replied by nicolas on topic Images not shown in content display module
Hi,
Try changing the line:
if($this->config->get('thumbnail',1)){ ?>
to:
if(true){ ?>
in the file "listing_img_title" of the view "product" via the menu Display>views.
Try changing the line:
if($this->config->get('thumbnail',1)){ ?>
to:
if(true){ ?>
in the file "listing_img_title" of the view "product" via the menu Display>views.
Please Log in or Create an account to join the conversation.
10 years 8 months ago #232923
by bmichu
Replied by bmichu on topic Images not shown in content display module
Hi,
Thanks for the reply.
Unfortunately the suggested modification has no effect.
Thanks for the reply.
Unfortunately the suggested modification has no effect.
Please Log in or Create an account to join the conversation.
10 years 8 months ago #232982
by nicolas
Replied by nicolas on topic Images not shown in content display module
Hi,
Well, All I can think of is that this comes from a modification that was made in that view file.
What code do you have in there ?
Well, All I can think of is that this comes from a modification that was made in that view file.
What code do you have in there ?
Please Log in or Create an account to join the conversation.
10 years 8 months ago #232992
by bmichu
Replied by bmichu on topic Images not shown in content display module
Hi,
To my knowledge, apart from the modification you suggested, no changes have been made to the file. You will find the code below.
Thanks
To my knowledge, apart from the modification you suggested, no changes have been made to the file. You will find the code below.
Thanks
Code:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.6.1
* @author hikashop.com
* @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$link = hikashop_contentLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway,$this->row);
if(!empty($this->row->extraData->top)) { echo implode("\r\n",$this->row->extraData->top); }
if(true){ ?>
<!-- PRODUCT IMG -->
<div style="height:<?php echo $this->image->main_thumbnail_y;?>px;text-align:center;clear:both;" class="hikashop_product_image">
<div style="position:relative;text-align:center;clear:both;width:<?php echo $this->image->main_thumbnail_x;?>px;margin: auto;" class="hikashop_product_image_subdiv">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
<?php }
$image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
$img = $this->image->getThumbnail(@$this->row->file_path, array('width' => $this->image->main_thumbnail_x, 'height' => $this->image->main_thumbnail_y), $image_options);
if($img->success) {
echo '<img class="hikashop_product_listing_image" title="'.$this->escape(@$this->row->file_description).'" alt="'.$this->escape(@$this->row->file_name).'" src="'.$img->url.'"/>';
}
$main_thumb_x = $this->image->main_thumbnail_x;
$main_thumb_y = $this->image->main_thumbnail_y;
if($this->params->get('display_badges',1)){
$this->classbadge->placeBadges($this->image, $this->row->badges, -10, 0);
}
$this->image->main_thumbnail_x = $main_thumb_x;
$this->image->main_thumbnail_y = $main_thumb_y;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</div>
</div>
<!-- EO PRODUCT IMG -->
<?php } ?>
<!-- PRODUCT PRICE -->
<?php
if($this->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();
}
?>
<!-- EO PRODUCT PRICE -->
<!-- PRODUCT NAME -->
<span class="hikashop_product_name">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>">
<?php }
echo $this->row->product_name;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</span>
<!-- EO PRODUCT NAME -->
<!-- PRODUCT CODE -->
<span class='hikashop_product_code_list'>
<?php if ($this->config->get('show_code')) { ?>
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>">
<?php }
echo $this->row->product_code;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
<?php } ?>
</span>
<!-- EO PRODUCT CODE -->
<?php if(!empty($this->row->extraData->afterProductName)) { echo implode("\r\n",$this->row->extraData->afterProductName); } ?>
<!-- PRODUCT VOTE -->
<?php
if($this->params->get('show_vote_product')){
$this->setLayout('listing_vote');
echo $this->loadTemplate();
}
?>
<!-- EO PRODUCT VOTE -->
<!-- ADD TO CART BUTTON AREA -->
<?php
if($this->params->get('add_to_cart') || $this->params->get('add_to_wishlist')){
$this->setLayout('add_to_cart_listing');
echo $this->loadTemplate();
}?>
<!-- EO ADD TO CART BUTTON AREA -->
<!-- COMPARISON AREA -->
<?php
if(JRequest::getVar('hikashop_front_end_main',0) && JRequest::getVar('task')=='listing' && $this->params->get('show_compare')) { ?>
<br/><?php
if( $this->params->get('show_compare') == 1 ) {
$js = 'setToCompareList('.$this->row->product_id.',\''.$this->escape($this->row->product_name).'\',this); return false;';
echo $this->cart->displayButton(JText::_('ADD_TO_COMPARE_LIST'),'compare',$this->params,$link,$js,'',0,1,'hikashop_compare_button');
?>
<?php } else { ?>
<input type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_<?php echo $this->row->product_id;?>" onchange="setToCompareList(<?php echo $this->row->product_id;?>,'<?php echo $this->escape($this->row->product_name); ?>',this);"><label for="hikashop_listing_chk_<?php echo $this->row->product_id;?>"><?php echo JText::_('ADD_TO_COMPARE_LIST'); ?></label>
<?php }
} ?>
<!-- EO COMPARISON AREA -->
<?php if(!empty($this->row->extraData->bottom)) { echo implode("\r\n",$this->row->extraData->bottom); } ?>
Please Log in or Create an account to join the conversation.
10 years 8 months ago #233005
by nicolas
Replied by nicolas on topic Images not shown in content display module
Hi,
Then it means that you're not using that view file because now the tag <!-- PRODUCT IMG --> should appear in the HTML of your pages and it doesn't.
So either you have some cache on your website, you're editing that view file for another template than the one you're using, or you're not using that product box layout (image and title) but another one.
Then it means that you're not using that view file because now the tag <!-- PRODUCT IMG --> should appear in the HTML of your pages and it doesn't.
So either you have some cache on your website, you're editing that view file for another template than the one you're using, or you're not using that product box layout (image and title) but another one.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #233267
by bmichu
Replied by bmichu on topic Images not shown in content display module
Of course.... I edited the wrong template :ohmy:
Pictures are shown now
Thanks
Pictures are shown now
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds