
內容簡介
產品通常由多個元素組成。
通常製造商允許您事先選擇元件。
為了達到這個目的需要一個視覺化問卷調查。
此外掛程式可以協助您簡單定義這樣的問卷。
重要事項
本外掛程式適用於Twenty Fourteen主題。這也適用於其他主題,但可能需要進行一些
檔案/css/fixed.css的更改。
設定與說明
價格、標題和圖片可以在設定文件
/wp-content/plugins/lisette-cost-calculator/config/questionnaire.php中進行更改。
問卷檔案的其他名稱可能是任何名稱,這種情況下必須在檔案中設定一個新名稱
lisette-cost-calculator.php
$application = new LisetteCCApplication([
'name' => 'questionnaire'
]);
任何問題都可以有答案。任何答案都可以包括:標題、圖片、價值。
如果參數值是數字,那麼它將被加入總和。
'question' => 'Headboard',
'answers' => [
[
'caption' => 'standard',
'image' => 'head-ordinary-2.jpg',
'value' => 500,
],
[
'caption' => 'design',
'image' => 'head-design-2.jpg',
'value' => 2550,
],
],
如果符號“*”放在數字前,則為係數。
'question' => 'Age',
'answers' => [
[
'caption' => '成人',
'image' => 'men.jpg',
'value' => '*1',
],
[
'caption' => '兒童',
'image' => 'child.jpg',
'value' => '*1.3',
],
],
所有圖像應放在文件夾 /wp-content/plugins/lisette-cost-calculator/img/中。
如果標題太長,可以加入小參數:
'question' => 'Model',
'answers' => [
[
'caption' => '帶升降機構',
'image' => 'with-lifting.jpg',
'value' => 230,
'small' => true,
],
],
如果未指定參數圖像,則將打印該項目但不顯示圖像。
'question' => '價格區間',
'answers' => [
['caption' => '經濟', 'value' => '*1'],
['caption' => '精品', 'value' => '*2'],
],
外掛標籤
開發者團隊
原文外掛簡介
Any product consists of elements.
Quite often the manufacturer allows you to select the components in advance.
For this goal should be a visual questionnaire.
This plugin helps simply define such a questionnaire.
Important
Plugin works for Twenty Fourteen theme. It will work for others too but
some changes in a file /css/fixed.css can be needed.
Installing the plugin requires some knowledge about PHP programming.
If you have downloaded the plugin and are using it, please do not forget to rate it.
Settings & Explanations
Price, captions, images can be changed in a configuration file
/wp-content/plugins/lisette-cost-calculator/config/questionnaire.php.
There may be any other name of a questionnaire file. In this case a new name should be set in a file
lisette-cost-calculator.php.
$application = new LisetteCCApplication([
'name' => 'questionnaire'
]);
Any question can has an answer. Any answer can has: caption, image, value.
If parameter value is a number, then it will be added to total sum.
'question' => 'Headboard',
'answers' => [
[
'caption' => 'standard',
'image' => 'head-ordinary-2.jpg',
'value' => 500,
],
[
'caption' => 'design',
'image' => 'head-design-2.jpg',
'value' => 2550,
],
],
If before number symbol “*” placed, then it is a coefficient.
'question' => 'Age',
'answers' => [
[
'caption' => 'Adult',
'image' => 'men.jpg',
'value' => '*1',
],
[
'caption' => 'Child',
'image' => 'child.jpg',
'value' => '*1.3',
],
],
All images should be placed in a folder /wp-content/plugins/lisette-cost-calculator/img/.
If caption too long add small parameter:
'question' => 'Model',
'answers' => [
[
'caption' => 'with lifting mechanism',
'image' => 'with-lifting.jpg',
'value' => 230,
'small' => true,
],
],
If parameter image is not specified, item will be printed without image.
'question' => 'Price class',
'answers' => [
['caption' => 'econom', 'value' => '*1'],
['caption' => 'elite', 'value' => '*2'],
],
