Install
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/robhuijben/wp-woo-better-alternative/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Display a prominent “Better alternative” suggestion on WooCommerce product pages. The block is powered by Advanced Custom Fields (ACF) so store managers can highlight upsell products that better match a shopper’s needs.
Features
- Adds a reusable Better Alternative block to single product pages out of the box.
- Leverages ACF to let editors pick alternative products and control the copy without touching code.
- Ships with an overridable template (
templates/block-better-alternative.php) so developers can match any storefront design.
Installation
- Download or clone this repository into
wp-content/plugins/wp-woo-better-alternative. - Ensure WooCommerce and Advanced Custom Fields (free or PRO) are active on your site.
- From the WordPress admin, go to Plugins → Installed Plugins and activate WP Woo Better Alternative.
Configuration
- Create the required ACF field group (e.g. a Relationship or Post Object field) that stores the alternative product reference and assign it to WooCommerce products.
- Populate the Better Alternative field on each product you want to enhance.
- Optionally copy
templates/block-better-alternative.phpto your theme (e.g. intoyour-theme/woocommerce/) and customize the markup or styling to match your brand. - Flush any page cache so the new block appears immediately for customers.