Omacro
Help Center omacro.com

Advanced Dealer Locator

Add a custom page size to online dealer results

Adjust how many online dealer results appear per page in Omacro locator experiences.

At times, you may want to customize the number of results that appear on the Online portion of the Buy Now popup. For example, if you would like to show more or less sellers per page (or all sellers with out paging controls).

Option 1: Add Page Size Globally from the Buy Now Script Path

If you wish to add page size globally throughout the site (where ever Buy Now is used), you can do so with the following additional parameter to the Buy Now script path.

  1. <script id="omacro-widget-buynow" src="https://buynow.omacro.com/embedded/bn.loader.js?company=[OMACRO ID]&country=US& pagesize=16 "></script>

In the above example, we added the additional URL parameter "pagesize" with a value of "16". The value must be a number. The above affect will show up to 16 sellers per page. To remove paging altogether, simply change the value to something much higher, such as 999. Please note, page size value can be as low as 1 - 999. The default page size is 12 results per page.

Option 2: Add Page Size to Buy Now Button

If you wish to add a custom page sizes to a select product, you can do so by adding a "data-pagesize" attribute. The advantage is, each button can support a different number of sellers per page.

  1. <a href="#obn" data-product="1234567890" data-pagesize="16" >Buy Now</a>

In the above example, we added the additional URL parameter "pagesize" with a value of "16". The value must be a number. The above affect will show up to 16 sellers per page. To remove paging altogether, simply change the value to something much higher, such as 999. Please note, page size value can be as low as 1 - 999. The default page size is 12 results per page.