Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
The Finance Base
Buy Button

Shopify Buy Button: How to Sell on Almost Any Website

Shopify Buy Button embeds products or collections into an existing website while Shopify handles cart, checkout, payments, inventory and orders. Here’s how to set it up, what it costs and where platform limitations matter.

By TheFinanceBase Team 8 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Shopify Buy Button lets you place Shopify products or collections on an existing website using generated HTML and JavaScript. Shopify continues to manage your catalog, inventory, cart, checkout, payments, orders and sales reporting, while your current site provides the surrounding content and design.

It works on WordPress, Squarespace, Wix and custom HTML only when the platform permits the required embed code or provides a compatible HTML widget. It is not a full replacement for Shopify’s Online Store, and “free Buy Button” refers to the channel—not to Shopify subscriptions or payment processing.

What Shopify Buy Button is

Buy Button is Shopify’s embeddable storefront component. In Shopify Admin, you select a product, variants or a collection and generate a code snippet. The snippet displays product information and purchase controls on another webpage, then connects shoppers to Shopify’s cart and checkout. Product, order and sales data remain in Shopify. See Shopify’s current documentation at Shopify Buy Button.

A button can show imagery, title, description, price, variant choices and quantity controls. You can use it in blog posts, landing pages, portfolio sites, email-linked pages and other content. For a link-only campaign, Shopify also supports cart permalinks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

It is not a native cart for every website, nor does it automatically adopt every part of the host site’s theme. Checkout remains Shopify-hosted infrastructure, even if the product appears inside your own page.

Who should use it?

Good fits

  • A blog or publisher selling a small product range.
  • A creator selling merchandise, books, courses or physical goods.
  • A portfolio or service site that needs occasional payments.
  • A business that wants Shopify inventory, checkout and order management without rebuilding its website.
  • A focused landing page where one product and a direct purchase action are sufficient.

When another approach is better

  • A large catalog that needs sitewide search, filters, collections and merchandising.
  • Complex memberships, subscriptions, bookings or product configuration.
  • A genuinely shared native cart across several independently embedded sites.
  • A platform that strips scripts or does not offer a usable HTML/Code block.
  • A store that needs every storefront element controlled by one Shopify theme.

Shopify warns that Buy Buttons inside a Shopify Online Store or Shopify blog can create checkout problems; use cart permalinks there instead.

How much does Shopify Buy Button cost?

The Buy Button channel is listed as free in the Shopify App Store (apps.shopify.com/buy-button), but it is not a standalone free commerce service. You need a Shopify subscription, a supported payment gateway and normal operating services such as shipping, taxes and any apps you choose.

Payment processing and possible third-party transaction fees depend on your Shopify plan, payment provider and country. Shopify Payments and available payment methods also vary by region. Shopify says its plans have no setup fee, but there is no reliable universal total: billing term, geography, promotions and plan changes affect the amount. Check the official Shopify pricing page for your country before committing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you need before starting

  • An active Shopify store and subscription plan.
  • A product with price, images, variants and inventory configured.
  • Shipping rates, tax settings and store policies appropriate to your market.
  • The product or collection made available to the Buy Button sales channel.
  • A supported payment gateway for your country or region.
  • A destination site that accepts custom HTML and JavaScript, or supplies an equivalent code widget.

How to add the Buy Button channel

  1. In Shopify Admin, open Settings → Sales channels.
  2. Click Shopify App Store, search for Buy Button, select Shopify’s channel and click Install.

In the Shopify mobile app, use Menu → Sales channels → Buy Button → Add app. The documented setup path is Shopify’s Buy Button setup guide.

How to create a product or collection button

Product Buy Button

  1. Open Sales channels → Buy Button in Shopify Admin.
  2. Click Create a Buy Button, then choose Product Buy Button.
  3. Select the product and either all variants or one specific variant.
  4. Choose a layout and click behavior.
  5. Adjust appearance, cart and checkout settings.
  6. Click Next → Copy code.
  7. Paste both the generated display element and script into your website’s HTML editor, then save and publish.

Collection Buy Button

  1. Create and configure the collection in Shopify.
  2. Make its products available to the Buy Button channel.
  3. Go to Sales channels → Buy Button → Create a Buy Button → Collection Buy Button.
  4. Select the collection, configure its appearance and action, then choose Next → Copy code.
  5. Paste the code into the destination page.

A collection embed presents a button or product presentation for each item, making it more practical than maintaining many separate product snippets.

Choose the right layout and click action

Option What the customer sees or does Best use
Basic A button without a product image. When your page already supplies the product presentation.
Classic Product image and price beside the button. Compact blog and editorial previews.
Full view Image, price and description in a larger product presentation. A mini product page within existing content.
Add product to cart Adds the item to an embedded cart so the shopper can continue. Pages where customers may buy several products.
Direct to checkout Sends the shopper directly to Shopify Checkout. Single-product campaigns and focused landing pages.
Open product details Opens product information, images, variants and add-to-cart controls. When a compact preview should expand before purchase.

Open product details is unavailable with Full view because Full view already displays the details. If several buttons share a page, configure them with the same action to avoid inconsistent cart behavior.

