- Home
- Forum
- Community Forum
- Report bugs
- Error when trying to confirm a reservation
tourist tax for max 6 days
- gmonamour
-
Topic Author
- Offline
Less
More
7 years 7 months ago - 7 years 7 months ago #10247
by gmonamour
My site with Solidres www.gmonamour.it/
tourist tax for max 6 days was created by gmonamour
Hi,
on my city there is a tourist tax.
This tourist tax is for day of stay but you have to pay only for the first 6 days.
I mean that if you stay for example 15 days you have to pay only for 6 days.
How can i set that on Solidres?
I thought to set it like an extra but I have another extra and the tourist tax must be alone on the invoice.
it might be fine even if i can set a fixed amount per person (because on my site the minimum stay is 6 night)
Thanks a lot
Best regards
on my city there is a tourist tax.
This tourist tax is for day of stay but you have to pay only for the first 6 days.
I mean that if you stay for example 15 days you have to pay only for 6 days.
How can i set that on Solidres?
I thought to set it like an extra but I have another extra and the tourist tax must be alone on the invoice.
it might be fine even if i can set a fixed amount per person (because on my site the minimum stay is 6 night)
Thanks a lot
Best regards
My site with Solidres www.gmonamour.it/
Last edit: 7 years 7 months ago by gmonamour.
Please Log in or Create an account to join the conversation.
- solidres
-
- Away
Less
More
- Posts: 2953
7 years 7 months ago #10253
by solidres
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Replied by solidres on topic tourist tax for max 6 days
Hi,
It is not yet supported in Solidres for tourist tax.
About the tourist tax for only 06 days, is it city specific? How about other cities?
Regards,
It is not yet supported in Solidres for tourist tax.
About the tourist tax for only 06 days, is it city specific? How about other cities?
Regards,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Please Log in or Create an account to join the conversation.
- gmonamour
-
Topic Author
- Offline
7 years 7 months ago - 7 years 7 months ago #10255
by gmonamour
My site with Solidres www.gmonamour.it/
Replied by gmonamour on topic tourist tax for max 6 days
Hi,
in Italy each local authority can decide how the tourist tax is due.
In my city the tourist have to pay an amount per day but if he stays for more than 6 days he don't have to pay more than the first 6 day.
I suppose that there are a lot of italian cities that have the same tourist tax system (maybe they change the max number of the days).
Do you have an idea about how can I turn around this problem?
Maybe, could you tell me where is the file in which the tourist tax ($touristTax) is calculated?
Thanks
best regards
in Italy each local authority can decide how the tourist tax is due.
In my city the tourist have to pay an amount per day but if he stays for more than 6 days he don't have to pay more than the first 6 day.
I suppose that there are a lot of italian cities that have the same tourist tax system (maybe they change the max number of the days).
Do you have an idea about how can I turn around this problem?
Maybe, could you tell me where is the file in which the tourist tax ($touristTax) is calculated?
Thanks
best regards
My site with Solidres www.gmonamour.it/
Last edit: 7 years 7 months ago by gmonamour.
Please Log in or Create an account to join the conversation.
- solidres
-
- Away
Less
More
- Posts: 2953
7 years 7 months ago #10291
by solidres
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Replied by solidres on topic tourist tax for max 6 days
Hi,
You can edit this file:
/administrator/components/com_solidres/controllers/reservationbase.json.php
The calculation is around line 231 - 251.
Regards,
You can edit this file:
/administrator/components/com_solidres/controllers/reservationbase.json.php
The calculation is around line 231 - 251.
Regards,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Please Log in or Create an account to join the conversation.
- gmonamour
-
Topic Author
- Offline
7 years 7 months ago - 7 years 7 months ago #10292
by gmonamour
My site with Solidres www.gmonamour.it/
Replied by gmonamour on topic tourist tax for max 6 days
Hi,
ok, thanks. I've limited the tourist tax to max 6 day by modifying your file, from line 280 to 297, like that
ok, thanks. I've limited the tourist tax to max 6 day by modifying your file, from line 280 to 297, like that
// Calculate tourist tax
// this limit the tourist tax to 6 days maximum
if ($enableTouristTax)
{
If ($stayLength >6) {$totalImposedTouristTaxAmountAdults += $assetParams['tourist_tax_adult_rate'] * $roomAdultsNumber * 6;} else //added this
$totalImposedTouristTaxAmountAdults += $assetParams['tourist_tax_adult_rate'] * $roomAdultsNumber * $stayLength;
if (isset($room['children_ages']) && count($room['children_ages']) > 0)
{
foreach ($room['children_ages'] as $childAge)
{
if ($childAge >= $assetParams['tourist_tax_child_age_threshold'])
{
If ($stayLength >6) {$totalImposedTouristTaxAmountChildren += $assetParams['tourist_tax_child_rate'] * 6;} else //added this
$totalImposedTouristTaxAmountChildren += $assetParams['tourist_tax_child_rate'] * $stayLength;
}
}
}
My site with Solidres www.gmonamour.it/
Last edit: 7 years 7 months ago by gmonamour.
Please Log in or Create an account to join the conversation.
- gmonamour
-
Topic Author
- Offline
7 years 7 months ago - 7 years 7 months ago #10293
by gmonamour
My site with Solidres www.gmonamour.it/
Replied by gmonamour on topic tourist tax for max 6 days
But, to avoid to modify the file at every update I suggest you to set something on the backend setting.
It will be useful to other users too.
Thanks a lot
Best regards
It will be useful to other users too.
Thanks a lot
Best regards
My site with Solidres www.gmonamour.it/
Last edit: 7 years 7 months ago by gmonamour.
Please Log in or Create an account to join the conversation.
Moderators: solidres