vm Show Product Weights and Dimensions in Product

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Dec 03, 2013 5:01 pm
Reply with quote
Report this post
I have buy this template. i try to insert Product Weights and Dimensions in Product but i can show it.
all site (admin and site)is in greek language.

i search in the internet and i add this code in

default.php from /components/com_virtuemart/views/productdetails/tmpl
with no luck....

Code: Select all
<?php //Product Weight
   if (!(($this->product->product_weight)==0)) { ?>
               <span class="product-fields-title" >
               <?php echo JText::_('COM_VIRTUEMART_PRODUCT_WEIGHT') ?>
               </span>
               <?php echo $this->product->product_weight ?>
               </br>
            <?php } ?>
   
   <?php //Product Length
   if (!(($this->product->product_length)==0)) { ?>
               
               <?php echo JText::_('COM_VIRTUEMART_PRODUCT_LENGTH') ?>
               <strong>
               <?php echo floor($this->product->product_length) ?></strong>
               </br>
            <?php } ?>
   
   <?php //Product Width
   if (!(($this->product->product_width)==0)) { ?>
               
               <?php echo JText::_('COM_VIRTUEMART_PRODUCT_WIDTH') ?>
               <strong>
               <?php echo floor($this->product->product_width) ?></strong>
               </br>
            <?php } ?>
   
   <?php //Product Height
   if (!(($this->product->product_height)==0)) { ?>
               <span class="product-fields-title" >
               <?php echo JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT') ?>
               </span>
               <?php echo floor($this->product->product_height) ?>
               </br>
            <?php } ?>

this is the url.

http://erkoilida.gr/index.php?option=co ... Itemid=739

thanks in advance
User avatar
Fresh Boarder

teitbite
Wed Dec 04, 2013 10:00 am
Reply with quote
Report this post
Hi

There is a template override to this exact file, so the file You are adding this code to is not being used by joomla at all. Please try adding the same code as instructed in the post You've found on the internet, but do this in file: /html/com_virtuemart/productdetails/default.php
User avatar
Moderator

GK User
Wed Dec 04, 2013 11:09 am
Reply with quote
Report this post
thanks for the answer
i have another issue
in this url http://erkoilida.gr/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=230&virtuemart_category_id=14&Itemid=739

display next to cart button 2 other black i suppose to count products
these buttons display only in the products which have child....
can i disable or show +/-?


and one more ....when i have link ask question (i disabled ) its empty this happend because is in greek language?

thanks a lot
User avatar
Fresh Boarder

teitbite
Thu Dec 05, 2013 9:19 am
Reply with quote
Report this post
Hi

To have + and - visible You need to create 2 new images with this signs and use a css like this:

Code: Select all
.quantity-controls.quantity-plus {
background-image: url('../images/plus.png');
background-position: center center;
}

.quantity-controls.quantity-minus {
background-image: url('../images/minus.png');
background-position: center center;
}


If You want to remove them use this code:

Code: Select all
.quantity-controls.quantity-plus,
.quantity-controls.quantity-minus {
display: none;
}


About the Ask a question link I would need to see it first to tell anything more. Can You please enable it and let me know?
User avatar
Moderator

GK User
Thu Dec 05, 2013 11:00 am
Reply with quote
Report this post
ok thank you
i will try it.
the Ask a question i will fixed it...
thanks in advance
User avatar
Fresh Boarder

teitbite
Fri Dec 06, 2013 5:20 am
Reply with quote
Report this post
Hi

Ok. Please let me know if You will need help with "Ask a question" button.
User avatar
Moderator


cron