Embed Buy Button on your website

WordPress

  1. Edit the post or page and click +.
  2. Add a Custom HTML block.
  3. Paste the complete Shopify code, preview, then save or publish.

Self-hosted WordPress.org is documented as compatible; WordPress.com depends on the plan. With the Classic Editor plugin, paste code in Text mode, not Visual mode.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Squarespace

  1. Edit the page and insert a Code block.
  2. Set it to receive HTML and paste the code.
  3. Apply, save and test the published page.

JavaScript is disabled in the Squarespace dashboard, so use a separate preview. If the button does not load, Shopify says Ajax loading may need to be disabled. Theme-specific advanced styling is outside Shopify support.

Wix

  1. Open the Wix Website Editor and choose + → More.
  2. Add an HTML Code widget and select Enter Code.
  3. Paste the code, click Update, resize the widget, save and test the published site.

Wix cannot use Shopify’s Redirect in the same tab option. Separately embedded buttons can also create separate carts unless the code is configured appropriately; a collection embed is often simpler for a multi-product page.

Custom HTML and other builders

Paste the generated <div> and <script> into the page HTML. If the platform requires scripts in a header area, place the script there and the display element where the product should appear. Shopify’s current embed script loads the Buy Button SDK from https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js. Always test the published page, not only the editor preview.

For platform-specific instructions, see Shopify’s embed-code guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Customize the button and maintain it

The generator can change colors, fonts, button text, size, image alignment, layout, cart text and colors, order-note settings, additional information text, quantity controls where supported, and whether checkout opens in a new window or the same tab.

Checkout opens in a new window by default. For product or collection buttons, Advanced settings can switch to Redirect in the same tab where the platform supports it; Wix does not.

Product information changes made in Shopify flow through to the embedded button. Appearance changes do not: generate a new button and replace the old snippet when you change styling or configuration.

Pre-launch testing checklist

  • Test desktop and mobile layouts on the published page.
  • Check every variant, price, currency, image, title and inventory state.
  • Test quantity changes and both Add to Cart and Direct to Checkout flows when used.
  • Confirm the intended new-window or same-tab checkout behavior.
  • Complete a test order using Shopify’s available test-payment configuration.
  • Verify shipping rates and tax behavior.
  • Test a sold-out or unavailable variant.
  • Test with cookie-consent tools, ad blockers and other third-party scripts enabled.
  • Test more than one product and confirm whether items share one cart.

Troubleshooting common failures

The button is blank or missing

Rich-text editors often strip scripts. Confirm that both the display element and script remain, use the platform’s HTML/Code widget, publish the page and inspect the browser console for content-security-policy blocks. A site builder that disables JavaScript may require its support team; Shopify directs platform-specific editor issues to the platform provider.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A product or variant is missing

Confirm the product exists and is active, is available to the Buy Button channel, and that the generated snippet includes the intended variant or all variants. Recheck inventory and channel availability after product edits.

The cart is empty or products do not combine

Buy Buttons can create separate carts in Shopify blog contexts, and multiple unedited Wix embeds can create separate carts. Prefer a collection embed for a multi-product page or configure a shared-cart arrangement where the platform permits it, then test the exact live page.

Checkout will not open

Check that a supported gateway is active for your country, shipping zones and rates are configured, the item is available, and the platform has not altered the script. Also test pop-up blockers and browser privacy settings.

Styling edits do not appear

Replace the old embed with code from a newly generated button. This is different from product data, which can update from Shopify without changing the page code.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Squarespace or Wix-specific behavior

On Squarespace, disable Ajax loading if the button fails to initialize. On Wix, same-tab checkout is unavailable and separately embedded buttons may not share a cart.

Buy Button limitations and alternatives

Use Shopify’s full Online Store

Choose the Online Store when ecommerce navigation, search, collections, filters, customer accounts and a unified native cart are central to the business. Shopify documents the Online Store at help.shopify.com/en/manual/online-store; it requires Basic or higher.

Use cart permalinks

Use a cart permalink for a single-product link shared by email, direct message or social post, or when embedding inside a Shopify Online Store or blog could cause checkout conflicts.

Build a custom storefront

A custom storefront is appropriate when developers need application-level control over frontend behavior, merchandising, cart, checkout or customer accounts. It offers more flexibility than a widget but requires substantially more development.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a native platform store

WooCommerce (woocommerce.com) suits WordPress owners who want a native WordPress store and plugin control, with greater hosting and maintenance responsibility. Ecwid (ecwid.com) is another hosted add-on option. PayPal merchant tools (paypal.com/business) fit simple payment buttons or links rather than a complete Shopify-style catalog and order system.

Bottom line: is Shopify Buy Button right for you?

Use Buy Button when your existing website is valuable, your catalog is modest or focused, and you want Shopify to handle inventory, checkout, payments and orders without migrating the whole site. Choose the full Online Store for a store-first business, cart permalinks for simple campaign links, and a custom storefront for complex application requirements. The deciding test is practical: can your website safely accept Shopify’s HTML and JavaScript, and does the resulting cart behavior match how your customers need to shop?

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Money Desk

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.