Novembre 22, 2017, 12:15:23 am *
Benvenuto, Visitatore. Per favore, effettua il login o registrati.

Login con username, password e lunghezza della sessione
News: SMF - Just Installed!
 
   Home   Help Ricerca Download Utenti Login Registrati  
Pagine: [1]
  Stampa  
Autore Topic: Lista Prodotti  (Letto 2808 volte)
0 Utenti e 1 Visitatore stanno guardando questo topic.
mardavikia
Newbie
*
Offline Offline

Posts: 15


Email
« il: Settembre 25, 2008, 01:45:24 pm »

Ciao a tutti

Primo post per me Smiley

Fino ad ora sono riuscito a risolvere tutto grazie al tasto search del forum Tongue

Ma ora non so come muovermi, vorrei sapere se fosse possibile impostare il listato prodotti come nell'immagine allegata

se si quale pagina devo andare a modificare?

Grazie

P.S.

Poi se me lo volete fare voi sono anche piu' contento Cheesy


Loggato
patrecord
Administrator
Membro Master
*****
Offline Offline

Posts: 3469


stefano_mer@hotmail.com
Email
« Risposta #1 il: Settembre 25, 2008, 07:58:45 pm »

s...includes/modules/products_listing.php
Loggato

 Stefano
mardavikia
Newbie
*
Offline Offline

Posts: 15


Email
« Risposta #2 il: Settembre 26, 2008, 10:34:53 am »

ok ho aperto il file ma sono rimasto  Idiot

devo andare ad agire sul php visto che le uniche parti in html non cambiano nulla.

mh vediamo se cancellando e rimettendo parti di codice riesco a capirci qualche cosa Cheesy

Grazie Smiley
Loggato
patrecord
Administrator
Membro Master
*****
Offline Offline

Posts: 3469


stefano_mer@hotmail.com
Email
« Risposta #3 il: Settembre 26, 2008, 11:15:42 am »

no.no.. proprio sul codice html che devi intervenire. Su quello e eventualmente sul css;) il php non lo devi praticamente toccare
Loggato

 Stefano
mardavikia
Newbie
*
Offline Offline

Posts: 15


Email
« Risposta #4 il: Settembre 26, 2008, 09:37:09 pm »

si ma da quello che ho visto l'html sembra modificare solamente le informazioni sul numero di prodotti visualizzati in basso, magari me lo rivedo meglio  Idiot
Loggato
mardavikia
Newbie
*
Offline Offline

Posts: 15


Email
« Risposta #5 il: Ottobre 03, 2008, 05:17:05 pm »

riesumo il thread perch propio nn riesco a capire dove mettere le mani.

questo la pagina di product_listening

