I am currently using the RentalHive theme on my HivePress-based website and I need some assistance with showing specific attributes, such as dates, on the checkout page. I would be grateful if anyone could provide some guidance or suggestions on this topic. Here are my questions:
1- How can I modify the RentalHive theme to display booking dates on the checkout page? Are there any specific hooks or filters that I need to use for this purpose?
2- Is there an easy way to display custom attributes, such as rental item features, on the checkout page? Can I achieve this through theme customization or by customize any plugins?
I appreciate any help or suggestions from the community. Thanks in advance!
Sure, we can provide general guidance regarding customizations. Please let me know if you’re familiar with coding.
The checkout page is implemented by WooCommerce so I recommend using their hooks. The booking ID is stored in the hp_booking meta of the purchased product, this way you can get the booking object and all the related attributes.
Yes, if you get the booking object and you’re familiar with coding you can embed extra details in the checkout form.
Unfortunately, I cannot find the relevant data when I try the filter below. I need to get the booked dates. Can you tell me where I made a mistake by examining the function below for this?