No Product images please.

24.09.2013 14:03
#1
Fintan
Joomshopping forum user no avatar
Name: Fred
10.12.2011
Posts: 39
Quote
No Product images please.

I am making a site for a small restaurant with daily menus. He does not need images for each product. How can I get rid of the "no image" place holder?


Joomla: Joomla 2.5.14
JoomShopping: Joomshop 3-15

Letzte Änderung: 24.09.2013 14:03
 
24.09.2013 14:05
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: No Product images please.

Change template
http://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/forum/posts/7/3567.html?lang=en

 
24.09.2013 14:26
#3
Fintan
Joomshopping forum user no avatar
Name: Fred
10.12.2011
Posts: 39
Quote
Aw: No Product images please.

Okay I delete this from line 36 in:
components\com_jshopping\templates\default\product\product_default.php - product detail

<span id='list_product_image_middle'>
<?php if(!count($this->images)){?>
<img id = "main_image" src = "<?php print $this->image_product_path?>/<?php print $this->noimage?>" alt = "<?php print htmlspecialchars($this->product->name)?>" />
<?php }?>
<?php foreach($this->images as $k=>$image){?>
<a class="lightbox" id="main_image_full_<?php print $image->image_id?>" href="<?php print $this->image_product_path?>/<?php print $image->image_full;?>" <?php if ($k!=0){?>style="display:none"<?php }?>>
<img id = "main_image_<?php print $image->image_id?>" src = "<?php print $this->image_product_path?>/<?php print $image->image_name;?>" alt="<?php print htmlspecialchars($image->_title)?>" title="<?php print htmlspecialchars($image->_title)?>" />
<div class="text_zoom">
<img src="<?php print $this->path_to_image?>search.png" alt="zoom" /> <?php print _JSHOP_ZOOM_IMAGE?>
</div>
</a>
<?php }?>
</span>

No change.

I renamed noimage.gif. The image is gone but the alt-text stays.

 
Copyrights MAXXmarketing GmbH. All Rights Reserved