Comprar un Dominio Web nunca fue tan fácil
INSTALACIÓN GRATIS de Blog Wordpress y Tienda Virtual Oscommerce o Prestashop en todos los Planes de Hosting
|
SOLUCIÓN a Oscommerce no muestra el precio pone 0
Esta es la SOLUCIÓN para la tienda de Oscommerce si no muestra el precio correcto poniendo 0 en su lugar Normalmente es porque el servidor de php se ha actualizado a una versión más reciente en la que tu tienda no es compatible Para solucionarlo busca en includes/application_top.php esto: Ahora si todavía no ves bien los precios en tu tienda te recomendaría borrar los ficheros temporales del navegador o ve a tudominio.com/?currency=eur donde tudominio.com es el nombre de tu dominio
// currency
if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) {
if (!tep_session_is_registered('currency')) tep_session_register('currency');
if (isset($HTTP_GET_VARS['currency'])) {
if (!$currency = tep_currency_exists($HTTP_GET_VARS['currency'])) $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
} else {
$currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
}
}
Y lo cambias por:
// currency
if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) {
if (!tep_session_is_registered('currency')) tep_session_register('currency');
if (isset($HTTP_GET_VARS['currency']) && $currencies->is_set($HTTP_GET_VARS['currency'])) {
$currency = $HTTP_GET_VARS['currency'];
} else {
$currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;
}
}
En cuentra en includes/functions/general.php
////
// Checks to see if the currency code exists as a currency
// TABLES: currencies
function tep_currency_exists($code) {
$code = tep_db_prepare_input($code);
$currency_code = tep_db_query("select currencies_id from " . TABLE_CURRENCIES . " where code = '" . tep_db_input($code) . "'");
if (tep_db_num_rows($currency_code)) {
return $code;
} else {
return false;
}
}
Y cambia por:
////
// Checks to see if the currency code exists as a currency
// TABLES: currencies
function tep_currency_exists($code) {
$code = tep_db_prepare_input($code);
$currency_query = tep_db_query("select code from " . TABLE_CURRENCIES . " where code = '" . tep_db_input($code) . "' limit 1");
if (tep_db_num_rows($currency_query)) {
$currency = tep_db_fetch_array($currency_query);
return $currency['code'];
} else {
return false;
}
}