Okay
  Public Ticket #1956463
wpDataTables is not allowing front end editing and not hiding columns
Closed

Comments

  • Mason Mitchell started the conversation

    I created several test tables and despite following the exact same steps as in the tutorial "Creating Editable Tables in WordPress where users can see and edit only their own data", I cannot get this plugin to work properly.

    Though rows not associated with the logged in user are being hidden, I cannot edit anything on the front end and columns flagged as hidden are showing up.

    I have disabled all other plugins with no effect.

  •  2,572
    Aleksandar replied

    Hello Mason.

    Thank you for your purchase.

    Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    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

  •   Mason Mitchell replied privately
  • Mason Mitchell replied

    I can only assume it was a plugin that I disabled but didn't wait long enough for the 'dust to settle'...

    I appreciate your prompt reply to my earlier request for assistance but I think this is sorted out.

    I do have another question... I can open another thread if I need to but I'll ask it here anyway.

    I am trying to make 9 smaller tables from one master table that is pre-populated with users and their corresponding wp_userid, 9 Yes/No columns (each having a column with a dollar amount associated with them) so that I can place the smaller tables on separate tabs on a page for users to see their name (and their guest's name) with a Yes/No option.

    Perhaps there is a way to put the same table in different places but hide/show different columns via a switch in the shortcode?

    Each of the tabs corresponds to an activity that I want the logged in user to indicate that they are or are not going to register for that activity.

    All of the smaller tables update the master table (or a master table is updated/created by the 9 smaller tables) and when the user is ready they hit a PayPal 'Pay Now' button.  Somehow pass a variable that sums the amounts associated with the user's Yes responses to the PayPal button...

    Then, when the user is directed back to the site from PayPal the master table is updated indicating that they have paid...

    ...tall order, I know...

    If you can think of a better way for me to accomplish this (as a whole or the individual steps or table architecture) please let me know.

  •  2,572
    Aleksandar replied

    Hey Mason.

    I haven't had the chance to log in yet.

    Our company is located in Serbia and our working time is from 09:00 to 16:00 CET, business days.

    You asking another question here is not an issue, but just for future reference:

    When you have questions or issues which are not related to the title of the active ticket can you please open a new one, and we will help you there. In that way, issues and questions which are related to different subjects will be in different tickets so other customers or our support agents can find it easily. Our policy is to have one issue or question per ticket because of the reasons that is described already.

    Now, if I understood you correctly - you're asking if there's a way to use the same table 9 times, but on each page (tab) to hide a certain portion of the table, correct?

    If that is true, this can only be done with some custom CSS classes. 9 pages with the same table, but you want to hide different columns on each page. 

    You need to open column settings and assign a class. For instance "page1" (Attachment "Selection_411").

    Then, when you create the page, you need to set it up like this:

    <style>
    table.wpDataTable .table1 {
    display: none !important;
    }
    </style>
    [wpdatatable id=1]

    And this will hide all columns that have this class assigned.

    My advice would be to assign a new class to each column, so you can combine them:

    <style>
    table.wpDataTable .table1 {
    display: none !important;
    }
    table.wpDataTable .table2 {
    display: none !important;
    }
    table.wpDataTable .table3 {
    display: none !important;
    }
    </style>
    [wpdatatable id=1]
    

    This would hide the three columns which have classes "table1", "table2" and "table3".

    I hope I managed to explain it well enough.

    Please let me know if you have any further questions.

    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

  • Mason Mitchell replied

    Brilliant!  Somehow I missed that a CSS class can be assigned to a column... That is perfect; thank you very much.

    Is there a way to add the class inside of the shortcode?  I'll be adding the classes to my child theme stylesheet.

  •  2,572
    Aleksandar replied

    Hi Mason.

    You're welcome.

    Adding the class to the shortcode is not possible with the plugin's built-in features. You can add it to columns and rows (using conditional formatting), but not in shortcodes.

    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