Add Custom Page Size To Online Dealer Results

Add Custom Page Size To Online Dealer Results

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.

    • Related Articles

    • Embedding Dealer Locator Within Website Page

      You can embed the locator directly on to a page. Assuming you have gone through the steps of adding omacro's buy now code snippets to your page, use the following example to render the locator within the page itself. To see a live demonstration, ...
    • Add Custom Rules To Dealer Results

      At times, you may want to customize certain results. For example, if you would like to only display rental providers and/or service centers or only display retail locations (or a combination). To do so, you can implement this optional parameter in a ...
    • Adding Custom Branded Seller Landing Pages For General Dealer Locator

      omacro's General Dealer Locator will produce non-product specific dealer listing results. This function allows you to show Sellers and send customers to the Seller's custom branded landing page that contains just your products and or your brand's ...
    • Seller Online Product Feed General Instructions

      Download omacro CSV online product feed template omacro XML online product feed template Google Merchant Center XML and .csv (txt) file formats Sample Files To be part of your suppliers’ online dealer locator, we need a product feed so we know where ...
    • Initial Onboarding of Sellers

      To aid and expedite your initial implementation, please provide a list of sellers have attached the above mentioned Excel template. We will use to do the import of all of your sellers. Please note, in the event you are on-boarding multiple omacro ...