News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remove Additional Image from Product Page

Started by jaderotheram, September 06, 2012, 13:01:40 PM

Previous topic - Next topic

jaderotheram

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...



Site is 90% ready to go live so any help would be much appreciated.

ivus

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';




jaderotheram

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.

ivus


jason45

Removing such code does not help because after removing it there is no change or improvement. I need to know about the template code

jenkinhill

@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.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum