当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Woocommerce / Wordpress - Out Of Hours

问题描述:

How can I disable checkout or even access to a store during certain hours? The problem I have is, I'm setting up a online store using WooCommerce, but customers should only be able to place an order during certain times of the day.

网友答案:

I had to solve this for a business cafeteria business trying to get off the ground. They only wanted the preorders available during certain times of the day.

I used Scheduled Content plugin... or one like it. I honestly can't remember and the business fell through so the site isn't around anymore to find it.

网友答案:

You could use the Catalog Visibility Options extension which allows you to disable the cart. Sadly, you would have to manually turn it on / off during the day for it to work. You would probably want something more automated.

网友答案:

An easy but dirty way would be to use jQuery to hide the add to cart buttons at a certain time and set a message to say that it's out of hours.

edit: This certainly wouldn't be the most reliable method though.

分享给朋友:
您可能感兴趣的文章:
随机阅读: