Post by vurkac » Wed Mar 25, 2015 1:24 am

Hello,

I dont know if this is the right place to post.

I am trying to achieve somethign that some products to be available to be purchased on certain day or days of the week.

Products can still be displayed but add to cart button should only be available on the days that selected when creating the product.

For example. If I am selling pizza and if i have promotion on mondays. or mondays and wednesdays, those products must only be purchased on those days.

I hope this is clear enough.

Does any one know how to do this modification?

Regards

Newbie

Posts

Joined
Fri Jan 23, 2015 4:20 am

Post by trickyzxr » Wed Mar 25, 2015 2:52 pm

Hi

What I do is run a php script that queries the data base looking for the sku and sets the quantity to zero or 1 then the product is still displayed but not available
hope that helps

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by vurkac » Thu Mar 26, 2015 1:27 am

This is a very good idea. Would you suggest I create a sql query in catalog/controller/product/product.php or somewhere elae?

Newbie

Posts

Joined
Fri Jan 23, 2015 4:20 am

Post by trickyzxr » Thu Mar 26, 2015 2:48 am

Hi I just run it on my webserver outside of Opencart

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by vurkac » Thu Mar 26, 2015 5:24 am

Great Help thank you

Newbie

Posts

Joined
Fri Jan 23, 2015 4:20 am
Who is online

Users browsing this forum: No registered users and 36 guests