Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

my website has certain working hours


jcisml

Recommended Posts

is it possible to have store working during certain working hours,

during non working hours i just want to disable the checkout, customers can still add to basket, but can't checkout.

 

this is a local night business, so I need to get it done.

any suggestions are appreciated!!!

Link to comment
Share on other sites

is it possible to have store working during certain working hours,

during non working hours i just want to disable the checkout, customers can still add to basket, but can't checkout...

This is interesting! Online shops always claim to be 24/7 and brand it as an advantage. Whats the point of letting people add products but cant checkout? You could write some scripts to check time and to 'shut down' the shop during the time you define, and leave a msg on home page saying shop closed for lunch :) or something like that. You would be the first in the whole world of ecommerce!:)

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

This is interesting! Online shops always claim to be 24/7 and brand it as an advantage. Whats the point of letting people add products but cant checkout? You could write some scripts to check time and to 'shut down' the shop during the time you define, and leave a msg on home page saying shop closed for lunch :) or something like that. You would be the first in the whole of ecommerce!:)

 

Ken

 

agree that this is totally bizarre.

you could create 2 checkout_confirmation files

call one checkout_confirmation.open and the other checkout_confirmation.closed

then write a cron to rename the files with their php extension at the particular times.

 

this would be the quick and dirty answer imo.

 

david

Link to comment
Share on other sites

You do know that you don't need to be there to actually use a cash register.....don't you? :-"

 

Any new orders your site takes while you are closed, will happily sit and wait for you, until you open again. That, in essence, is the whole beauty of e-commerce.

Link to comment
Share on other sites

You do know that you don't need to be there to actually use a cash register.....don't you? :-"

 

Any new orders your site takes while you are closed, will happily sit and wait for you, until you open again. That, in essence, is the whole beauty of e-commerce.

 

 

perhaps it's a pizza delivery business ?????? :-)

Link to comment
Share on other sites

A simple way would be to do a redirect to a page saying "online operations are closed for the day". We use the redirects when we are performing maintance.. I guess you could use it for this as well. You'd just have to turn it on and off or make a cron to do it at a certain time daily.

Link to comment
Share on other sites

agree that this is totally bizarre.

you could create 2 checkout_confirmation files

call one checkout_confirmation.open and the other checkout_confirmation.closed

then write a cron to rename the files with their php extension at the particular times.

 

this would be the quick and dirty answer imo.

 

david

 

yes, it is a food delivery business during night hours, so i don't want people ordering food during nonworking hours.

 

so, how do i write this cron? first time hear this term.

thanks a lot!

Link to comment
Share on other sites

well add some script that checks for the time on server.

Add the difference of your local time to that of server with this logic place code that will check for the time and hide add to cart buttons or checkout buttons.

 

Thanks,

Satish

 

is it possible to have store working during certain working hours,

during non working hours i just want to disable the checkout, customers can still add to basket, but can't checkout.

 

this is a local night business, so I need to get it done.

any suggestions are appreciated!!!

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

It makes no sense to me whatsoever. You just need to give people a msg on screen telling them food would not be delivered until such time but you are welcome to order in advance.... just like people book a table even a few days before they go there to have their meal. and its in fact very good to know in advance how many people have already placed their orders so that you could make the preparation. Oh, no sounds like I am running that business. shut up now I must.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

yes, it is a food delivery business during night hours, so i don't want people ordering food during nonworking hours.

 

so, how do i write this cron? first time hear this term.

thanks a lot!

 

a cron is a linux application that is used to kick off a script or process :

http://en.wikipedia.org/wiki/Cron

 

You could write a small script to rename the file. The cron would run when you tell it to.

 

david

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...