Discover, trust, install: FAIR 1.0 is here

Plugin Banner

Buy Now Button Redirect for WooCommerce

by WP SITES

Version: 1.0.4

Download
Description

A WooCommerce plugin that allows you to redirect the “Add to Cart” button directly to the checkout page, cart page, or a custom URL. Features both global settings and per-product customization with advanced targeting options and modern UI.

Features

  • Global Settings: Configure redirect behavior for all products
  • Per-Product Settings: Override global settings for individual products
  • Advanced Targeting: Target products by taxonomy and shop archives
  • AJAX Support: Works on both single product pages and shop/archive pages
  • Multiple Redirect Options:
    • Checkout page
    • Cart page
    • Custom URL
  • Smart Fallback: Product settings override global settings
  • Modern Interface: Enhanced UI with Select2 dropdowns and WordPress styling
  • Responsive Design: Clean, professional admin interface

Installation

  1. Upload the plugin files to /wp-content/plugins/buy-now-button-redirect-for-woocommerce/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure settings under ‘WooCommerce > Buy Now Link’

Usage

Global Settings

  1. Go to WooCommerce > Buy Now Link
  2. Enable global redirect if desired
  3. Choose redirect destination:
    • Checkout Page: Redirects to WooCommerce checkout
    • Cart Page: Redirects to WooCommerce cart
    • Custom URL: Redirects to a custom URL of your choice
  4. If using Custom URL, enter the full URL (e.g., https://example.com/thank-you)
  5. Save settings

Targeting Options

The plugin includes advanced targeting options to apply redirects only to specific products or pages:

Taxonomy Targeting

  • Target products by category, tag, or any custom taxonomy
  • Select2 Dropdowns: Modern, searchable multi-select dropdowns for easy term selection
  • Select specific terms within each taxonomy
  • Only products with selected terms will have redirects applied
  • Visual Tags: Selected terms display as styled tags with WordPress blue theme

Shop Archive Targeting

  • Main Shop Page: Apply redirects on the main shop page
  • Product Category Pages: Apply redirects on category archive pages
  • Product Tag Pages: Apply redirects on tag archive pages
  • All Product Archive Pages: Apply redirects on all product archive pages

Single Product Settings

Individual product “Add to Cart” buttons can be configured to redirect directly to checkout, cart, or a custom URL. This is perfect for products that should bypass the cart entirely or redirect to specific landing pages.

Per-Product Settings

  1. Edit any product in WooCommerce
  2. Look for the “Buy Now Link Settings” metabox in the main content area
  3. Enable redirect for this specific product
  4. Choose redirect destination (same options as global settings)
  5. If using Custom URL, leave empty to use global custom URL
  6. Update the product

Priority System

The plugin uses a priority system for settings:

  1. Product-specific settings (highest priority)
  2. Global settings with targeting conditions (if product settings are disabled)
  3. No redirect (if both are disabled or targeting conditions not met)

Targeting Logic

When targeting options are configured:
Taxonomy targeting: Only products with selected taxonomy terms will have redirects
Archive targeting: Redirects only apply on selected shop archive pages
Combined targeting: All conditions must be met for redirects to apply

Changelog

1.0.4

  • Admin Interface Enhancement: Added Single Product Settings section to global settings page
  • User Guidance: Added clear instructions for configuring individual product redirects
  • Documentation: Improved admin page with better user guidance

1.0.3

  • Settings Page Fix: Fixed settings page display issue caused by page slug mismatch
  • Settings Registration: Corrected settings sections and fields registration
  • Admin Interface: Ensured all settings fields display properly in admin panel

1.0.2

  • Additional WordPress.org Plugin Review Fixes: Resolved remaining plugin review issues
  • Custom Hook Names: Replaced WooCommerce core hook names with custom hook names
  • Menu Slug: Updated admin menu slug to use proper prefix
  • Documentation: Updated README with correct file paths and structure
  • Changelog: Comprehensive changelog updates

1.0.1

  • WordPress.org Plugin Review Compliance: Fixed all plugin review issues
  • Unique Naming: Replaced short ‘dtc’ prefix with longer ‘buynobur’ prefix throughout plugin
  • Text Domain: Updated text domain to match plugin slug exactly
  • Contributors: Added ‘braddalton’ to contributors list
  • Enqueue Standards: Replaced inline scripts/styles with proper wp_enqueue functions
  • File Structure: Separated admin CSS and JS into dedicated files
  • Code Standards: Improved code organization and WordPress coding standards compliance

1.0.0

  • Initial release
  • Global settings page in WooCommerce menu
  • Per-product metabox in main content area
  • Multiple redirect options (Checkout, Cart, Custom URL)
  • Advanced targeting by taxonomy and shop archives
  • AJAX support for shop and archive pages
  • Select2 integration for taxonomy selection
  • Enhanced admin styling with WordPress blue theme
  • Smart field display (Custom URL shows only when needed)
  • Responsive design and professional UI
  • Improved meta box styling with background and spacing

Support

For support and questions, please contact the plugin author.

License

This plugin is licensed under the GPL v2 or later.

  • Version:Version: 1.0.4
  • Last updated:Last updated: 3 days ago
  • Requires:Requires: 5.0
  • Tested:Tested: 6.8.3
Average rating:0 out of 5 stars.
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
Back to top