跳到内容

CartBridge Checkout Links for WooCommerce

v1.0.1

Gik000 · 2026年6月17日 上架

Fills the WooCommerce cart automatically when customers arrive from a Meta (Facebook or Instagram) shop checkout URL.

正在使用
20+
评分
暂无
累计下载
396
最近更新
2026年6月22日
需要 WordPress 6.0+已测试到 7.0.9PHP 7.4+

贡献者

Since mid-2025 Meta no longer supports native on-platform checkout for Facebook and Instagram shops. Merchants must instead configure a Checkout URL on their own website — Meta documents this approach in the Commerce Platform Checkout URL setup guide. That URL should pre-fill the store cart and send customers straight to checkout.

CartBridge Checkout Links for WooCommerce handles this seamlessly. You configure your store URL as the checkout URL in Meta Commerce Manager and the plugin takes care of the rest: it reads the product list from the URL, fills the WooCommerce cart, and redirects the customer to the checkout page.

How it works

Meta appends a products query parameter to your checkout URL every time a customer taps “Buy” on your Facebook or Instagram shop listing:

https://yourstore.com/checkout?products=wc_post_id_123:2,wc_post_id_456:1

The plugin intercepts this request, adds the right products (and quantities) to the cart, and bounces the customer to /checkout in one smooth redirect.

Supported product ID formats

  • wc_post_id_123:2 — simple product with WooCommerce post ID 123, quantity 2
  • wc_post_id_123_variation_456:2 — variable product 123, variation 456, quantity 2
  • 123:2 — plain WooCommerce post ID (fallback format)

Optional parameters

  • coupon=CODE — applies a coupon code automatically
  • utm_source, utm_medium, utm_campaign, utm_content, utm_term — forwarded to the checkout URL for analytics
  • fbclid, cart_origin — forwarded for Meta attribution

Setup

  1. Install and activate the plugin.
  2. Follow Meta’s official Checkout URL setup guide.
  3. In Meta Commerce Manager Settings Checkout, choose Checkout on another website.
  4. Set the Checkout URL to your store’s checkout page, e.g. https://yourstore.com/checkout.
  5. Meta will automatically append the ?products=… parameter when a customer buys.

Security

  • All query-string values are sanitised before use.
  • Product IDs are validated against the WooCommerce catalogue; non-existent or non-purchasable products are silently skipped.
  • Quantities are capped at 99 per item; item count is capped at 50 per request.
  • The final redirect uses wp_safe_redirect().

Requirements

  • WordPress 6.0 or later
  • WooCommerce 7.0 or later
  • PHP 7.4 or later

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums