Community Add-Ons

Add file to this package
Top » Features

Options - Price Update
for osCommerce Online Merchant v2.2

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
Expand All / Collapse All
Javascript error eneko4 10 Apr 2008  

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;
}

Minor BUG ajuaristi 18 Feb 2008  
Options - Price Update Vassag0 16 Dec 2007  
Optimal preferences reneman 13 Dec 2007  
Attrib. Price Update 1.4 Vassag0 4 Nov 2007  
Attrib. Price Update 1.3 Vassag0 4 Nov 2007  
Attribute price updater 1.2 (EUR and Dollar) Vassag0 26 Oct 2007  
Attribute price updater (EUR) oschellas 4 Sep 2007  
Attribute price updater (EUR) oschellas 16 Jul 2007  
Updated for MS2 Brian N. Smith 23 Jan 2004  
Options - Price Update Kurt Budiarto 23 Aug 2003  
Options - Price Update Brian N. Smith 24 Jul 2003