[wordpress插件] Bears WooCommerce Product Quick ViewBears WooCommerce产品快速查看

wordpress 插件 文章 2020-03-02 11:50 483 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Bears WooCommerce Quick View allows users to get a quick look of products without opening the product page.

Bears WooCommerce快速查看使用户无需打开产品页面即可快速浏览产品。

Quick View Modal

快速查看模式

WordPress how to install plugin

WordPress如何安装插件

The modal window shows the product’s:

模态窗口显示产品的:

    1. Main featured image
    2. 主要特色图片

    3. Title
    4. 标题

    5. Price
    6. 价格

    7. Short description
    8. 简短说明

    9. View button
    10. 查看按钮

    11. Cart buttons
    12. 购物车按钮

    Compatible

    兼容

      1. WooCommerce 3.x
      2. WooCommerce 3.x

      3. WooCommerce Variation Swatches and Photos
      4. WooCommerce变化色板和照片

      5. WooCommerce Product Bundles
      6. WooCommerce产品包

      Changing Template

      更改模板

      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):

      示例(自定义布局快速查看按钮):

      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.php

      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.

      ->编辑文件。

      Remove button quick view:

      删除按钮快速查看:

      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);

      }

      }

      Move button quick view:

      移动按钮快速查看:

      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);

      Hooks

      挂钩

        1. add_action(‘bwc_product_quick_view_before_single_product’, …);
        2. add_action(‘bwc_product_quick_view_before_single_product’,…);

        3. add_action(‘bwc_product_quick_view_after_single_product’, …);
        4. add_action(‘bwc_product_quick_view_after_single_product’,…);

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

e.g.

例如

    1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Use the Settings->Plugin Name screen to configure the plugin
    6. 使用“设置”->“插件名称”屏幕来配置插件

    7. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)
    8. (使您的说明与激活和安装插件所需的用户流程相匹配。包括说明性目的可能需要的所有步骤)

下载地址
https://downloads.wordpress.org/plugin/bears-woocommerce-product-quick-view.zip
-EOF-

AI助手支持GPT4.0