News:

Support the VirtueMart project and become a member

Main Menu

Product Detail page issue

Started by Justin Holstein, June 15, 2012, 04:07:14 AM

Previous topic - Next topic

Justin Holstein

If you look at the detail page of our site using virtuemart 2 and a rocket theme template, its displaying the number one and a mail icon at the top of pages and instead of one image that is expandable, it displays the same image twice.

http://www.unitedgenetics.com.php53-26.dfw1-2.websitetestlink.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=35&virtuemart_category_id=8&Itemid=213

How do I get rid of the number 1 that is displaying and limit it so just one image is displaying and it is expandable?

thank you!

malaclypse

#1
You can disable the the email to a friend button in the backend. You can find it at configuration -> shopfront.

If you want to change the output of the detail page, it is advisable to override it, as it is not overwritten if you install an update of vm.

To do so, you have to create this folder structure in your template:
/html/com_virtuemart/productdetails

You copy the files you want to alter from your installer zip to this directory, in your case the default_images.php.
/components/com_virtuemart/views/productdetails/tmpl

Now you have to edit the file, search for the lines
<div class="main-image">
  <?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"'false"class='modal'"true); ?>
</div>


and replace it with something like
<?php
echo '<div class="floatleft">' $this->product->images[0]->displayMediaThumb('class="product-image"'true'class="modal"'truetrue) . '</div>'
?>


If you don't want additional images to show up, don't add more images or remove these lines:

// Showing The Additional Images
if (!empty($this->product->images)) {
  ...
}