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:

  1. 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. 

    image-20240930-055006.png


  2. Find the following strings:

    1. In chat.jsp you need to find this strings:

      <script type="text/javascript" src="<%=TemplateUtils.getNoCacheURL(request, "scripts/cache_chat-first.js")%>"></script>

       

    2. In _performer-bio.jsp you need to find this string:

      <% if (performerRecord.foreignSiteId == 0) { int[] giftAmounts = {1, 2, 5, 10}; %>



  3. Change the numbers:

    1. 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:

       

    2. For _performer-bio.jsp replace numbers with your values: