News:

Looking for documentation? Take a look on our wiki

Main Menu

Module: VirtueMart Products [mod_virtuemart_product]

Started by robytotem, May 03, 2013, 19:28:19 PM

Previous topic - Next topic

robytotem

Hello everyone, I'd like a small hand to change the display of the product and the + and - button to increase the amount of products: I can not find the point where change ...

In attachment I put a picture of how it is (red) and how I wish it were (green) ...



[attachment cleanup by admin]

FrankA

Look up the basics of over-rides... then you need to put a copy of the file you want to override under your templates. After that is it a case of changing the code to suit your need. At least for the centering of the image.

Files you need should be in components/com_virtuemart/views/productdetails/tmpl
override versions of the files go into TEMPLATE/html/com_virtuemart/productdetails

Or appropriate directories for categories.

robytotem

Quote from: FrankA on May 03, 2013, 20:23:54 PM
Look up the basics of over-rides... then you need to put a copy of the file you want to override under your templates. After that is it a case of changing the code to suit your need. At least for the centering of the image.

Files you need should be in components/com_virtuemart/views/productdetails/tmpl
override versions of the files go into TEMPLATE/html/com_virtuemart/productdetails

Or appropriate directories for categories.

thanks...

same problem

http://forum.virtuemart.net/index.php?topic=113401.0

thanks

robytotem

I have resolved in this mode:

mod_virtuemart_product

file helper.php:

         <span class="quantity-controls">

         <!-- Start Hack <input type="button" style="background-image:url(/modules/mod_virtuemart_product/plus.jpg);"> -->
         
          <input type="button" class="quantity-controls quantity-plus" style="background-image:url(/modules/mod_virtuemart_product/plus.jpg); width:25px;height:25px;margin-top:5px;" title="Aggiungi Quantita&grave;" alt="Aggiungi Quantita&grave;" />   
         
         <input type="button" class="quantity-controls quantity-minus" style="background-image:url(/modules/mod_virtuemart_product/minus.jpg); width:25px;height:25px;margin-top:5px;" title="Diminuisci Quantita&grave;" alt="Diminuisci Quantita&grave;" />   
         
         <!-- End Hack <input type="button" class="quantity-controls quantity-minus"/> -->

         </span>

-----------------------------------

file default.php:

<div class="spacer">
               <?php
               if (!empty($product->images[0])) {
                  $image = $product->images[0]->displayMediaThumb ('class="featuredProductImage" border="0" style="margin-left:40px;margin-top:30px;"', FALSE);
               } else {
                  $image = '';

[attachment cleanup by admin]