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

    Pass parameters to the CategoryController

    General Discussion
    pass parameters
    2
    3
    526
    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.
    • M
      melamanehermanus last edited by

      Hi guys,

      I am new to Qloapps, I am trying to pass URL parameters from the RoomSearchWrapper.tpl to the category controller. I have been trying to find out how are they passed but I cannot find anything and the form looks like this :
      <form method="POST" id="search_hotel_block_form">

      I checked the js file as well but I cannot find nothing. by default it hotel id, check in and check out like this : /index.php?id_category=23&controller=category&date_from=2019-12-03&date_to=2019-12-04

      Thanks

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

        @melamanehermanus

        User is redirected to search result page from three places (Search forms) in QloApps.

        1. From Landing page serach form https://prnt.sc/q5ep6t
        When submitting this form page is redirected (to url with parameters) by function hookDisplayHeader() from the file hotelcommerce/modules/wkroomsearchblock/wkroomsearchblock.php
        https://prnt.sc/q5eluq

        2. From Search result page serach form https://prnt.sc/q5epo9
        When submitting this form page is redirected (to url with parameters) by function hookDisplayLeftColumn() from file hotelcommerce/modules/wkhotelfiltersearchblock/wkhotelfiltersearchblock.php
        https://prnt.sc/q5em3c

        3. From Room type details serach form https://prnt.sc/q5epx9
        When submitting this form page is redirected (to url with parameters) by function init() from the file hotelcommerce/controllers/front/ProductController.php
        https://prnt.sc/q5emk3

        1 Reply Last reply Reply Quote 1
        • M
          melamanehermanus last edited by

          Thanks @Sumit , I found it... much appreciated...

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