- Posts: 105
- Home
- Forum
- Community Forum
- General discussions
- Fatal error: Call to a member function getValue()
limit the star rating in Hub-plugin
- sjp
- Topic Author
- Offline
Less
More
9 years 5 months ago #6634
by sjp
limit the star rating in Hub-plugin was created by sjp
Hello Vietvh,
I would like to request a feature in the settings of Solidres to limit the star rating options hotels can choose from. I don't want to list all the star ratings in the admin dashboard and in the filter results. I really hope you still have the time to implement this feature for the nex update.
Best regards,
Sandra
I would like to request a feature in the settings of Solidres to limit the star rating options hotels can choose from. I don't want to list all the star ratings in the admin dashboard and in the filter results. I really hope you still have the time to implement this feature for the nex update.
Best regards,
Sandra
Please Log in or Create an account to join the conversation.
- vietvh
-
- Offline
Less
More
- Posts: 1553
9 years 5 months ago #6643
by vietvh
Replied by vietvh on topic limit the star rating in Hub-plugin
Hi Sandra,
It is very easy to change, you can open this file:
/components/com_solidres/models/forms/reservationassetfrontend.xml
Then edit this field to add/remove your desired rating:
<field name="rating" type="list" label="SR_FIELD_RATING_LABEL"
description="SR_FIELD_RATING_DESC" class="inputbox"
filter="intval" size="1" default="1" labelclass="control-label">
<option value="0">SR_STAR_UNRATED</option>
<option value="1">SR_STAR_1</option>
<option value="2">SR_STAR_2</option>
<option value="3">SR_STAR_3</option>
<option value="4">SR_STAR_4</option>
<option value="5">SR_STAR_5</option>
</field>
Regards,
It is very easy to change, you can open this file:
/components/com_solidres/models/forms/reservationassetfrontend.xml
Then edit this field to add/remove your desired rating:
<field name="rating" type="list" label="SR_FIELD_RATING_LABEL"
description="SR_FIELD_RATING_DESC" class="inputbox"
filter="intval" size="1" default="1" labelclass="control-label">
<option value="0">SR_STAR_UNRATED</option>
<option value="1">SR_STAR_1</option>
<option value="2">SR_STAR_2</option>
<option value="3">SR_STAR_3</option>
<option value="4">SR_STAR_4</option>
<option value="5">SR_STAR_5</option>
</field>
Regards,
Please Log in or Create an account to join the conversation.
- sjp
- Topic Author
- Offline
Less
More
- Posts: 105
9 years 5 months ago #6741
by sjp
Replied by sjp on topic limit the star rating in Hub-plugin
Hello Vietvh,
Thanks for the info. I could change the star rating options by editing that file and uploading hub plugin again in my back office. Would be great if you could make some adjustments in the future to this star rating feature, so changes can be made in the back office instead of adjusting files.
Best regards,
Sandra
Thanks for the info. I could change the star rating options by editing that file and uploading hub plugin again in my back office. Would be great if you could make some adjustments in the future to this star rating feature, so changes can be made in the back office instead of adjusting files.
Best regards,
Sandra
Please Log in or Create an account to join the conversation.
Moderators: solidres