Greetings!
I was wondering if someone would either know or might be able to point me in the right direction. I have scoured the internet, and this site, and can't seem to find any examples of setting the time for an inventoried item against the time of the storefront. Here is my problem: I currently can set a storefront to have a time based on where the storefront is located which is cross referenced by time zones ie. eastern, central, ect. What I would like to do now is do the same thing with my inventory so say I have a bicycle listed and want it only to be available for purchase from 12 noon until 3pm so it will start to be shown at 12 noon and stop being shown at 3pm. How would I achieve this by referencing the storefront time and not the server time as this wouldn't accurately reflect the storefront time ie. plus or minus server time depending on time zone loacation?
Any recommendations at all are greatly appreciated.
Justin
Set inventory item time by referencing storefront time
Moderator: General Moderators
-
ndjustin20
- Forum Commoner
- Posts: 31
- Joined: Wed Sep 28, 2005 8:25 am
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Set inventory item time by referencing storefront time
If i understand you correctly you could create an array of different time zones - server time plus/minus the difference and use the array values as comparison against storefront.
-
ndjustin20
- Forum Commoner
- Posts: 31
- Joined: Wed Sep 28, 2005 8:25 am
Re: Set inventory item time by referencing storefront time
Currently I have it so I can set the storefront time to whatever time zone is selected and it is plus or minus central this is what the server time zone is. What I am wondering is how would I then add an item to the store and have it start at a certain time and stop at a certain time comparing that to the storefront time and not the server time?