Shopify for WordPress: connect the buying path
Add a supported Shopify buying path to WordPress, checking catalogue ownership, embedded content, checkout and the actual order handover.
- Published
- Last updated
Yes, you can use Shopify for WordPress through a Buy Button embed or Shopify’s official plugin paired with the Sell on WordPress sales channel. Choose the embed for copied code or the plugin for native product and collection blocks. WordPress holds your content, while Shopify manages selling.
A product card appearing on a page is only the first checkpoint. The selected variant must reach checkout with the right price, and the completed order must appear in the right Shopify store.
Choose the WordPress and Shopify arrangement
Choose Shopify’s Buy Button for a copy-and-paste embed, or its current official WordPress plugin for native blocks. Both arrangements keep the selling records in Shopify. Its Buy Button documentation confirms that the channel is included in Shopify subscription plans and needs a supported payment gateway.
For the Buy Button arrangement explained below, assign ownership before adding the embed:
- WordPress owns editorial text, page navigation and the surrounding design.
- Shopify owns product records, variants and inventory settings.
- The Buy Button supplies the embedded buying control and, when selected, its cart.
- Shopify checkout handles payment, and Shopify holds the resulting order.
The current Shopify plugin and Sell on WordPress sales channel are a supported option distinct from older plugins in legacy tutorials. The plugin requires WordPress 5.0 or later and PHP 7.4 or later. It requires the Block Editor and Site Editor, and does not support the Classic Editor. Choose this route when you want to place Shopify product or collection blocks directly in WordPress.
WordPress hosting affects whether the embed can run. Shopify supports self-hosted WordPress sites and compatible WordPress.com plans. WordPress.com’s Custom HTML guidance requires a paid plan with hosting features activated for script tags. Saving ordinary HTML successfully does not establish that the buying script survives saving.
Choose a third-party connector only when you need something beyond these official arrangements. Read that connector’s own maintained documentation before installing it. Establish which product fields it reads, whether it writes back and how it refreshes stock. Give any additional subscription and support responsibility an owner. An imported product description alone does not establish a working checkout connection.
Connect the supported product display
Connect the product display to the Shopify store that must receive orders. You need permission to add the relevant sales channel and access to edit the destination page.
For the official plugin, follow Shopify’s connection instructions. Install and activate the Shopify plugin in WordPress, then install Sell on WordPress in Shopify. Connect them through the plugin’s settings using the channel’s access token. Keep that token private.
Make products available to Sell on WordPress. In the WordPress editor, select Add a Shopify product or Add a Shopify collection, choose the items and save. Shopify’s native-block instructions explain that product changes automatically sync from Shopify. Preview the saved page, then use the purchase checks below for your chosen product.
For the Buy Button route, create the button and paste its generated code into WordPress:
- Add the Buy Button sales channel in Shopify. Confirm the store identity before selecting products.
- Make the intended product available to that channel. Choose Product Buy Button or a collection, then select the item you want to sell.
- Select all variants or one intended variant. Compare the product identity with your catalogue record, especially when two products have similar names.
- Choose the button action. Add product to cart supports continued shopping. Direct to checkout takes the selected product straight to checkout and prevents adding more items to that order.
- Generate and copy the embed code. Insert a Custom HTML block in the WordPress page, paste the code and save it.
- Open the saved page as a visitor. Confirm that the product loads and the selected action reaches the intended Shopify checkout.
Shopify documents the button and variant settings and the WordPress embedding steps. Use those controls to set whether checkout opens in the same tab or a new window.
The customer’s WordPress login must not be treated as proof that they are signed into Shopify. Walk through checkout from a signed-out browser and check the customer details requested there. Confirm the currency and delivery destination before entering payment details.
Shopify says product-detail updates flow to the Buy Button. Keep prices in WordPress editorial paragraphs to a minimum because copied text needs separate updates. Change a test product’s price in Shopify, reload the WordPress page and compare the displayed amount with checkout. Repeat the check after any WordPress cache is cleared.
If the embed disappears after saving, inspect whether WordPress removed the script and correct the hosting or editing permission. If the wrong product appears, compare the embedded product identity with Shopify. Recreate the button when its configuration is wrong. Shopify’s Buy Button FAQ also states that Shopify App Store apps are incompatible with Buy Buttons. Do not assume an app’s storefront behaviour will appear inside the embed.
Verify a complete test purchase
Trace one fictional variant from the saved WordPress page to its Shopify order before opening the buying path to customers. Use a non-live setup and a supported test payment method. Shopify’s test-order guidance explains the available methods. A paid Shopify plan is required to test a payment gateway.
For example, create a fictional canvas tote with natural and navy variants. Use the navy variant throughout this check:
- Open the WordPress page in a signed-out browser. Select navy and add it to the embedded cart or proceed directly to checkout.
- Confirm the navy variant, quantity and currency at checkout. Check shipping charges and tax treatment for the fictional delivery destination.
- Complete the test payment. Find the order in Shopify and compare its line item with the original variant. Confirm the customer notification and the fulfilment details your team will use.
- Change the variant’s price in Shopify. Reload WordPress and start a new checkout. The product display and payable amount must reflect the intended price.
- Set the test variant’s stock to zero with selling after stock runs out disabled. Start a fresh purchase attempt. Confirm that the unavailable variant cannot complete a purchase.
- Restore available stock and repeat the permitted purchase. Confirm that the restriction has cleared without changing the variant being sold.
Record the starting WordPress page, selected variant and resulting Shopify test-order reference. If the amount changes unexpectedly or stock rules fail, pause that buying path and fix the product settings or embed before using it.
On a trading store, payment test mode prevents customers from placing live orders. Plan any such work around trading, and restore the payment configuration afterwards. Open the saved WordPress page once more with test mode off to confirm that the customer-facing buying path is ready.
Give your store its own shopping agent
Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.