I would like to add a redirect function in a button and I can't find the html code for that button. Can you please tell me where should I look for things like these?
I can't find the html form of the button so I can make the modifications. I want it to redirect to another page after the click and I also want to put a tracking code in it.
Hello,
I would like to add a redirect function in a button and I can't find the html code for that button. Can you please tell me where should I look for things like these?
Thank you.
Hello,
can you please be more specific about the button you are referring to, so that we can point you to the correct file?
Thank you
Best regards,
themeenergy support
It's the button that the client uses to send the reservation. The last step when a reservation is made.
This is the code that I found in the accommodation-booking-form file:
<?php BookYourTravel_Theme_Utils::render_submit_button("primary-btn", "submit-accommodation-booking", esc_html__('TRIMITE REZERVAREA', 'bookyourtravel')); ?>
I can't find the html form of the button so I can make the modifications. I want it to redirect to another page after the click and I also want to put a tracking code in it.
Thanks.
Hi,
You would do that in javascript.
the file you are looking for is js/accommodations.js
And the action depends on whether you are using WooCommerce or not.
- If you are not using WooCommerce, you need to add your redirect inside the processBooking function, after this code:
- If you are using WooCommerce, you should look for this code:
Best regards,
themeenergy support
Ok, thanks
You are welcome.
Best regards,
themeenergy support