News:

Looking for documentation? Take a look on our wiki

Main Menu

Styling my Product Details page

Started by get27, October 13, 2012, 14:08:29 PM

Previous topic - Next topic

get27

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
Joomla 2.5.7    Vm 2.0.20

jenkinhill

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

get27

Joomla 2.5.7    Vm 2.0.20