x-soho template and Integration

Discuss everything related to PHP Hotel Site. All versions. Any questions related to the PHP Hotel Site developing or using should be posted to this forum.

Moderators: ne_moj, zewa

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: x-soho template and Integration

Postby ne_moj » Apr 19th, '17, 07:55

Hello akis

Tell me please, where did you change the format with m/d/Y to M/d/Y?

I checked your site now, but did not find this problem.

Regards

akis
Expert
Expert
Posts: 58
Joined: Feb 20th, '13, 20:33

Re: x-soho template and Integration

Postby akis » Apr 19th, '17, 08:21

Hello,
in fact now it is d/m/Y but there is the same problem
all the changes done in template/lib/functions.template.php
on lines 465,472,164,165

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: x-soho template and Integration

Postby ne_moj » Apr 20th, '17, 06:56

Hello

Okay, now I understand what you want to do. If you want the date displayed in the M/ d/Y format on the site, you need to set the datepicker format for the calendar.

Try to replace the line (file - templates/x-soho/lib/functions.template.php):

Code: Select all

    if($objSettings->GetParameter('date_format') == 'dd/mm/yyyy'){
        $output .= '<script>jQuery(document).ready(function(){jQuery.datepicker._defaults.dateFormat = "dd/mm/yy"});</script>';
    }


On:

Code: Select all

    if($objSettings->GetParameter('date_format') == 'dd/mm/yyyy'){
        $output .= '<script>jQuery(document).ready(function(){jQuery.datepicker._defaults.dateFormat = "dd/M/yy"});</script>';
    }else{
        $output .= '<script>jQuery(document).ready(function(){jQuery.datepicker._defaults.dateFormat = "M/dd/yy"});</script>';
    }

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: x-soho template and Integration

Postby ne_moj » Apr 20th, '17, 07:06

We have a slightly different file templates/x-soho/lib/functions.template.php, try to update x-soho. The problem that I see on your site should be fixed in the current version of x-soho

Regards

akis
Expert
Expert
Posts: 58
Joined: Feb 20th, '13, 20:33

Re: x-soho template and Integration

Postby akis » Apr 20th, '17, 08:48

Hello ne_moj,
I replaced the file templates/x-soho/lib and it is ok now
But when I choose a date the check out date should not be changed?
Once again thank you very much.

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: x-soho template and Integration

Postby ne_moj » Apr 21st, '17, 10:16

Hello akis

Good question. I added a record of this problem in todo.

akis
Expert
Expert
Posts: 58
Joined: Feb 20th, '13, 20:33

Re: x-soho template and Integration

Postby akis » Apr 28th, '17, 18:06

For those using ssl protocol
In templates/x-soho/default.php you need to replace the lines 46, 47
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,700,900' rel='stylesheet' type='text/css'>

with
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,700,900' rel='stylesheet' type='text/css'>

Otherwise you may have security error message in chrome

ChriStef
Junior
Junior
Posts: 22
Joined: May 14th, '17, 09:00

Re: x-soho template and Integration

Postby ChriStef » May 14th, '17, 09:36

akis wrote:For those using ssl protocol
In templates/x-soho/default.php you need to replace the lines 46, 47
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Merriweather:400,300,700,900' rel='stylesheet' type='text/css'>

with
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,700,900' rel='stylesheet' type='text/css'>

Otherwise you may have security error message in chrome


Please admin consider fix this and for uhotel script!


Return to “ApPHP HotelSite / uHotelBooking Talk {developers/users}”