VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: get27 on October 13, 2012, 14:08:29 PM

Title: Styling my Product Details page
Post by: get27 on October 13, 2012, 14:08:29 PM
Hello,

I'm looking for moving my "product-description" div on the right of my image div just below the "back to category" div.
I know that the file to be modified is productdetails/tmpl/default.php  but i don't know where to put this code :

// Product Description
   if (!empty($this->product->product_desc)) {
       ?>
        <div class="product-description">
   <?php /** @todo Test if content plugins modify the product description */ ?>
       <span class="title"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span>
   <?php echo $this->product->product_desc; ?>
        </div>
   <?php
    } // Product Description END
Title: Re: Styling my Product Details page
Post by: jenkinhill on October 13, 2012, 14:22:33 PM
Assuming you are using VirtueMart 2.0.12d I would try placing the div immediately below the pdf/mail icon div, above the sort description div and give it a right float.  Just a case of trial and error.

Don't forget to do this as a template override so it does not get overwritten by the next upgrade - VM2.0.12c will be released soon.
http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Title: Re: Styling my Product Details page
Post by: get27 on October 13, 2012, 15:04:57 PM
Thanks  !

It works great