• Resolved divinebox

    (@divinebox)


    Hello,

    The table of abandoned carts is limited to 30 (argument $per_page). But this is hardcoded. Could you make it customizable ?

    • either by a GET parameter in the URL ?
    • either by a filter/hook to use in child-theme functions.php ?

    Thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support oluisrael

    (@oluisrael)

    Hi @divinebox ??

    How much data would you want to see on each page?

    Thread Starter divinebox

    (@divinebox)

    Today : 250. But in the future i may want to be able to put 300 or 400.

    Plugin Support oluisrael

    (@oluisrael)

    Hello @divinebox, thank you for hanging in there.

    The filter to extend the limit is ready and has been added to the thread below:

    function modify_count( $entry_count ) {
    $entry_count = 50;
    return $entry_count;
    }
    add_filter( 'wcal_abandoned_orders_per_page_count', 'modify_count', 10, 1 );

    As you know, 30 entries are displayed on each page by default. It is advisable to not display a huge amount of entries on the page to ensure the page load time is not affected. More than 100 is not recommended.

    I hope this helps.

    Thread Starter divinebox

    (@divinebox)

    Looks good, thanks. When will the plugin updated with this filter ?

    Plugin Support oluisrael

    (@oluisrael)

    @divinebox, there is no ETA yet as to when the plugin will be updated with the filter, but you can keep using the filter itself for now. You’ll get the update notification in your admin backend whenever a decision is taken on this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘per_page argument : in URL parameter ?’ is closed to new replies.