I´m looking a mod developer for this job:
1 - Modify/create an existing 'countdown' script for use in a CubeCart store (easily).
2 - Implement the new admin setting "EXPIRATION" to control the countdown.
ALL THE PRODUCTS WILL SHOW A COUNTDOWN, and when this countdown is finished the product DISSAPEARS/OR IS NOT VISIBLE so the visitors/clients cannot buy it.
3 - Implement changes to admin add/edit product so our final client can set a countdown price and countdown expire time (d m Y hh:mm).
The countdown will show: “XX days - XX:YY:ZZ” and the counter must be running.
CODE
<html>
<head>
<script type="text/javascript" language="JavaScript">
//año, poner un mes menos, dia, horas, minutos
var futuro = new Date (2011,05,5,19,45);
var actualiza = 1000;
function faltan(){
var ahora = new Date();
var faltan = futuro - ahora;
if (faltan > 0){
var segundos = Math.round(faltan/1000);
var minutos = Math.floor(segundos/60);
var segundos_s = segundos%60;
var horas = Math.floor(minutos/60);
var minutos_s = minutos%60;
var dias = Math.floor(horas/24);
var horas_s = horas%24;
document.formulario.reloj.value= dias + " dias : " + horas_s + " horas : " +
+minutos_s + " minutos : " + segundos_s + " segundos";
setTimeout("faltan()",actualiza);
}
else {
document.formulario.reloj.value= "La oferta ya no está disponible, lo siento.";
return true;
}
}
</script>
</head>
<body onLoad="faltan()" bgcolor="#0B111A">
<form name="formulario" style="font-family: Corbel; padding: 0">
<p align="center"><font face="Corbel">
<input type="text" name="reloj" value="" size="55" style="border-style:solid; border-width:0; padding:0; text-align : center; font-family:Corbel; color:#FF9900; background-color:#0B111A">
</font></p>
</form>
</body>
</html>
<head>
<script type="text/javascript" language="JavaScript">
//año, poner un mes menos, dia, horas, minutos
var futuro = new Date (2011,05,5,19,45);
var actualiza = 1000;
function faltan(){
var ahora = new Date();
var faltan = futuro - ahora;
if (faltan > 0){
var segundos = Math.round(faltan/1000);
var minutos = Math.floor(segundos/60);
var segundos_s = segundos%60;
var horas = Math.floor(minutos/60);
var minutos_s = minutos%60;
var dias = Math.floor(horas/24);
var horas_s = horas%24;
document.formulario.reloj.value= dias + " dias : " + horas_s + " horas : " +
+minutos_s + " minutos : " + segundos_s + " segundos";
setTimeout("faltan()",actualiza);
}
else {
document.formulario.reloj.value= "La oferta ya no está disponible, lo siento.";
return true;
}
}
</script>
</head>
<body onLoad="faltan()" bgcolor="#0B111A">
<form name="formulario" style="font-family: Corbel; padding: 0">
<p align="center"><font face="Corbel">
<input type="text" name="reloj" value="" size="55" style="border-style:solid; border-width:0; padding:0; text-align : center; font-family:Corbel; color:#FF9900; background-color:#0B111A">
</font></p>
</form>
</body>
</html>
The idea is something like the megaupload method to show the files after 45 secs, but we need to show on every product page a counter (home/cat view/detailed view) as well as the countdown must be seteable from the Admin Panel.
Thanks in advance... I will heard offers.

