Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Restricting users


pool54

Recommended Posts

hello friends!!

I m having a store and i want to restricting users to purchase when store is off!! My store timings are 18:00-24:00 GMT... How can i do that.. but i dont want to down my shop.. Just want to restrict them purchasing... ANy contribution?? PLz help

 

Thankz in advance!!

Link to comment
Share on other sites

I am not aware of a contribution that will do that but I can't understand why you would want to? You are restricting your customer base to a very small portion of the web. One of the main attractions of online shopping is that anyone can do it at any time of the day. If someone orders at 17:00, then the order will be setting there when you are ready at 18:00. You may want to rethink this.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I would use the class 'cart'

page 'catalog/includes/classes/shopping_cart.php' Line - 78

function add_cart($products_id, $qty = '1', $attributes = '', $notify = true)

 

add something like:

 

if (gmdate(His) < 1800)) {

$this->reset();

tep_redirect(tep_href_link(Page_no_shopping_allowed.php));

}

 

right below it..

 

May or may not work - I did not try it.

Lloyd

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...