What this does:
When you have options on an item, there was not a way to see the price until you added into the cart.
With some creative javascripting, and just a little modifications of the product_info.php page, now you can see the price get auto updated!
I think I wrote the install instructions pretty simply. If you have problems, let me know!
~Brian
brian@nuonce.net
PS.
I like PHP, not Javascript. So, I am sure there are other, cleaner ways to do what I did!
Legend: 
Download

Report
A small improvement in order that mistakes do not appear of javascript
Search for:
document.getElementById("productNEWprice1").innerHTML = currencysymbol1 + myTotalPrice + currencysymbol2;
Replace:
if(document.getElementById("productNEWprice1")!=null){
document.getElementById("productNEWprice1").innerHTML = currencysymbol1 + myTotalPrice + currencysymbol2;
}
---
Una pequeña mejora para que no aparezcan errores de javascript
Buscad:
document.getElementById("productNEWprice1").innerHTML = currencysymbol1 + myTotalPrice + currencysymbol2;
Reemplazad:
if(document.getElementById("productNEWprice1")!=null){
document.getElementById("productNEWprice1").innerHTML = currencysymbol1 + myTotalPrice + currencysymbol2;
}
There is a little bug:
Search for
Code:
tep_get_tax_rate($product_info_values['products_tax_class_id'])
It should be
Code
tep_get_tax_rate($product_info['products_tax_class_id'])
--------
Para el precio normal y los atributos, estaba cogiendo bien el precio, pero para los de oferta, cogía el precio base + el precio del atributo con IVA por eso salía un precio tan raro, que no coincidía con nada.
Lo suyo es que cobre (precio oferta + IVA ) + (precio atributo + IVA)
Hay un error en el archivo: Buscad
Código:
tep_get_tax_rate($product_info_values['products_tax_class_id'])
Tendría que ser
Código:
tep_get_tax_rate($product_info['products_tax_class_id'])
La variable $product_info_values no existe en el sistema. El que hizo la contribución se equivocó al teclear la línea y no está corregido.
Some minor bugs in special prices fixed.
-----------------------------
Algunos fallos corregidos en la actualización de precios de oferta.
Here the Optimal preferences, so that with the currency "dollar" ($), and also with "EURO" (€) is working properly. For differing preferences appear otherwise partly zero values!
----------------------------------------------
German/Deutsch:
Hier die optimalen einstellungen, so dass es mit der Währung "Doller" ($) und auch mit "EURO" (€) einwandfrei funktioniert. Bei abweichenden einstellungen, erscheinen sonst teilweise Nullwerte!!!
-Now modification works only with the trailing EUR (you can use euro sing (€)) and dollar sign ($).
-Now works with the decimal point as "." o as "," (spanish format number)
-Work with special price. Show changes in new and old price.
-Updated to work with the current RC1 version of osCommerce
-Workaround for Javascript disabled clients ( standard output in that case )
-Include english and spanish instalation.
Full Version.
---------------------------------------
-Ahora funciona con Euros y Dolares. Puedes usar tanto la abreviatura EUR como el símbolo de Euros (€)
-Puedes usar el punto para decimales "." o la coma "," (formato de numero español)
-Funciona con precios de oferta. Mostrando el precio actualizado tanto el nuevo como en el viejo precio.
-Actualizado a la versión RC1
-Muestra precio standar en navegadores sin java.
-Incluye archivo de instalación en ingles y castellano.
Versión completa.
Same features of version 1.2, but now show special price where this is available.
Mantiene las mismas funciones que la versión 1.3, pero ahora mantiene el precio de oferta donde exista.
-Now modification works only with the trailing EUR (you can use euro sing (€)) and dollar sign ($).
-Now works with the decimal point as "." o as "," (spanish format number)
-Updated to work with the current RC1 version of osCommerce
-Workaround for Javascript disabled clients ( standard output in that case )
-Include english and spanish instalation.
Full Version.
---------------------------------------
-Ahora funciona con Euros y Dolares. Puedes usar tanto la abreviatura EUR como el símbolo de Euros (€)
-Puedes usar el punto para decimales "." o la coma "," (formato de numero español)
-Actualizado a la versión RC1
-Muestra precio standar en navegadores sin java.
Versión completa.
-This modification works only with the trailing EUR instead of the leading dollar sign.
-Updated to work with the current RC1 version of osCommerce
-Workaround for Javascript disabled clients ( standard output in that case )
-This modification works with the trailing EUR instead of the leading dollar sign.
-Added some corrections for OSC MS2.2
-Workaround for Javascript disabled clients ( standard output in that case )
This has some updated instructions for 2.2MS2 ...
In the part of the showPrice() function below, I just switched the + and - signs around to fix a small
glitch. The glitch was that it was not adding the price to the total price in some options, but instead it
was subtracting when it was not supposed to.
if (myMathProblem == "-")
{
myTotalPrice = myTotalPrice - myAttributePrice;
} else {
myTotalPrice = myTotalPrice + myAttributePrice;
}
}
What this does:
When you have options on an item, there was not a way to see the price until you added into the cart.
With some creative javascripting, and just a little modifications of the product_info.php page, now you can see the price get auto updated!
I think I wrote the install instructions pretty simply. If you have problems, let me know!
~Brian
brian@nuonce.net
PS.
I like PHP, not Javascript. So, I am sure there are other, cleaner ways to do what I did!