VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jaderotheram on September 06, 2012, 13:01:40 PM

Title: Remove Additional Image from Product Page
Post by: jaderotheram on September 06, 2012, 13:01:40 PM
I have read about 4 different Posts on this forum relating to this and followed various steps to correct this, however it hasn't changed a thing on my site. I am using Virtuemart 2.

My Code at components/virtuemart/views/productdetails.tmpl/default_images.php ...

Quote<?php
/**
*
* Show the product details page
*
* @package   VirtueMart
* @subpackage
* @author Max Milbers, Valerie Isaksen

* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default_images.php 5406 2012-02-09 12:22:33Z alatak $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

// Product Main Image
if (!empty($this->product->images[0])) {
    ?>
    <div class="main-image">
   <?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"', false, "class='modal'", true); ?>
    </div>
<?php } // Product Main Image END ?>

This is what it looks like...

(http://s13.postimage.org/k4fey7mtz/Additional_Image.jpg) (http://postimage.org/)

Site is 90% ready to go live so any help would be much appreciated.
Title: Re: Remove Additional Image from Product Page
Post by: ivus on September 06, 2012, 15:48:07 PM
Are you sure it's not the additional image code?

if you comment out the code... does it appear?



echo 'IMAGE START ->';
/*
// Product Main Image
if (!empty($this->product->images[0])) {
    ?>
    <div class="main-image">
   <?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"'false"class='modal'"true); ?>
    </div>
<?php // Product Main Image END ?>
*/
echo '<- IMAGE END';



Title: Re: Remove Additional Image from Product Page
Post by: jaderotheram on September 06, 2012, 16:44:34 PM
I removed that Code also and it made no difference whatsoever. I'm thinking it may be a template override but I have no clue where to look for that Code.
Title: Re: Remove Additional Image from Product Page
Post by: ivus on September 06, 2012, 17:43:14 PM
??? that piece of information would have been handy right at the beginning.

http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core (http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core)
http://docs.joomla.org/Understanding_Output_Overrides (http://docs.joomla.org/Understanding_Output_Overrides)

Title: Re: Remove Additional Image from Product Page
Post by: jason45 on September 07, 2012, 09:54:47 AM
Removing such code does not help because after removing it there is no change or improvement. I need to know about the template code
Title: Re: Remove Additional Image from Product Page
Post by: jenkinhill on September 07, 2012, 10:15:18 AM
@jaderotheram  That additional image was removed from the VM productdetails view in a version around 2.0.8e - we are now at 2.0.10 so i'd guess that either you have an older VM2 version or that you have an old override in place.