Replies: 0
Hey there,
I am working on a website for a hotel.
I used WooCommerce for the Products (Spa, Daytips, Divecourse, …) as well as for the rooms.
But the rooms have some special cases when it comes to the prices…
We have 2 prices for each season (high / low). When you order a room 3 month in advance for the low season you get an additional 10% discount.
What I did so far:
I added a Daterange to the product so we can see when the customer wants to stay with us.
Those dates get passed through checkout and are visible in the order.
I added the low season as “special price” with a schedule.
My problem:
1. the schedule for the special price is according to the date of the order, not the date according to the date of the stay
2. I want to display the correct price when changing the date or the other attributes of the room (such as Fullboard, Halfboard,..)
Testing URL:
http://new.tulamben.com/shop/rooms/bali-deluxe-rooms/
Can anyone push me to the right direction?
I know that the prices come from a json which is generated here:
https://docs.woocommerce.com/wc-apidocs/source-class-WC_Product_Variable.html#609
But this does not really help me… can I make a custom ajax call to get the prices and set the one I want? according to variations AND dates?
Really hope someone can help me…