Quantity pagination
-
Hi,
Thanks for your message. Every back-end list page (i.e. the list of rental orders) allows you to define the “list limit” by clicking the apposite “Screen Options” button through the WordPress native layout.
However, for the front-end booking process there are no “visible” settings to define a custom list limit, hence the number of vehicles shown in the search results during the booking process. If you wish to define a custom list limit, then it’s necessary to manually add a new “option” record in the apposite database table of your WordPress website.
You can use your preferred database management interface (i.e. phpMyAdmin) to choose your database and the table
PREFIX_options. You should add a new record withoption_nameequal to “vikrentcar_list_limit” andoption_valueset to 50 (for example), if you wished to have 50 records per page in the front-end.Alternatively, if you’re familiar with PHP, then executing the code
set_option('vikrentcar_list_limit', 50);will do the same job by adding the necessary database record to your WordPress website that the plugin reads to determine the list limit for the front-end pages.We invite you to reach out to our technical support team through our website should you have any difficulties creating this custom option record on your WordPress database.
The VikWP Team
Thank you for your answer, but I meant the front, the number of cars visible after searching, now there are 20, I would like to have 500 pieces, visible after clicking search, I would very much like to ask for help, for which I thank you in advance.
$lim = VikRequest::getVar(‘lim’, 20, ”, ‘int’); //results limit
$lim0 = VikRequest::getVar(‘limitstart’, 0, ”, ‘int’);is this this file?
…/…/wp-content/uploads/vikrentcar/overrides/site/carslist/view.html.php
Hi,
Yes, we did understand you were referring to the front-end, because the back-end allows you to choose the list limit through the apposite “Screen Options” button.
The instructions you were given will do exactly what you need. Rather than using “50” like in our examples, you will have to set “500” if that’s the limit you want.
There’s no need to edit the source code of the plugin, because the list limit is read from the database. Please follow our instructions to add a new WordPress option-record called “vikrentcar_list_limit” to get 500 results per page.
If you were to modify the PHP code, then your changes would go lost by installing the next plugin updates, and that’s because the PHP file you mentioned is a core-file that does not support overrides. The best solution is definitely to add the above mentioned database record.
The VikWP Team
ok, thank you everything, best regards
The topic ‘Quantity pagination’ is closed to new replies.