Back to Hospitality Support

hambern
hambern

How do I fix this in the best way? The front end booking form lacks some files.

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (jquery-clockpicker.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (pikaday.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (jquery-clockpicker.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (moment.js, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (pikaday.js, line 0) [Error] ReferenceError: Can't find variable: Pikaday showDatepicker (restaurang.loc:107)

hambern
hambern

Seels like it should be like this:

In booking.php:

public function onRun()
{
        $this->addJs('/modules/system/assets/ui/vendor/moment/moment.js');
        $this->addCss('/modules/system/assets/ui/vendor/pikaday/css/pikaday.css');
        $this->addJs('/modules/system/assets/ui/vendor/pikaday/js/pikaday.js');
        $this->addCss('/modules/system/assets/ui/vendor/clockpicker/css/jquery-clockpicker.css');
        $this->addJs('/modules/system/assets/ui/vendor/clockpicker/js/jquery-clockpicker.js');
}

Last updated

gergo85
gergo85

Do you use the Booking component of plugin?

hambern
hambern

Exactly

To make it work I had to change the path of the assets like above.

gergo85
gergo85

I changed the path of files. There were old pathes in October Beta. Thank you for reporting this issue!

1-5 of 5