[WordPress] 外掛分享: Buy Now Button Redirect for WooCommerce

首頁外掛目錄 › Buy Now Button Redirect for WooCommerce
全新外掛
安裝啟用
尚無評分
193 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.4 上架:2025-09-30

內容簡介

總結:這是一個 WooCommerce 外掛,讓您可以直接將「加入購物車」按鈕重定向到結帳頁面、購物車頁面,或自定義 URL。具有全局設置和單品定制功能,並提供先進的定位選項和現代化使用者介面。

問題與答案:

1. 這個外掛的主要功能是什麼?
- 回答:這是一個 WooCommerce 外掛,幫助您直接將「加入購物車」按鈕重定向到結帳頁面、購物車頁面或自定義 URL。

2. 這個外掛有哪些功能?
- 回答:它提供全局設置,可以為所有產品配置重定向行為,並且可以覆蓋全局設置以為單獨的產品進行定制,具有高級定位功能和現代化使用者界面。

3. 如何安裝這個外掛?
- 回答:將外掛文件上傳到 /wp-content/plugins/buy-now-button-redirect-for-woocommerce/,然後在 WordPress 的「外掛」菜單中啟用該外掛,最後在「WooCommerce > 購買立即連結」下配置設置。

4. 這個外掛如何使用全局設置?
- 回答:轉到 WooCommerce > 購買立即連結,在那裡啟用全局重定向,選擇重定向目的地:結帳頁面、購物車頁面或自定義 URL。

5. 這個外掛如何應用高級定位選項?
- 回答:該外掛可以通過分類、標籤或任何自定義分類來定位產品,並且可以應用於主要商店頁面、產品分類頁面、產品標籤頁面或所有產品歸檔頁面。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Buy Now Button Redirect for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon