Okay
  Public Ticket #964076
few questions
Closed

Comments

  •  2
    Dima started the conversation

    Hello, we started using your plugin and I have a few questions on "how to":

    1) Need a field which is a select box with values from another wpdatables table.
    2) I put a table in backend

     of woocommerce product edit using php (do_shortcode). I also enable front page editing for the admin to be able to edit it there. So maybe I can use another way to call the table with edit options aside from do_shortcode?
    3) This table has a field "prod_id" which is the id of the edited product. I want to do 2 things: 

    • table must show only rows with prod_id of this product some prefiltering?
    • when add new row - it will prepopulate prod_id 

    I can pass prod_id as variable when I call the table.

    4) Some of the rows I need to make as titles, just 1 cell. So I have a field "type" for this. Since I did not find a way to do it, I thought add class to row if type=title. But since I make the column invisible add class does not work. Is this a bug? Anyway what solution will you advice?

    Thanks

  •  1,825
    Miloš replied

    Hi Dima,
    Thank you for your purchase.

    1) Unfortunately this functionality is not available at the moment. We are working on implementing the feature that you need and it will be introduced in the future versions of the plugin, hopefully early next year. 

    2) In file ../wp-content/plugins/wpdatatables/controllers/wdt_functions.php around line 392 you you will find this function

    function wdt_output_table( $id, $no_scripts = 0 ) {
       global $wp_scripts;
       echo wpdatatable_shortcode_handler( array('id'=>$id, 'no_scripts' => $no_scripts ) );

    which is similar as the do_shortcode. So I hope it can help you.

    3) Unfortunately this functionality is not available without code customization. If you are interested we can offer you our paid customization service but now we have a lot of tasks in our backlog for future update and we do not have available developers to implement this functionality for you, sorry.

    4) As I understand you are using Conditional formating for that "type" field. It is not a bug because conditional formating will not work for invisible columns. 
    If you are skillful with develop I suggest you to take a look at this page and to see some examples that are unrelated to our plugin that you can implement on your own.
    We also do this kind of implementation but this features belong to code customization.

    Thank you for understanding.


    Kind Regards, 

    Miloš Jovanović
    [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

  •  2
    Dima replied

    Update:

    1) It seem like there may be a way using your predefined hooks, but I didn't look into this yet.

    3) Found it pretty fast in your documentation, there is prefilter by column, just pass %var% to "Default value(s)" and send the value to filter by as %var% when called with shortcode.

    4) Own jquery solution, just display:none unneeded td's, and the needed one add colspan using jquery. Works fine.