Viewing 1 replies (of 1 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi @imkane,

    At the moment, its something you’ll need some PHP coding knowledge to achieve.

    The best way to do this is to filter the products table that is generated for the email and exclude the ones you don’t want.

    err_reminders_info_product_list is the name of the filter and you can find this in includes/class-err-emails.php

    You would add it to your functions.php file like:

    add_filter( 'err_reminders_info_product_list', 'custom_err_reminders_product_filter', 10, 5 );
    
    function custom_err_reminders_product_filter( $rows, $reminderID, $userID, $orderID, $order ) {
        // Your code for filtering $rows to remove the products you don't want goes here
        // $rows is the table HTML, so a regex search would be best.
        return $rows;
    }

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude certain products?’ is closed to new replies.