Title: VForce Extensions
Author: Virtual
Published: <strong>2020년 3월 3일</strong>
Last modified: 2020년 3월 25일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/vforce-extensions.svg)

# VForce Extensions

 작성자: [Virtual](https://profiles.wordpress.org/virtualinc/)

[다운로드](https://downloads.wordpress.org/plugin/vforce-extensions.1.0.3.zip)

 * [세부사항](https://ko.wordpress.org/plugins/vforce-extensions/#description)
 * [평가](https://ko.wordpress.org/plugins/vforce-extensions/#reviews)
 * [개발](https://ko.wordpress.org/plugins/vforce-extensions/#developers)

 [지원](https://wordpress.org/support/plugin/vforce-extensions/)

## 설명

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’) ) `

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“VForce Extensions”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Virtual ](https://profiles.wordpress.org/virtualinc/)

[자국어로 “VForce Extensions”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/vforce-extensions)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/vforce-extensions/)는,
[SVN 저장소](https://plugins.svn.wordpress.org/vforce-extensions/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/vforce-extensions/)을 [RSS](https://plugins.trac.wordpress.org/log/vforce-extensions/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

### 1.0.3

 * Cleaned up some styling. Removed debug statements.
 * Fixed issue with WPEngine quick links in admin bar not showing up.
 * Added VForce Settings quick link to admin bar.
 * Added Association ID to VForce settings quick links.

### 1.0.2

 * Updated Formassembly integration. Added the ability to customize the message 
   show at the top of the page when a user is reviewing their form submission. This
   can currently be accessed by checking the “Show Formassembly Settings” checkbox
   in the right sidebar while editing a post or page. Note* currently you will need
   to reload the page to see the new Formassembly Form Settings section. It will
   appear below your page/post.
 * Fixed bug with Formidable forms not submitting.

### 1.0.1

 * Added Formassembly integration. Now you can simply insert the `[vforce_form formid
   ='id']` shortcode into a page or post. If you have issues with the form displaying,
   make sure that the id is in single qoutes. The server url defaults to https://
   virtual.tfaforms.net. You can change this under VForce Settings->Formassembly
   Settings. This plugin will not override or interfere with the official Formassembly
   plugin.

### 1.0

 * Removed Plugin update checker
 * Submitted to WordPress Plugins Repo
 * Added ACF dependency to allow for adding an Association ID override metabox to
   all pages/posts.
 * All pages/posts now have an Association ID override box. By default this box 
   is empty. There is a hook that runs just before each page is loaded. This function
   is in the main plugin file. It checks to see if a value has been set in the override
   box. If so, it will use the value in the override meta box as the global association
   id, if not it will use the default site wide Association ID/

// This function runs just before the requested page is loaded
 add_action(‘template_redirect’,‘
vforce_hook_before_page_load’); function vforce_hook_before_page_load(){ $vforce_helper
= get_option(‘vforce_helper’);

    ```
    wp_enqueue_script( 'init-global', plugin_dir_url( __FILE__ ) . 'inc/js/init-global.js', array('jquery'), '1.0', true );
    /* 
     Setting the association ID variable
     Check to see if a value has been entered into the Association Id override metabox of the page.
     If so, inject that into our init-global.js as the associationId variable.  If it has not been set,
     we then use the value entered into the plugin settings.
     The code for the metabox is in functions.php
    */
     wp_localize_script( 'init-global', 'associationId', (get_post_meta( get_the_ID(), 'vforce-metabox-settings-association_id', true) != "") ? get_post_meta( get_the_ID(), 'vforce-metabox-settings-association_id', true) : $vforce_helper['variable']['association-id']); 
    ```

}

 * vforce_helper is now a multidimensional array.

vforce_helper.variable
 {association-id: “a00f400000VQ8E6AAL”} vforce_helper.script{
formidable_add-to-cart: “true”, fa_web-to-case: “true”}

#### 0.6

*Added ability to update from Github releases

#### 0.5

 * Initial Release
 * Includes basic functionality for web to case, handling voting ballots and adding
   items to cart through formidable.
 * Basic readme included.

## 기초

 *  버전 **1.0.3**
 *  최근 업데이트: **6년 전**
 *  활성화된 설치 **10보다 적음**
 *  워드프레스 버전 ** 3.0.1 또는 그 이상 **
 *  다음까지 시험됨: **5.3.23**
 *  언어
 * [English (US)](https://wordpress.org/plugins/vforce-extensions/)
 * 태그:
 * [formassembly](https://ko.wordpress.org/plugins/tags/formassembly/)[salesforce](https://ko.wordpress.org/plugins/tags/salesforce/)
   [virtual](https://ko.wordpress.org/plugins/tags/virtual/)
 *  [고급 보기](https://ko.wordpress.org/plugins/vforce-extensions/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/vforce-extensions/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/vforce-extensions/reviews/)

## 기여자

 *   [ Virtual ](https://profiles.wordpress.org/virtualinc/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/vforce-extensions/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](https://virtualinc.com)