Skip to content
跨境独立站开店
Guides

How to integrate Shopify and WordPress

This guide explains how to integrate Shopify and WordPress. Shopify is an e-commerce platform that makes it easy to open an online store, and WordPress is a service that makes it easy to create a blog. Using Shopify's features, you can easily insert a purchase button into your WordPress site.

Check Shopify registration offers in your regionSee current offer

Shopify makes it easy to list products on your existing WordPress site and turn it into an e-commerce site. This guide explains how to integrate Shopify with WordPress in a way that's easy for beginners to understand.

Shopify is a user-friendly e-commerce platform that makes it easy to set up an online store. WordPress is an open-source content management system that allows you to easily create and customize blogs, but it doesn't have built-in shop functionality. With Shopify, you can easily list products on your existing WordPress site and turn it into an e-commerce site.

This guide explains how to integrate Shopify and WordPress in a way that's easy for beginners to understand.

How to integrate Shopify and WordPress

There are two ways to connect Shopify and WordPress: pasting the purchase button created in Shopify into WordPress using HTML, or installing a plugin in WordPress that connects Shopify and WordPress. To connect your Shopify shop with WordPress, you first need to prepare the following:

  • Register with Shopify
  • Set up payment and shipping methods on Shopify
  • Register a product
  • Configure the purchase button.

How to create a buy button on Shopify and embed it in WordPress

The most common way to integrate Shopify with WordPress is to embed Shopify's buy buttons into your WordPress blog using HTML. This method can also be used on websites other than WordPress that allow HTML editing, and creating and using buy buttons is included in Shopify's basic plan.

Here's how to create a purchase button:

  • From the admin panel, click [Settings] > [Apps and Sales Channels].
  • On the [Apps and Sales Channels] page, click the [Buy Button].
  • Click [Open sales channel]
  • Click [Create a purchase button]
  • Click the product purchase button.
  • Select an item from the catalog or use the search function to find an item. Click [Select].
  • After selecting the product, click [Copy Code].
  • In the WordPress block editor, click the [+] button, search for [Custom HTML], and insert it.
  • Insert the HTML code you copied earlier and save it (see "Adding the purchase button code to HTML").

How to use the Shopify WordPress plugin

If you find it tedious to copy and paste HTML code into WordPress every time, you can use a plugin. Previously, there was an official Shopify WordPress plugin, but unfortunately, it's no longer available.

There are many Shopify plugins available, but they are all third-party, so caution is advised when using them.

You can create an e-commerce site using only Shopify.

Integrating Shopify with a WordPress site is easy, but you can also create highly customizable, professional websites using Shopify alone. We've included some examples of well-designed websites built with Shopify, so please take a look for inspiration.

Share this article

  • Share on Facebook
  • Share on X
  • Share on LinkedIn

Related reading

View all
View offer
Shopify

Start free and explore current offers

Visit Shopify for trial duration, eligible plans and promotions available in your region.

Register free with ShopifyAffiliate disclosure