product details

GK User
Thu Jan 17, 2013 9:57 am
Dear,
Is it possible to add in the "product detail view"
-a line for product lenght
-a line for product weight

iy yes, is it possible to have only for some Category ???

thank's a lot for help
User avatar
Expert Boarder

GK User
Thu Jan 17, 2013 10:22 am
Surely it is not possible to modify code only for one category, you want to add line as a simple HTML border/line ? Did you add already this custom fields for height/length ?
User avatar
Platinum Boarder

GK User
Thu Jan 17, 2013 10:41 am
I add this line in default.php

Code: Select all
    <div class="productDetails">
      <?php /** @todo Test if content plugins modify the product description */ ?>
      <h4 class="title"><?php echo Dimension ?></h4>
      <class="clear"><?php echo "Longueur:"; ?> <?php echo $this->product->product_length; ?> <class="clear"><?php echo cm ?> <br />
        <class="clear"><?php echo "Largeur:"; ?> <?php echo $this->product->product_width; ?> <class="clear"><?php echo cm ?> <br />
        <class="clear"><?php echo "Poids:"; ?> <?php echo $this->product->product_weight; ?> <class="clear"><?php echo kg ?> <br />
        <class="clear"><?php echo "Charge max:"; ?> <?php echo $this->product->product_height; ?> <class="clear"><?php echo kg ?>
   </div>


It work well but for ALL category

then, I try to copy default.php to mydefault.php and I assign to some category (it's possible to do in layaout category)
but, only default.php is available...why

bkrztuk wrote:Surely it is not possible to modify code only for one category, you want to add line as a simple HTML border/line ? Did you add already this custom fields for height/length ?
User avatar
Expert Boarder

GK User
Fri Jan 18, 2013 9:31 am
I thought you want to achieve this only via one category view, when you duplicate it is possible. More informations about overriding VirtueMart view you will surely get on VM support forum.
User avatar
Platinum Boarder


cron