Okay
  Public Ticket #2152341
Calculate total
Closed

Comments

  • Von Tyrone C. Kierulf started the conversation

    Hi,

    I'm having issues with an SQL based table. It's an Inner Join Query.

    The Calculate Total is not working for this table.

    Please give me your best email so I can send an invitation for you to check on my WP dashboard.

    Best,

    Von




  •   Aleksandar replied privately
  •   Von Tyrone C. Kierulf replied privately
  •  2,498
    Aleksandar replied

    Hello again Von Tyrone C. Kierulf.

    The decimal point can be changed in main settings of wpDataTables, under "Number format". I changed it so the decimal separator is a dot, instead of a coma.

    As for the SUM, wpDataTable server probably has problems with parsing of the query and building new queries dynamically (rarely happens, but does sometimes). To avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTables based on a simple query like “SELECT * FROM view1″.

    Please note some this when working with the server-side processing feature:

    • Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
    • Please do not use “ORDER BY” in the SELECT statement. wpDataTables has its own sorting engine so it makes no sense to use MySQL’s sorting, since it will be overridden. Also, server-side processing feature adds this part of statement automatically when users trigger the sorting on the front-end, and having it in initial statement may cause the table to crash.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables