Public Ticket #3417700

Bulk order form navigation issue

Closed
Comments
4 Tickets 3
Jurgen started the conversation 3 years ago on July 18, 2023 at 4:52pm

I am using the bulk order form, cream edition. Works great. But I have over 400 products in my store and the form only shows 100 per page. At the end of the page it says: You’ve seen all the products. Back to Top.
Underneath that is a button that says Next.
The problem is that I want to edit or remove the text "You’ve seen all the products. Back to Top." because it is confusing. People don't click to the next page and think there are no more products. Is there a way to change or delete te text? Or alternatively can I fit all the products on one page?


Thank you!

Jurgen

2,762
KingsPlugins replied 3 years ago on July 19, 2023 at 8:08am

Hi there,

You can change the number of results that show in the form by adding this PHP code snippet to your site:

add_filter('b2bking_search_results_number_order_form_cream', function($results){
     return 1000; // number of results
}, 10, 1);

This will set it to 1000 results, but you can enter any number there.

It is also possible to change that text by adding this PHP code snippet to your site:

add_filter('b2bking_seen_all_products_text', function($text){
    return 'Different text here';
}, 10, 1);

A PHP snippet can be added to functions.php, or by following our guide here: https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Kind regards,

Stefan

2,762
KingsPlugins replied 3 years ago on August 3, 2023 at 9:14pm

Awesome, glad that worked : )


You can update to all future plugin versions (starting with the next official version) - the changes have already been merged with the main codebase, so no worries, you will not lose anything by updating.

Sign In