Codice:
<?php
/*
  $Id: product_listing.php,v 1.44 2003/06/09 22:49:59 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  
$listing_split = new splitPageResults($listing_sqlMAX_DISPLAY_SEARCH_RESULTS'p.products_id');

  if ( (
$listing_split->number_of_rows 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
    <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE ' ' $listing_split->display_links(MAX_DISPLAY_PAGE_LINKStep_get_all_get_params(array('page''info''x''y'))); ?></td>
  </tr>
</table>
<?php
  
}

  
$list_box_contents = array();

  for (
$col=0$n=sizeof($column_list); $col<$n$col++) {
    switch (
$column_list[$col]) {
      case 
'PRODUCT_LIST_MODEL':
        
$lc_text TABLE_HEADING_MODEL;
        
$lc_align '';
        break;
      case 
'PRODUCT_LIST_NAME':
        
$lc_text TABLE_HEADING_PRODUCTS;
        
$lc_align '';
        break;
      case 
'PRODUCT_LIST_MANUFACTURER':
        
$lc_text TABLE_HEADING_MANUFACTURER;
        
$lc_align '';
        break;
      case 
'PRODUCT_LIST_PRICE':
        
$lc_text TABLE_HEADING_PRICE;
        
$lc_align 'right';
        break;
      case 
'PRODUCT_LIST_QUANTITY':
        
$lc_text TABLE_HEADING_QUANTITY;
        
$lc_align 'right';
        break;
      case 
'PRODUCT_LIST_WEIGHT':
        
$lc_text TABLE_HEADING_WEIGHT;
        
$lc_align 'right';
        break;
      case 
'PRODUCT_LIST_IMAGE':
        
$lc_text TABLE_HEADING_IMAGE;
        
$lc_align 'center';
        break;
      case 
'PRODUCT_LIST_BUY_NOW':
        
$lc_text TABLE_HEADING_BUY_NOW;
        
$lc_align 'center';
        break;
    }

    if ( (
$column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
      
$lc_text tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1$lc_text);
    }

    
$list_box_contents[0][] = array('align' => $lc_align,
                                    
'params' => 'class="productListing-heading"',
                                    
'text' => '&nbsp;' $lc_text '&nbsp;');
  }

  if (
$listing_split->number_of_rows 0) {
    
$rows 0;
    
$listing_query tep_db_query($listing_split->sql_query);
    while (
$listing tep_db_fetch_array($listing_query)) {
      
$rows++;

      if ((
$rows/2) == floor($rows/2)) {
        
$list_box_contents[] = array('params' => 'class="productListing-even"');
      } else {
        
$list_box_contents[] = array('params' => 'class="productListing-odd"');
      }

      
$cur_row sizeof($list_box_contents) - 1;

      for (
$col=0$n=sizeof($column_list); $col<$n$col++) {
        
$lc_align '';

        switch (
$column_list[$col]) {
          case 
'PRODUCT_LIST_MODEL':
            
$lc_align '';
            
$lc_text '&nbsp;' $listing['products_model'] . '&nbsp;';
            break;
          case 
'PRODUCT_LIST_NAME':
            
$lc_align '';
            if (isset(
$HTTP_GET_VARS['manufacturers_id'])) {
              
$lc_text '<a href="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '">' $listing['products_name'] . '</a>';
            } else {
              
$lc_text '&nbsp;<a href="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '">' $listing['products_name'] . '</a>&nbsp;';
            }
            break;
          case 
'PRODUCT_LIST_MANUFACTURER':
            
$lc_align '';
            
$lc_text '&nbsp;<a href="' tep_href_link(FILENAME_DEFAULT'manufacturers_id=' $listing['manufacturers_id']) . '">' $listing['manufacturers_name'] . '</a>&nbsp;';
            break;
          case 
'PRODUCT_LIST_PRICE':
            
$lc_align 'right';
    
//TotalB2B start
    $listing['products_price'] = tep_xppp_getproductprice($listing['products_id']);
            
//TotalB2B end

//TotalB2B start
    if ($new_price tep_get_products_special_price($listing['products_id'])) {
              
$listing['specials_new_products_price'] = $new_price;
  $query_special_prices_hide tep_db_query("select configuration_value from " TABLE_CONFIGURATION " WHERE configuration_key = 'SPECIAL_PRICES_HIDE'");
              
$query_special_prices_hide_result tep_db_fetch_array($query_special_prices_hide); 
              if (
$query_special_prices_hide_result['configuration_value'] == 'true') {
    $lc_text '&nbsp;&nbsp;<span class="productSpecialPrice">' $currencies->display_price_nodiscount($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>&nbsp;';
          } else {
    $lc_text '&nbsp;<s>' .  $currencies->display_price($listing['products_id'], $listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' $currencies->display_price_nodiscount($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>&nbsp;';
          }
//TotalB2B end
              
} else {
              
$lc_text '&nbsp;' $currencies->display_price($listing['products_id'], $listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '&nbsp;';
            }
            break;
          case 
'PRODUCT_LIST_QUANTITY':
            
$lc_align 'right';
            
$lc_text '&nbsp;' $listing['products_quantity'] . '&nbsp;';
            break;
          case 
'PRODUCT_LIST_WEIGHT':
            
$lc_align 'right';
            
$lc_text '&nbsp;' $listing['products_weight'] . '&nbsp;';
            break;
          case 
'PRODUCT_LIST_IMAGE':
            
$lc_align 'center';
            if (isset(
$HTTP_GET_VARS['manufacturers_id'])) {
              
$lc_text '<a href="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '">' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '</a>';
            } else {
              
$lc_text '&nbsp;<a href="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '">' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '</a>&nbsp;';
            }
            break;
          case 
'PRODUCT_LIST_BUY_NOW':
            
$lc_align 'center';
        if (
tep_has_product_attributes($listing['products_id'])) {
          
$lc_text TEXT_HAVE_PRODUCTS;
 } else {
           
$lc_text tep_draw_form('buy_now' $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' $listing['products_id']), 'POST') . TEXT_QTY tep_draw_input_field('list_quantity''1''SIZE=2 maxlength=2') .'   'tep_image_submit('button_buy_now.gif'IMAGE_BUTTON_BUY_NOW) . '</form>&nbsp;';
            }            
break;
        }

        
$list_box_contents[$cur_row][] = array('align' => $lc_align,
                                               
'params' => 'class="productListing-data"',
                                               
'text'  => $lc_text);
      }
    }

    new 
productListingBox($list_box_contents);
  } else {
    
$list_box_contents = array();

    
$list_box_contents[0] = array('params' => 'class="productListing-odd"');
    
$list_box_contents[0][] = array('params' => 'class="productListing-data"',
                                   
'text' => TEXT_NO_PRODUCTS);

    new 
productListingBox($list_box_contents);
  }

  if ( (
$listing_split->number_of_rows 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
    <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE ' ' $listing_split->display_links(MAX_DISPLAY_PAGE_LINKStep_get_all_get_params(array('page''info''x''y'))); ?></td>
  </tr>
</table>
<?php
  
}
?>



ma tranne quelle due parti di html sopra e sotto il resto tutto php
Loggato
Pagine: [1]
  Stampa  
 
Salta a:  

Powered by MySQL Powered by PHP Oscomtemplate | Powered by SMF 1.1.15.
© 2005, Simple Machines. All Rights Reserved.
Traduzione Italiana a cura di SMItalia

Powered by Enplin.it
XHTML 1.0 Valido! CSS Valido!