Log in

View Full Version : How to change variable value in a product by time?


almannai
03-12-2008, 04:25 PM
Hi all,


I have the following scenario.

I'm building new product that has two input box. The first has values like 1,3,4,7,...100
the second has integer values that represents hours e.g. 2hr.

These two boxes are to allow the admin to set the product options. in the plugin a variable will get one value from the first box which are separated by commas for example the value 1.

What I want is a that every time the system time elapsed by 2hr (from the second option) the variable in the plugin will get the next value in the first box which is 3 in these values(1,3,4,7,...100) and so on until it reaches the last value (100) then it will start again by the value 1.



regards,

--------------- Added 1205416186 at 1205416186 ---------------

Anybody have any hint?