Source Code not Coming into Browser
-
Hi,
I am trying to set the minimum period of booking as one month. I changed the source code in these below three lines to
selectedDate.setMonth(selectedDate.getMonth()+1);
https://github.com/webkul/hotelcommerce/blob/0946ab9de8d1a7ecaede65bee524aa263bba0402/modules/hotelreservationsystem/views/js/roomSearchBlock.js#L72
https://github.com/webkul/hotelcommerce/blob/0946ab9de8d1a7ecaede65bee524aa263bba0402/modules/hotelreservationsystem/views/js/roomSearchBlock.js#L89
https://github.com/webkul/hotelcommerce/blob/0946ab9de8d1a7ecaede65bee524aa263bba0402/modules/hotelreservationsystem/views/js/roomSearchBlock.js#L94But when I load the page in the browser, the source code which I modified is not coming into browser. It is showing the exact code which was there before.
And when I do the same code modifications using browser inspect tool it's working as expected.
I am assuming some other file may overriding the code I modified. If that is true where can I find that file and if not can you please tell me what is the problem?
Thank you,
Vamshi S. -
Issue Resolved
I missed the silly point , Its was not loaded because of browser's cache.
-
@vamshi
Great, but you might also need to do changes in the following lines for product pagehttps://github.com/webkul/hotelcommerce/blob/0946ab9de8d1a7ecaede65bee524aa263bba0402/themes/hotel-reservation-theme/js/product.js#L1101
https://github.com/webkul/hotelcommerce/blob/0946ab9de8d1a7ecaede65bee524aa263bba0402/themes/hotel-reservation-theme/js/product.js#L1218
https://github.com/webkul/hotelcommerce/blob/0946ab9de8d1a7ecaede65bee524aa263bba0402/themes/hotel-reservation-theme/js/product.js#L1223 -
Thanks I didn't notice that before. I changed those lines now and it's working cool.