[WordPress] 外掛分享: VForce Extensions

前言介紹

  • 這款 WordPress 外掛「VForce Extensions」是 2020-03-02 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2020-03-25,距離現在已有 1864 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

virtualinc |

外掛標籤

vforce | virtual | salesforce | formassembly |

內容簡介

透過 WordPress 輕鬆管理 Vforce 整合,目前支援透過 Form Assembly 的投票表單和 Web 到 Case 表單,以及透過 Formidable 將產品新增到購物車的功能。

包含的函式:
- js/init-global.js:
此檔案實際上並無作用,只是為了與希望在每個頁面中可用的變數陣列一起傳遞到 ```php wp_localize_script()``` 函數。
- js/formidable/add-to-cart.js:
此腳本可讓您創建一個帶有 WooCommerce 產品下拉選單或單選按鈕的 Formidable 表單。 一旦使用者選擇產品並在表單上按下下一步,產品 ID 將會存儲在其瀏覽器中。 當他們完成表單時,會使用 Ajax 請求將其存入購物車。
- js/form-assembly/hide-ballot.js:
此腳本將根據名稱為 Ballot Cast 的輸入值的值來顯示或隱藏表單。 如果在頁面上找到該輸入,並且其值等於 Cast 或 cast ,則使用者將看到自定義消息而不是投票表單。 可以通過轉到插件設置(Vforce 擴展)並更改 Form Assembly Ballot Message 文本區域來自定義消息。 包括預設消息。
- js/form-assembly/web-to-case.js:
此功能將在嵌入到任何頁面上的表格中自動添加關聯 ID。 可以在插件設置中設置關聯 ID 。
- 全局變數:
每個頁面應該都可以存取名為 vforce_helper 的對象。 此對象包含來自設置面板的所有自定義變數。

請注意,上述內容翻譯工具僅提供簡易的轉譯,若有任何翻譯不符合上下文,還請您斟酌上下文後再行運用。

原文外掛簡介

Easily manage Vforce integrations through WordPress. Currently supports voting forms and web to case forms through Form Assembly. As well as adding products to a cart through Formidable.
Included Functions
js/init-global.js
This file doesn’t actually do anything. It only exists to be passed into the
php
wp_localize_script()
function along with an array of variables that we would like to be available to every page.
js/formidable/add-to-cart.js
This script allows you to create a formidable form with woocommerce products in a dropdown or radio buttons. Once the user chooses a product and clicks next on the form, the product id is saved in their browser. When they complete the form, an Ajax request is made to add the time to their cart.
js/form-assembly/hide-ballot.js
This script will show/hide a form based on the value of an input with title of Ballot Cast. If that input is found on the page and its value is equal to Cast or cast, then the user will see a custom message instead of the voting form. The message can be customized by going to the plugin settings (Vforce Extensions) and changing the Form Assembly Ballot Message textarea. A default message is included.
In order for this to work properly, please make sure to wrap the form in a div with the class of ballot-container.
E.g.
`html

[formassembly formid=50 server=https://virtual.tfaforms.net]
`

This way the form will be hidden by default and will either appear or show the message when page loads.
js/form-assembly/web-to-case.js
Automatically adds the association id to a Form Assembly contact form embedded on any page. The association id can be set in the plugin settings.
Global Variables
Every page should have access to an object called vforce_helper. This object contains all custom variables from the settings pane.
e.g.
`javascript

vforce_helper
{assocId: “”, faProductSelector: “item_meta[6]”, ballotCastMessage: “”}
`
This is accomplished by passing key/value pairs to the following function in the plugins functions.php file
`php

wp_localize_script( ‘init-global’, ‘vforce_helper’, array(
‘assocId’ => get_option(‘association_id’),
‘faProductSelector’ => get_option(‘form_assembly_product_selector’),
‘ballotCastMessage’ => get_option(‘form_assembly_ballot_message’)
)
`

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「VForce Extensions」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.0.1 | 1.0.2 | 1.0.3 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon