Prerequisites
Since Buy Now operates from your website and network, it may be necessary to ensure that your network firewall is configured to allow the omacro Buy Now script to properly communicate with the omacro web services outside of your network. Learn more about
Buy Now Service Information for Network Professionals.
Include Script Within Website
The example below demonstrates what's needed to integrate the Buy Now widget with your site.
For more specific details about the parameters that are supported by the Buy Now script, please see the appropriate referenced below.
Choose How You Intend On Using Buy Now
Buy Now can be used for specific products (a button on a specific product page or a group of similar products) or as a general way to direct traffic to dealers without targeting a specific product. The following definitions may be helpful:
- Product Based Dealer Locator
Used as a way to direct traffic to dealers with a specific product or family of products (variants) in mind. This version can be utilized with a single model product or a group of products with variations.

- General Dealer Locator
Often placed as a link somewhere on the the site's header or footer (or somewhere on the homepage), the General Dealer Locator is intended to direct traffic to dealers without specific products in mind. This option is also often combined with the embedding feature to make a dedicated webpage featuring Buy Now.

You can trigger Buy Now as a popup in several different ways:
By default, the buy now button can be triggered to open to the default market as specified within omacro settings (
Buy Now ->
Settings & Features) page. Depending on your business requirements, you may choose to allow just one of the markets (online or local) to appear within the Buy Now popup and/or target a specific market to open by default.
Please note, changing Market Option settings will globally impact how ALL Buy Now markets appear on your website.
To trigger the popup and display the default market that is configured on the Market Options screen, simply add the following HTML code.
- <a href="#obn" data-product="ABC-12345">But Now</a>
Please note, you must specify the data-product parameter's value as a SKU or GTIN listed on the omacro Manage Products page, otherwise the popup will display an error message.
The same functionality can live along side a site's existing shopping cart system, adding value to the shopping experience.
|
The button can be styled anyway you like and live along side existing site content and buttons. |
|
|
An example of a single button that can be used to show both Online and/or Local markets. |
If you would prefer to trigger the popup to open to a specific market, the following code can be added to your button.
To trigger the popup and display the specific market, simply add the following HTML code.
Online Market (Market Code "ONL"):
- <a href="#obn" data-product="ABC-12345" data-market="ONL">But Online</a>
Local Market (Market Code "LOC"):
- <a href="#obn" data-product="ABC-12345" data-market="LOC">Buy Local</a>
Please note, you must specify the data-product parameter's value as a SKU or GTIN listed on the omacro Manage Products page, otherwise the popup will display an error message.
The HTML data-market property specifies the market the popup will open to. It can be the following value.
- ONL - Online Market
- LOC - Local Market
If a market is not set or incorrectly set, the popup will default to what is configured on the Market Options screen.
Also keep in mind, the button styles and placements are completely under your control and can match whatever theme your site utilizes.
|
An example of a two buttons configuration that launch into either Online or Local markets tab. |
Embedding Buy Now onto a Page
Buy Now can be
embedded directly onto a webpage rather than operate through a popup. This can be useful for dedicated dealer landing pages or for nesting the control inside a product page or within a dynamic element on a page such as a tab or accordion control.
For implementation details, please review our Embedded Dealer Locator Guide.
The following are a couple examples of how it can be used:
|
An example of embedding within a tab on a product page with customize styles. |
|
|
An example of embedding on a dedicated landing page configured to show local markets with customized styles. |
Exploring Buy Now Settings & Features
The following information describes the various options associated with Buy Now that are configurable within the
omacro settings (Buy Now -> Settings & Features) page. Changing settings from the Settings & Feature page will globally impact how
ALL Buy Now features operate on the site. Please note, some features described below can be controlled via HTML or JavaScript code instead and are described in the Additional Scripting Options section of this document.
Market Options
By default, the buy now button can be triggered to open to the default market as specified within omacro settings (
Buy Now ->
Settings & Features) page. Depending on your business requirements, you may choose to allow just one of the markets (online or local) to appear within the Buy Now popup and/or target a specific market to open by default.
- Choose Visible Tab (Online Retailers, Local Retailers)
You can configure Buy Now to display which market tabs should appear. By default, both market tabs are visible.
- Choose the Default Tab
When Buy Now is triggered, you can control which market you would like to load first. By default, Online Market is selected. Note that if only one tab is visible, than that market will be chosen automatically.
- Domain Whitelist
You can specify which domain names are allow access to request data to the omacro endpoints. This can be useful in preventing Buy Now from operating outside of your environment. The field supports a comma separated list of domains. Leave empty for no restrictions.
Online Market Options
The following options are specific to the Online market tab.
- Enable United States MAP Restrictions
You can prevent any product that violates US MAP from appearing within Buy Now. If enabled, be sure to refer to the USA MAP Reporting tool to help identify potential product pricing issues. Note this feature is only functional on Product-Based Dealer Locators. - Show Retailer Pricing
Enabling this feature will show product pricing if available. Note this feature is only functional on Product-Based Dealer Locators. - Show Retailers with 'Out of Stock' Status
If checked, this will allow dealers to appear within Buy Now regardless of stock status. - Show Retailers with Available Stock First
Place dealers with available stock first before other dealers whose stock status is unknown or out of stock. - Show Retailers Stock Status
Only show dealers with reported stock status.
- Allow User to Change Their Country
Determine whether to allow the user to change their country. If enabled, a country picker option will be available within the Online market tab.

- Sorting
You can choose one of three options to control how dealers will appear. - Alphabetical - Sorting of dealers appear in alphabetical order.
- Random (round robin) - Sorting of dealers appears completely random.
- Specific Sort Order - Sorting is based on the predefined dealer list order. This option is useful for prioritizing dealers you would like featured in a specific order. Any dealers not specified are then placed in random (round robin) order.
Local Market Options
The following options are specific to the Local market tab.
- Show Inventory Status
Display the reported inventory if available. Status could be Likely, Limited, None, Unknown. - Only Show Retailers Within the User's Country
Prevent dealer from showing within the results if located outside of the user's own country. - Mapping
Control whether to show specific dealer types. Dealers can be configured and assigned various dealer attributes (Retail Location, Service Center, Online, Rental Provider) from the Sellers -> Manage Sellers page. A dealer can have one more more attributes applied to it. Selected attributes propagate to their satellite locations automatically. Note: This feature is also available as a custom rule defined in HTML. Learn more how to Add Custom Rules To Dealer Results. - Show Rental Providers - If unchecked and the dealer has been assigned exclusively as a Rental Provider, that dealer will not show in the results.
- Show Service Centers - If unchecked and the dealer has been assigned exclusively as a Service Center, that dealer will not show in the results.
- Primary Map Radius & Secondary Map Radius - You can control the radius of how far to search on a map for local dealers. Learn more about how to Adjust Map Search Radius On Buy Now Popup
Setting Custom 'No Results' Message
You can create a custom message to be displayed when no dealers are found. The input supports custom formatting as well as basic HTML elements for layout and styling. By default, the message contains no styling.
Additional Scripting Options
Setting Custom Paging Size for Online Markets Results
You can configure the number of dealers that will appear on the Online markets tab via a couple HTML options. By default, up-to 12 results will show but you can configure the the page size to be as low as 1 and as many as unlimited (no paging at all). This can be applied globally or on to a specific button (and even different across multiple buttons). Learn how to
Add Custom Page Size To Online Dealer ResultsCustomize and Making Visual Changes to Results Window Through CSS Overrides
Direct Trigger of Buy Now Dealer Locator via Email or Outside Links