HomeAdd a widgetWordPress
Add an online store to WordPress
A shop widget on any WordPress page — no store theme, no cart plugin — placed with Sorraia’s own plugin or one copy-paste into a Custom HTML block, with payments landing in the site owner’s own Stripe account.
Self-hosted WordPress: no plan needed · WordPress.com: a paid plan with hosting features activated
Free plan with no time limit, no card.
See it working
This is a real Sorraia shop widget — our own sample product, embedded here exactly the way you would embed yours. Checkout is switched off on this one: click Buy and you will get “This shop is not ready to accept payments yet.” instead of a Stripe page. Everything up to that point is the live product.
How to add an online store to WordPress
A store plugin is the right tool for a catalogue and a lot of machinery for one product. With Sorraia’s plugin connected, a book, a course or a deposit goes onto the page that already sells it: pick the product in the Sorraia widget block, or paste its shortcode, and the buyer checks out on Stripe’s hosted page. Nothing turns into a store — no cart, no checkout page, no product tables in WordPress. Without the plugin, the Custom HTML block steps below place the same Buy button.
In Sorraia, add the website and verify it — a DNS TXT record, or a meta tag in your homepage’s <head>. Verification is what lets you attach a widget to that site, so it comes before there is anything to paste.
Save the product and the Copy Embed Code popup appears; the Install wizard on the product’s row on the Shop page does the same with a verification step.
Open the page in WordPress (Pages → hover the page → Edit) and put the cursor where the widget should sit.
Click the Block Inserter (the + icon), search for “HTML”, and choose Custom HTML. In an empty paragraph you can also type /html and press Enter.
On WordPress 7.0, click Edit HTML on the block to open its editing modal, paste the Sorraia snippet into the HTML panel, and press Update. On earlier versions, paste it straight into the block. Then click Publish or Update on the page.
Open the live page in a new tab, logged out or in a private window, and check the widget there rather than in the editor.
Where these steps come from:12
Add the DNS TXT record if you manage the domain’s DNS. Otherwise the meta tag goes in your homepage’s <head>: a header-and-footer plugin such as WPCode has a Header box for exactly this.3
Self-hosted WordPress has no plan gate on any of this. WordPress.com filters script tags out of the Custom HTML block on the free plan, so nothing renders. Any paid plan — Personal, Premium, Business or Commerce — runs the snippet once its hosting features are activated: install a plugin, upload a third-party theme, or (on Business and Commerce) turn on backups. Commerce sites are activated automatically. Activation is one-time, and it moves the site’s default address to *.wpcomstaging.com.4567
Worth knowing for this one
- Caching and optimisation plugins can defer or delay JavaScript — LiteSpeed Cache lists both among its features — and a held-back loader means a Buy button that appears late or not at all.8
- On WordPress.com, installing Sorraia’s plugin is itself one of the ways a paid plan activates its hosting features, the step that lets a Custom HTML block keep a script tag.64
What WordPress already has
WooCommerce is the usual route: its directory page calls it the open-source ecommerce platform for WordPress, with a free core, and on WordPress.com you can install it on any paid plan — the Commerce plan installs it for you. WordPress.com also has a Payments block on Premium, Business and Commerce, taking one-off or recurring payments through a connected Stripe account. For a real catalogue, a store is worth it. For one product on a site that is otherwise finished, a Sorraia shop widget adds a Buy button without a store to run, and reports each order to the dashboard you use for every client site.91011
What’s included
- Payments land in the site owner’s own Stripe account
- Styled to match: colours from the site’s brand kit
- Live with one copy-paste
- One dashboard across client sites
Free plan with no time limit, no card.
More detail in the Help Center: Shop basics · Embedding on your website
Questions
Do I need WooCommerce to sell one product on WordPress?
No. A Sorraia shop widget checks out on Stripe’s hosted page, so there is no cart, checkout page or product table for WordPress to run; the site only needs a page for the Buy button.
Where does the shortcode for a Sorraia product come from?
From Settings → Sorraia: once the plugin is connected, its Your widgets table shows each shop widget with its shortcode and a Copy button. Paste it into any editor, or use the Sorraia widget block and pick the product by name.
Does the Buy button survive WP Rocket or LiteSpeed Cache?
Yes, as long as the widget’s script isn’t deferred or delayed. Sorraia’s plugin adds its scripts to the exclusion lists of WP Rocket, Perfmatters and LiteSpeed Cache for you; a snippet pasted by hand needs its script address added to the exclusions.
Can each client’s WordPress shop pay into the client’s own Stripe?
Yes. In Sorraia each site can connect its own Stripe account, and that connection receives all of the site’s shop revenue: the buyer pays on Stripe’s hosted checkout and the money lands with the client.
Can I change the price later without editing the WordPress page?
Yes. The product lives in Sorraia; save a change there and the widget on the page shows it the next time it loads, with nothing to edit in WordPress.
Sources
- Custom HTML block · wordpress.org
- Adding a new block · wordpress.org
- WPCode header and footer · wpcode.com
- Custom HTML block (WordPress.com) · wordpress.com
- Code on WordPress.com · wordpress.com
- Activating a WordPress.com plan · wordpress.com
- Plugins on WordPress.com · wordpress.com
- LiteSpeed Cache (plugin directory) · wordpress.org
- WooCommerce (plugin directory) · wordpress.org
- WooCommerce on WordPress.com · wordpress.com
- Payments block (WordPress.com) · wordpress.com
Each page read and checked on 20 October 2026.
Add an online store to WordPress
Build it in Sorraia, put it live on your WordPress site with one copy-paste, and change it later without touching the embed again.