WP Manifestindependent plugin directory
manifest / ecommerce / woo-cpt-product-link

Woo CPT Product Link

Link any custom post type to a WooCommerce product. Display price, add-to-cart, and buy-now buttons via shortcodes and Bricks dynamic tags.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/blissguy/woo-cpt-product-link/archive/refs/heads/main.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

Link custom post type entries to WooCommerce products and render product data from CPT templates.

Description

Woo CPT Product Link lets selected public custom post types reference real WooCommerce products. It adds an editor product selector, frontend shortcodes, and Bricks dynamic data tags for product pricing, product details, product type, and whether a related product exists.

Installation

  1. Upload the woo-cpt-product-link folder to /wp-content/plugins/.
  2. Activate Woo CPT Product Link in WordPress.
  3. Open WooCommerce > Woo CPT Product Link and choose which public post types can link products.

Changelog

1.3.0

  • Extended extra_class="..." support to all shortcodes: [wcpl_price] and [wcpl_selected_variation_price] append to their default classes.
  • [wcpl_product] wraps its output in a span with wcpl-product-field classes plus your own, but only when extra_class is set; output is unchanged otherwise.
  • [wcpl_price] now also accepts product_id="..." like the button shortcodes.

1.2.0

  • Added a separate "Variable product button target" setting (defaults to checkout); the existing target setting now applies to simple products only.
  • [wcpl_add_to_cart] resolves its target from the matching setting based on product type; an explicit target="..." attribute still overrides both.
  • Variable/grouped product forms now bypass theme AJAX add-to-cart handlers (e.g. Bricks) so the configured redirect target always applies.

1.1.0

  • Split the plugin into single-responsibility classes under src/ with an autoloader (no behavior change).
  • Added extra_class="..." to [wcpl_add_to_cart] and [wcpl_buy_now] to append custom classes while keeping the defaults.
  • Documented label="..." for renaming the add-to-cart and buy-now buttons.

1.0.1

  • Initial development release.
  • Added WooCommerce product linking for enabled public custom post types.
  • Added frontend shortcodes for product price, selected variation price, product data, add-to-cart, and buy-now output.
  • Added Bricks dynamic data tags, including product link status and product type.
  • Added GitHub release update support through Plugin Update Checker.