• Hello,

    I am trying your plugin and so far it seems to do exatly what I needed!
    I would like to add columns (for example description of the variable), what can I do? Thanks

    • This topic was modified 4 years, 9 months ago by fcariboni.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dotstore

    (@dots)

    Hello fcariboni,

    Thanks for reaching out to us.

    If you have knowledge of action and filter then, you can customize our plugin as mentioned below the steps.

    apply_filters('wqcmv_table_headers', $default_headers);

    You can utilize above filter to add your own heading.

    Like:

    
     function wqcmv_table_headers_custom( $default_headers){
       $default_headers['desc'] = esc_html__('Description', 'woocommerce-quick-cart-for-multiple-variations');
       return $default_headers;
     }
     add_filter( 'wqcmv_table_headers','wqcmv_table_headers_custom', 10, 1 );
    

    For the content of custom column you can use below filter.

    apply_filters('wqcmv_table_headers_content', $key, $variation_id);

    I hope this helps. Let us know still if any.

    Thanks,

    Thread Starter fcariboni

    (@fcariboni)

    Thank for your reply,

    i need to insert this code in function.php right?

    I created a custom field for each variation, can i add those too?

    Thank you

    Plugin Author Dotstore

    (@dots)

    Hello fcariboni,

    Thanks for your reply.

    Yes you need to add that code in functions.php

    No, custom fields for each variations no need to add.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add columns’ is closed to new replies.