Back to top

Autore Topic: PHP in un articolo  (Letto 1077 volte)

Offline maegras

  • Esploratore
  • **
  • Post: 114
  • Sesso: Maschio
    • Mostra profilo
PHP in un articolo
« il: 22 Apr 2009, 18:29:38 »
Salve ragazzi,

Vorrei, nel sito che sto tirando su per il negozio dei miei, create un articolo chiamato offerte, dove sia visibile l'elenco dei featured product di VM come nella home del componente stesso...

per fare ciò ho trovato il codice che genera l'elenco dei Featured appunto, che sarebbe

Codice: [Seleziona]
<?php if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>
<?php
defined
'vmToolTipCalled') or define('vmToolTipCalled'1);
echo 
"<br />".$vendor_store_desc."<br /><br /><hr /><hr />";
echo 
"<br /><h4>".$VM_LANG->_('PHPSHOP_CATEGORIES')."</h4>";
echo 
$categories?>

<div class="vmRecent"><?php echo $recent_products?>
</div>
<?php
//Show Featured Products
if( $this->get_cfg'showFeatured')) {-->Va nel DIV che sta sopra
    
/* featuredproducts(random, no_of_products,category_based) no_of_products 0 = all else numeric amount
    edit featuredproduct.tpl.php to edit layout */
    
echo $ps_product->featuredProducts(true,10,false);}

// Show Latest Products
//if( $this->get_cfg( 'showlatest', 1 )) {
    /* latestproducts(random, no_of_products,month_based,category_based) no_of_products 0 = all else numeric amount
    edit latestproduct.tpl.php to edit layout */
    //ps_product::latestProducts(true,10,false,false);}
?>

la parte con show featured appunto...

Sapete consigliarmi su come fare? o darmi qualche indicazione alternativa?

grazie a tutti

 



Web Design Bolzano Kreatif