Discover, trust, install: FAIR 1.0 is here
Buy Now Button Redirect for WooCommerce
Version: 1.0.4
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
- Upload the plugin files to
/wp-content/plugins/buy-now-button-redirect-for-woocommerce/
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Configure settings under ‘WooCommerce > Buy Now Link’
Usage
Global Settings
- Go to WooCommerce > Buy Now Link
- Enable global redirect if desired
- 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
- If using Custom URL, enter the full URL (e.g.,
https://example.com/thank-you
) - 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
- Edit any product in WooCommerce
- Look for the “Buy Now Link Settings” metabox in the main content area
- Enable redirect for this specific product
- Choose redirect destination (same options as global settings)
- If using Custom URL, leave empty to use global custom URL
- Update the product
Priority System
The plugin uses a priority system for settings:
- Product-specific settings (highest priority)
- Global settings with targeting conditions (if product settings are disabled)
- 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.