Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/06/2010, 20:34
viajeaperu
 
Fecha de Ingreso: marzo-2010
Mensajes: 57
Antigüedad: 14 años, 8 meses
Puntos: 1
Respuesta: ayuda con visualizacion de SPPC

esto fue lo que agregue y remplace
Código:
catalog/index.php
Line 4
**AFTER**
$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $
**ADD**
adapted for Separate Pricing per Customer 2007/06/24
-----------------------

Line 13 [14]
**AFTER**
require('includes/application_top.php');

**ADD**
// BOF Separate Pricing Per Customer
  if (isset($_SESSION['sppc_customer_group_id']) && $_SESSION['sppc_customer_group_id'] != '0') {
  $customer_group_id = $_SESSION['sppc_customer_group_id'];
  } else {
   $customer_group_id = '0';
  }
// EOF Separate Pricing Per Customer

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

Line 142-144 [150-152]
**AFTER**
while (list($key, $value) = each($define_list)) {
      if ($value > 0) $column_list[] = $key;
    }

**ADD**
// BOF Separate Pricing Per Customer
// this will build the table with specials prices for the retail group or update it if needed
// this function should have been added to includes/functions/database.php
   if ($customer_group_id == '0') {
   tep_db_check_age_specials_retail_table();
   }
   $status_product_prices_table = false;
   $status_need_to_get_prices = false;

   // find out if sorting by price has been requested
   if ( (isset($HTTP_GET_VARS['sort'])) && (ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) && (substr($HTTP_GET_VARS['sort'], 0, 1) <= sizeof($column_list)) && $customer_group_id != '0' ){
    $_sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
    if ($column_list[$_sort_col-1] == 'PRODUCT_LIST_PRICE') {
      $status_need_to_get_prices = true;
      }
   }

   if ($status_need_to_get_prices == true && $customer_group_id != '0') {
   $product_prices_table = TABLE_PRODUCTS_GROUP_PRICES.$customer_group_id;
   // the table with product prices for a particular customer group is re-built only a number of times per hour
   // (setting in /includes/database_tables.php called MAXIMUM_DELAY_UPDATE_PG_PRICES_TABLE, in minutes)
   // to trigger the update the next function is called (new function that should have been
   // added to includes/functions/database.php)
   tep_db_check_age_products_group_prices_cg_table($customer_group_id);
   $status_product_prices_table = true;

   } // end if ($status_need_to_get_prices == true && $customer_group_id != '0')
// EOF Separate Pricing Per Customer