Omacro
Help Center omacro.com

Dealer Locator Configuration

Show only one market on a per-product basis

Control market visibility on a per-product basis so Omacro results show only the intended online or local market for each product.

There may be times when you would like to show only one market (Online or Local) within the Buy Now Modal Window without making a global change that could impact multiple products. If you wish to control when to show only one market within the Buy Now Modal window on a per-product basis, you can do the following.

There are two things that need to be done to only show the Online tab contents within the Modal dialog box:
  1. Force the Modal dialog to open in the Online tab.
  2. Hide the Online and Local markets tabs so users don't see them.

Let's address the first part - forcing the selection of the Online tab (this can be also the Local tab if you wish). First, you'll need to update the button on your page that triggers the Buy Now popup and set the property " data-market " value to be " ONL " (for Local tab, value must be "LOC"). When the user clicks on the button, it will open the Online Retailer tab as the default action.

  1. <a href="#obn" data-product ="ABC- 12345" data-market =" ONL ">Buy Online</a >


Next, you'll need to hide the ability for the user to see the tabs within the modal window altogether. To do this, we'll need to add a CSS style block to the page to force the tab from being visible.

  1. <style type="text/css">
  2. .oma-tabs {
  3. display: none !important;
  4. }
  5. </style>


That's it! From there you should now only see one market within the Buy Now popup.