[#440] Booking widget not displaying predefined services

Migrated from Redmine #440 | Author: Ahmed Hassan
Status: Rejected | Priority: Normal | Created: 2019-11-07


Hello,

I am trying to display only predefined service 2 but it’s displaying all the services, please see the widget that has been generated and slightly modified to input user information.

Redmine Admin wrote:

Please provide link to widget on your site

Ahmed Hassan wrote:

the widget is on this https://portal.pathtoarabic.com/bookings

Redmine Admin wrote:

unfortunately we can’t see it without login and password

Ahmed Hassan wrote:

please use the following login details
username: user1
password: Temp123**

Redmine Admin wrote:

Thank you, will fix

(Short original content)

Vitaliy Kordiak wrote:

Hi Ahmed Hassan,
you have a bug in the widget code:

     "app_config": {
            "predefined": {
                "client": {
                    "name": "{{ name }}",
                    "service": "2",
                    "email": "{{ email }}",
                    "phone": "{{ phone }}"
                }
            }
        }

service should be outside the client object

     "app_config": {
            "predefined": {
                "service": "2",
                "client": {
                    "name": "{{ name }}",
                    "email": "{{ email }}",
                    "phone": "{{ phone }}"
                }
            }
        }

Ahmed Hassan wrote:

Worked - Thank you

(Short original content)