aThemes Documentation

Guides, resources, and answers for your aThemes products.

Adding a Buy Now Button with Merchant

View Markdown

The Buy Now module lets you add Buy Now buttons to your product and catalog pages.

Buy Now buttons are a popular eCommerce feature that speeds up the shopping workflow by taking customers directly to the Checkout instead of the Cart page.

In the screenshot below, you can see what a Buy Now button added by Merchant looks like on a WooCommerce product page:

Buy Now button, frontend view, screenshot

Below, we’ll see how to enable and configure Merchant’s Buy Now module.


1. Open the Buy Now Module

In your WordPress admin area, go to Merchant » Modules.

Under the Reduce Cart Abandonment heading, click the Buy Now module to open its settings page:

Buy Now module on the Merchant dashboard, screenshot

2. Create a Buy Now Campaign

Buy Now buttons are set up in campaigns. Each campaign decides which products show the button and how the button behaves. If you used Buy Now before Merchant 2.2.8, your old settings are already in a campaign named Default Campaign.

To edit a campaign, click its row in the Campaigns section. To add one, click Add New Campaign.

Buy Now campaign with status, name, and Apply to settings

Then set up the campaign:

  • Status: Choose Active to show the button, or Inactive to pause the campaign. You can also click the Active or Inactive badge on the row to switch it.
  • Campaign name: A name for your own reference. Customers don’t see it.
  • Apply to: Choose All Products, or limit the campaign to Specific Products, Specific Categories, Specific Tags, or Specific Brands.
  • Exclude products, Exclude categories, and Exclude tags: Turn on a toggle to pick items that won’t show the button.
  • Include subcategories: Appears when you pick categories. When it’s on, selecting a parent category also applies to its child categories.
  • User Condition: Show the button to All Users, Selected Users, or Selected Roles. Use Exclusion List to leave out specific users or roles.

Next, choose what happens when a customer clicks the button:

  • Cart Action: Keep existing cart items adds the product to the cart as it is. Clear cart before adding product empties the cart first, so the customer checks out with this product only.
  • Redirect After Purchase: Send customers to the Checkout page, or choose Custom URL and enter the address.
  • Button text: The label on the button. The default is Buy Now.
  • Button icon: Add a Cart, Lightning, or Arrow icon, or paste your own SVG with Custom SVG. Use Icon position to place it before or after the text.
  • Show Added to Cart Popup: Shows the Added to Cart Popup before the customer is redirected. This option needs Merchant Pro with the Added to Cart Popup module enabled.
Buy Now campaign redirect, button text, icon, and Added to Cart Popup settings

When more than one campaign matches a product, the first one in the list wins. Drag the rows to change their order.

Once you’re done, click the Save button in the top-right corner of the page.

Customizing the Button Style

The Button Style section applies to every campaign. Customize Button is on by default. Use it to change the button’s colors, borders, size, font size, margins, padding, and border radius. Turn it off to use your theme’s button design.

3. Configure the Display Settings

You can find the Display Settings section on the module’s admin page below the Button Style section.

Review and configure the following options:

  • Show on product archive – This checkbox adds the Buy Now button to your product archive pages, including the Shop page, product category pages, and others.
  • Show on single product page – Here, you can add the Buy Now button to your single product pages.
  • Show on upsell and related products – Here, you can add the Buy Now button to your upsell and related products widgets.
  • Loading position and priority on shop archive – This is a developer setting that lets you change how the Buy Now button is loaded on your product archive pages, including the Shop page (default values: ‘After shop loop item’, 10).
  • Loading position and priority on single product – This is also a developer setting that lets you change how the Buy Now button is loaded on the single product pages of your WooCommerce store (default values: ‘After add to cart button’, 10).

If you are not a WordPress developer leave the loading position and priority settings as the default values:

Buy Now module, Display Settings section, screenshot

Once the display settings are configured, click the Save button in the top-right corner of the page.

4. Enable the Buy Now Module

Finally, click the Enable button to activate the module:

Buy Now module, Enable button, screenshot
Still stuck? How can we help?