Having seperate prices based on Product + Time

I need to have a different price for appointments placed between 8-10pm, but also based on product. For example a dog walk for 30 minutes from 8-10 will cost 23 dollars (normally 17), but a dog walk for 45 minutes will cost 26 dollars (normally 20). Please see https://unionsquaredogwalker.com/store/products/appointment/

I was pointed to this post https://premium.wpmudev.org/forums/topic/appointments-different-price-for-different-time#post-329965 , but this only shows how to change price based on hour. Not the combination I need of Product + Price.

Thanks in advance for any help.

  • Hakan
    • The Incredible Smush

    Hi,

    On that sample you will see that there is a $service parameter which is service ID.

    You can use $service inside the function, but in fact it will work in your case without any changes, because you are simply adding $6 after a certain hour and that function exactly does it.

    Cheers,
    Hakan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.