AI助手支持GPT4.0
Bears WooCommerce Quick View allows users to get a quick look of products without opening the product page.
Bears WooCommerce快速查看使用户无需打开产品页面即可快速浏览产品。 p>
WordPress how to install plugin
WordPress如何安装插件
The modal window shows the product’s:
模态窗口显示产品的: p>
ol>
To customize template, create a folder ‘bears-woocommerce-product-quick-view’ on your theme:
要自定义模板,请在主题上创建一个文件夹“ bears-woocommerce-product-quick-view”:
Example (custom layout quick view button):
示例(自定义布局快速查看按钮): p>
copy file: plugins/bears-woocommerce-product-quick-view/templates/loop/quick-view-button.php 复制文件:plugins / bears-woocommerce-product-quick-view / templates / loop / quick-view-button.phpto your theme: your-theme/bears-woocommerce-product-quick-view/loop/quick-view-button.php主题:your-theme / bears-woocommerce-product-quick-view / loop / quick-view-button.php-> edit the file.->编辑文件。 code> pre>Remove button quick view:删除按钮快速查看: p>add_action('wp_head', 'remove_button_quick_view'); add_action('wp_head','remove_button_quick_view');function remove_button_quick_view() { 函数remove_button_quick_view(){ global $BWC_Product_Quick_View; 全局$ BWC_Product_Quick_View; remove_action('woocommerce_after_shop_loop_item', array($BWC_Product_Quick_View, 'quick_view_button'), 5);remove_action('woocommerce_after_shop_loop_item',array($ BWC_Product_Quick_View,'quick_view_button'),5);}} code> pre>Move button quick view:移动按钮快速查看: p>global $BWC_Product_Quick_View; 全局$ BWC_Product_Quick_View;add_action('name action ...', array($BWC_Product_Quick_View, 'quick_view_button'), 15);add_action('name action ...',array($ BWC_Product_Quick_View,'quick_view_button'),15); code> pre>Hooks挂钩 h3>add_action(‘bwc_product_quick_view_before_single_product’, …); add_action(‘bwc_product_quick_view_before_single_product’,…); li>add_action(‘bwc_product_quick_view_after_single_product’, …); add_action(‘bwc_product_quick_view_after_single_product’,…); li> ol>
复制文件:plugins / bears-woocommerce-product-quick-view / templates / loop / quick-view-button.phpto your theme: your-theme/bears-woocommerce-product-quick-view/loop/quick-view-button.php主题:your-theme / bears-woocommerce-product-quick-view / loop / quick-view-button.php-> edit the file.->编辑文件。
to your theme: your-theme/bears-woocommerce-product-quick-view/loop/quick-view-button.php
主题:your-theme / bears-woocommerce-product-quick-view / loop / quick-view-button.php
-> edit the file.
->编辑文件。
code> pre>
Remove button quick view:
删除按钮快速查看: p>
add_action('wp_head', 'remove_button_quick_view'); add_action('wp_head','remove_button_quick_view');function remove_button_quick_view() { 函数remove_button_quick_view(){ global $BWC_Product_Quick_View; 全局$ BWC_Product_Quick_View; remove_action('woocommerce_after_shop_loop_item', array($BWC_Product_Quick_View, 'quick_view_button'), 5);remove_action('woocommerce_after_shop_loop_item',array($ BWC_Product_Quick_View,'quick_view_button'),5);}} code> pre>Move button quick view:移动按钮快速查看: p>global $BWC_Product_Quick_View; 全局$ BWC_Product_Quick_View;add_action('name action ...', array($BWC_Product_Quick_View, 'quick_view_button'), 15);add_action('name action ...',array($ BWC_Product_Quick_View,'quick_view_button'),15); code> pre>Hooks挂钩 h3>add_action(‘bwc_product_quick_view_before_single_product’, …); add_action(‘bwc_product_quick_view_before_single_product’,…); li>add_action(‘bwc_product_quick_view_after_single_product’, …); add_action(‘bwc_product_quick_view_after_single_product’,…); li> ol>
add_action('wp_head','remove_button_quick_view');function remove_button_quick_view() { 函数remove_button_quick_view(){ global $BWC_Product_Quick_View; 全局$ BWC_Product_Quick_View; remove_action('woocommerce_after_shop_loop_item', array($BWC_Product_Quick_View, 'quick_view_button'), 5);remove_action('woocommerce_after_shop_loop_item',array($ BWC_Product_Quick_View,'quick_view_button'),5);}}
function remove_button_quick_view() {
函数remove_button_quick_view(){
global $BWC_Product_Quick_View;
全局$ BWC_Product_Quick_View;
remove_action('woocommerce_after_shop_loop_item', array($BWC_Product_Quick_View, 'quick_view_button'), 5);
remove_action('woocommerce_after_shop_loop_item',array($ BWC_Product_Quick_View,'quick_view_button'),5);
}
Move button quick view:
移动按钮快速查看: p>
global $BWC_Product_Quick_View; 全局$ BWC_Product_Quick_View;add_action('name action ...', array($BWC_Product_Quick_View, 'quick_view_button'), 15);add_action('name action ...',array($ BWC_Product_Quick_View,'quick_view_button'),15); code> pre>Hooks挂钩 h3>add_action(‘bwc_product_quick_view_before_single_product’, …); add_action(‘bwc_product_quick_view_before_single_product’,…); li>add_action(‘bwc_product_quick_view_after_single_product’, …); add_action(‘bwc_product_quick_view_after_single_product’,…); li> ol>
全局$ BWC_Product_Quick_View;add_action('name action ...', array($BWC_Product_Quick_View, 'quick_view_button'), 15);add_action('name action ...',array($ BWC_Product_Quick_View,'quick_view_button'),15);
add_action('name action ...', array($BWC_Product_Quick_View, 'quick_view_button'), 15);
add_action('name action ...',array($ BWC_Product_Quick_View,'quick_view_button'),15);
This section describes how to install the plugin and get it working.
本节介绍如何安装插件并使其正常工作。 p>
e.g.
例如 p>
/wp-content/plugins/plugin-name
/ wp-content / plugins / plugin-name code>目录,或直接通过WordPress插件屏幕安装插件。 li>Activate the plugin through the ‘Plugins’ screen in WordPress通过WordPress中的“插件”屏幕激活插件 li>Use the Settings->Plugin Name screen to configure the plugin使用“设置”->“插件名称”屏幕来配置插件 li>(Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)(使您的说明与激活和安装插件所需的用户流程相匹配。包括说明性目的可能需要的所有步骤) li>
原文出处:http://www.sanshu.cn/a/4249.html
群主管理都是支付大佬