开发者 |
developerjillur
Zonayed Ahamad sorobindu |
---|---|
更新时间 | 2024年11月27日 10:44 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[pmatc_ajax_cart_button]
to add custom buttons to any product page or archive.[pmatc_ajax_cart_button quantity_type="input" plus_button_text="+" minus_button_text="-" button_bg_color="#049f56" button_text_color="#ffffff" variable_product_text="Select Variable" external_product_text="View Product" grouped_product_text="View Group"]
/wp-content/plugins/woocommerce-plus-minus-ajax-add-to-cart
directory or install the plugin through the WordPress plugins screen directly.[pmatc_ajax_cart_button]
to display the cart button on any page, or select Replace Global to use globally.
Note: This plugin does not support the block editor and themes using the block editor.Yes, you can customize the button text for variable products from the settings page.
Yes, the plugin provides a shortcode generator that can be used to insert custom buttons on any page.
Yes, there is a dedicated field for adding custom CSS that will be applied to your custom cart buttons.
You can choose to replace cart buttons globally across single product, shop, category, and related products pages or use the shortcode for manual placement.
wp_enqueue_script
and wp_enqueue_style
for proper inclusion.if ( ! defined( 'ABSPATH' ) ) exit;
to all PHP files to block direct file access.