dongzhijing8202 2017-02-22 19:24
浏览 36

WooCommerce预订 - 产品的储备资源可用性

So I offer the following products:

  • Training courses which are taught over multiple days. These training courses are also not very frequent and as such there may only be one a week.
  • Salon treatments which there are usually many slots over each day.

These courses and salons can be taught in multiple locations and at the moment I have these set up as “resources”. However, this is where my problems start.

The training courses are scheduled well in advance. So when a training course is scheduled, I don’t want another training course or salon treatment to be booked at that location for the relevant dates. However, in order for me to achieve this, I currently would have to:

1) Set at the resource level the dates that aren’t available for the other products using the resource.

2) Then on the product I want to be booked on that date, set the product availability as available to override the resource availability.

However, this then has a problem. Because this then also means that the product is available to be booked at other locations which isn't correct.

So essentially what I want to do is “reserve” the availability of a product inside a resource even when a booking hasn’t actually been taken for it.

So for example, if I have a training course taking place over four days next week, I would want to enter the date when the course will take place at that location and then have the whole block unavailable for any other training courses or salon treatments. This would then mean that if I needed to cancel a training course, I would just remove the date of the course from the product. Once that is done, then that time can then be booked by other products.

So then the final result I would want to have is a resource where it is mainly for salon treatments but where there are then days which would not be available because of training courses. In addition, then for the training courses, they would just have the dates when they are running and all of the other dates would be unavailable as they are reserved for salon treatments. New dates for training courses can then be added as needed.

I hope this explains more about what I’m trying to achieve. Any pointers to regards to how I can achieve this would be appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动
    • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
    • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
    • ¥15 用windows做服务的同志有吗
    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?