Aide - Recherche - Membres - Calendrier
Version complète : [résolu]box spécials qui disparait
Forum osCommerce-fr > Les Bases d'OsCommerce MS2 > Fonctionnement
nemrod34
j'ai la box spécials qui disparait quand je consulte la fiche d'un produit

bizzare ça !
CODE
require(DIR_WS_BOXES . 'shopping_cart.php');
  require(DIR_WS_BOXES . 'whats_new.php');

  if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

  if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

  if (isset($HTTP_GET_VARS['products_id'])) {
    if (tep_session_is_registered('customer_id')) {
      $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
      $check = tep_db_fetch_array($check_query);
      if ($check['count'] > 0) {
      
      } else {
        include(DIR_WS_BOXES . 'product_notifications.php');
      }
    } else {
      include(DIR_WS_BOXES . 'product_notifications.php');
    }
  } else {
    include(DIR_WS_BOXES . 'specials.php');
  }
pacifox
Pour moi il faudrai enlever cà
CODE

  if (isset($HTTP_GET_VARS['products_id'])) {

} else{

}

ce qui donnerai ca
CODE

require(DIR_WS_BOXES . 'shopping_cart.php');
  require(DIR_WS_BOXES . 'whats_new.php');

  if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

  if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

    if (tep_session_is_registered('customer_id')) {
      $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
      $check = tep_db_fetch_array($check_query);
      if ($check['count'] > 0) {
      
      } else {
        include(DIR_WS_BOXES . 'product_notifications.php');
      }
    } else {
      include(DIR_WS_BOXES . 'product_notifications.php');
    }
    
    include(DIR_WS_BOXES . 'specials.php');
  
nemrod34
C'été bien ça merci beaucoup!
Ceci est une version "bas débit" de notre forum. Pour voir la version complète avec plus d'informations, la mise en page et les images, veuillez cliquer ici.
Invision Power Board © 2001-2014 Invision Power Services, Inc.