Pass parameters to the CategoryController



  • 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 :

    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


  • Global Moderator

    @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



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


Log in to reply