Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Customers are able to give small sum of credits to the models. These donations are called Tips.

...

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)




    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 Modified
  2. In chat.jsp you need to find this string:

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


  3. Input after it following:

    Panel
    borderColor#C0C0C0
    borderStyledashed
    <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.


  4. So if you want to have tip values: 10, 25, 50 and 100 instead of 1,2,5,10 it will look like this:

    Panel
    borderColor#C0C0C0
    borderStyledashed
    <script type="text/javascript" src="<%=TemplateUtils.getNoCacheURL(request, "scripts/cache_chat-first.js")%>"></script>
    <script type="text/javascript">
    $(function () {
    $(".chat-html .sendtip .popup").data("tip-list", [{"amount": 10},{"amount": 25}, {"amount": 50}, {"amount": 100}]);
    });
    </script>



Or you can always ask us to do so.

...