QloApps Forums
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Source Code not Coming into Browser

    Technical Help
    date range booking
    2
    4
    652
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vamshi last edited by

      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#L94

      But 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.

      1 Reply Last reply Reply Quote 0
      • V
        vamshi last edited by

        Issue Resolved

        I missed the silly point 😅 , Its was not loaded because of browser's cache.

        1 Reply Last reply Reply Quote 0
        • S
          shreesh Global Moderator last edited by

          @vamshi
          Great, but you might also need to do changes in the following lines for product page

          https://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

          1 Reply Last reply Reply Quote 0
          • V
            vamshi last edited by

            @shreesh

            Thanks I didn't notice that before. I changed those lines now and it's working cool.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post