Back to top

Autore Topic: Modificare Prodotti in offerta  (Letto 895 volte)

Offline frullino

  • Nuovo arrivato
  • *
  • Post: 5
  • Sesso: Maschio
    • Mostra profilo
Modificare Prodotti in offerta
« il: 06 Lug 2012, 18:56:38 »
Qualcuno sa dirmi perchè continua a metterli in verticale anzichè in orizzontale?
Le ho provate tutte.
Potete vedere qui l'effetto: http://www.sweetart.it/shop/vmchk/product-search.html?keyword=sangallo

e qui il codice che sto modificando per farli mettere in orizzontale in una griglia 3x3

file: featuredProducts.tpl.php

Codice: [Seleziona]
<?php if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 

$iCol 3;
//Number of featured products to show per row
$featured_per_row 3;
//Set the cell width
$cellwidth 210;

if( empty( 
$featured_products )) {
    return; 
// Do nothing, if there are no Featured!
}
echo 
"<h3>".$VM_LANG->_('VM_FEATURED_PRODUCT')."</h3>";
foreach( 
$featured_products as $featured ) {
    
?>

       <div class="related">
    <div class="module" style="width:<?php echo $cellwidth ?>px; height:auto;">           
    <div style="width:<?php echo $cellwidth ?>px; height:auto;" ><div><div><br>
         <center>
         
         <a title="<?php echo $featured["product_name"?>" href="<?php $sess->purl(URL."index.php?option=com_virtuemart&amp;page=shop.product_details&amp;flypage=".$featured["flypage"]."&amp;product_id=".$featured["product_id"]) ?>">
            <h4><?php echo $featured["product_name"?></h4></a>
            <?php echo $featured['product_price'?><br />
            <?php
            
if ( $featured["product_thumb"] ) { ?>

                <a title="<?php echo $featured["product_name"?>" href="<?php $sess->purl(URL."index.php?option=com_virtuemart&amp;page=shop.product_details&amp;flypage=".$featured["flypage"]."&amp;product_id=".$featured["product_id"]) ?>">
                <?php echo ps_product::image_tag$featured["product_thumb"], " border=\"0\" alt=\"".$featured["product_name"]."\"");
                
?>
</a><br /><br/>
            <?php
            
}?>

            <?php //echo $featured['product_s_desc'] ?>
           
            <?php echo $featured['form_addtocart'
            
?>

           
            </center><br />
    </div></div></div></div></div>
    <?php
    
// Do we need to close the current row now?
    
if ($iCol == $featured_per_row) { // If the number of products per row has been reached
        
echo "<br style=\"clear:both;\" />\n";
        
$iCol 1;
    }
    
}

?>

<br style="clear:both;" />


Grazie in anticipo

 



Web Design Bolzano Kreatif