ERROR: Price per night

Pending
LordCros - Hotel Booking WordPress Theme LordCros - Hotel Booking WordPress Theme September 18, 2019
Login to reply
Kelly R Support Agent
4 years ago

Hi,

Please set regular price for every room.

http://prntscr.com/p9pgv2

http://prntscr.com/p9ph7z

Regards, C-Themes

Lilla Spa
4 years ago

https://seabayapartments.com/wp-admin

user: elisa

pwd: Lyur13vn01989@

---------------------------------------

ftp: 159.69.224.128

username: seabas

password: Lyur13vn01989@

Kelly R Support Agent
4 years ago

Hi,

Please give me your website url and admin credentials and ftp information

And give me page url for the issue.

Let me check the issue.

Regards, C-Themes

Lilla Spa
4 years ago

I modified the code as you suggested, now the result is 0.00. But we set the seasonal price which's correctly displayed as price/trip so as total amount, but not as price per night.

Kelly R Support Agent
4 years ago

Or please find following code in /usr/www/users/seabas/wp-content/themes/lordcros/inc/functions.php

$price_label = number_format( $amount, $decimal_prec, $decimal_sep, $thousands_sep );

And replace with following code.

$price_label = number_format( floatval( $amount ), $decimal_prec, $decimal_sep, $thousands_sep );

And try again.

Regards, C-Themes

Kelly R Support Agent
4 years ago

Hi,

1. Please confirm you set currency symbol and currency code in theme options panel.

2. Price should be number. Should not be added strings such as currency symbol, etc.

Regards, C-Themes

Lilla Spa
4 years ago

On the room page in the price labelĀ  php shows this warning.

Warning: number_format() expects parameter 1 to be float, string given in /usr/www/users/seabas/wp-content/themes/lordcros/inc/functions.php on line 286

how can we solve?