How to change tips value
Customers are able to give small sum of credits to the models. These donations are called Tips.
By default they’re set in following values: 1, 2, 5 or 10.
Also there is a blank space where customers can put any amount they desire to donate.
You can change tips values in chat.jsp in FTP using following instruction:
Path to files with FTP access would be:
/httpdocs/templates/TEMPLATE_NAME/english/customer/chat.jsp. (for general chat)
/httpdocs/templates/TEMPLATE_NAME/english/customer/_chat-popup.jsp (for lightbox chat)
/httpdocs/templates/TEMPLATE_NAME/english/customer/_performer-bio.jsp. (for performer page)Where TEMPLATE_NAME is your current template in use. You can find our template name from admin → Domains → select domain name → domain name settings.
Find the following strings:
In chat.jsp you need to find this strings:
<script type="text/javascript" src="<%=TemplateUtils.getNoCacheURL(request, "scripts/cache_chat-first.js")%>"></script>
In _performer-bio.jsp you need to find this string:
<% if (performerRecord.foreignSiteId == 0) { int[] giftAmounts = {1, 2, 5, 10}; %>
Change the numbers:
For chat.jsp input after it following:
<script type="text/javascript"> $(function () { $(".chat-html .sendtip .popup").data("tip-list", [{"amount": 1},{"amount": 2}, {"amount": 5}, {"amount": 10}]); }); </script>
Where amount is a tip value.
So if you want to have tip values: 10, 25, 50 and 100 instead of 1,2,5,10 it will look like this:For _performer-bio.jsp replace numbers with your values: