{"id":76383,"date":"2017-10-20T08:13:40","date_gmt":"2017-10-20T08:13:40","guid":{"rendered":"https:\/\/ru.wordpress.org\/plugins\/lisette-cost-calculator\/"},"modified":"2025-01-04T08:10:52","modified_gmt":"2025-01-04T08:10:52","slug":"lisette-cost-calculator","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/lisette-cost-calculator\/","author":13245658,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3","stable_tag":"1.3","tested":"6.7.5","requires":"4.0","requires_php":"5.3","requires_plugins":null,"header_name":"Lisette Cost Calculator","header_author":"Sergey Morozov","header_description":"\u0421osts calculator works","assets_banners_color":"93968d","last_updated":"2025-01-04 08:10:52","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1372,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":{"1.1":{"tag":"1.1","author":"sergmoro1","date":"2021-09-10 05:58:55"},"1.2":{"tag":"1.2","author":"sergmoro1","date":"2024-12-26 07:26:52"},"1.3":{"tag":"1.3","author":"sergmoro1","date":"2025-01-04 08:10:52"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":1749818,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":1749818,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-rtl.jpg":{"filename":"banner-1544x500-rtl.jpg","revision":1749818,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":1749818,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.jpg":{"filename":"banner-772x250-rtl.jpg","revision":1749818,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1749818,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[716,16919],"plugin_category":[59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-76383","plugin","type-plugin","status-publish","hentry","plugin_tags-calculator","plugin_tags-questionnaire","plugin_category-utilities-and-tools","plugin_committers-sergmoro1"],"banners":{"banner":"https:\/\/ps.w.org\/lisette-cost-calculator\/assets\/banner-772x250.jpg?rev=1749818","banner_2x":"https:\/\/ps.w.org\/lisette-cost-calculator\/assets\/banner-1544x500.jpg?rev=1749818","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/lisette-cost-calculator\/assets\/icon-128x128.jpg?rev=1749818","icon_2x":"https:\/\/ps.w.org\/lisette-cost-calculator\/assets\/icon-256x256.jpg?rev=1749818","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Any product consists of elements. \nQuite often the manufacturer allows you to select the components in advance.<\/p>\n\n<p>For this goal should be a visual questionnaire. \nThis plugin helps simply define such a questionnaire.<\/p>\n\n<h3>Important<\/h3>\n\n<p>Plugin works for Twenty Fourteen theme. It will work for others too but\nsome changes in a file <code>\/css\/fixed.css<\/code> can be needed.<\/p>\n\n<p>Installing the plugin requires some knowledge about PHP programming.<\/p>\n\n<p>If you have downloaded the plugin and are using it, please do not forget to rate it.<\/p>\n\n<h3>Settings &amp; Explanations<\/h3>\n\n<p>Price, captions, images can be changed in a configuration file\n    \/wp-content\/plugins\/lisette-cost-calculator\/config\/questionnaire.php.<\/p>\n\n<p>There may be any other name of a questionnaire file. In this case a new name should be set in a file\n    lisette-cost-calculator.php.<\/p>\n\n<pre><code>$application = new LisetteCCApplication([\n    'name' =&gt; 'questionnaire'\n]);\n<\/code><\/pre>\n\n<p>Any question can has an answer. Any answer can has: <code>caption<\/code>, <code>image<\/code>, <code>value<\/code>.\nIf parameter <code>value<\/code> is a number, then it will be added to total sum.<\/p>\n\n<pre><code>'question' =&gt; 'Headboard', \n    'answers' =&gt; [\n        [\n            'caption' =&gt; 'standard',\n            'image' =&gt; 'head-ordinary-2.jpg',\n            'value' =&gt; 500,\n        ],\n        [\n            'caption' =&gt; 'design',\n            'image' =&gt; 'head-design-2.jpg',\n            'value' =&gt; 2550,\n        ],\n    ],\n<\/code><\/pre>\n\n<p>If before number symbol \"*\" placed, then it is a coefficient.<\/p>\n\n<pre><code>'question' =&gt; 'Age',\n    'answers' =&gt; [\n        [\n            'caption' =&gt; 'Adult', \n            'image' =&gt; 'men.jpg', \n            'value' =&gt; '*1',\n        ],\n        [\n            'caption' =&gt; 'Child', \n            'image' =&gt; 'child.jpg', \n            'value' =&gt; '*1.3',\n        ],\n    ],\n<\/code><\/pre>\n\n<p>All images should be placed in a folder <code>\/wp-content\/plugins\/lisette-cost-calculator\/img\/<\/code>.<\/p>\n\n<p>If caption too long add <code>small<\/code> parameter:<\/p>\n\n<pre><code>'question' =&gt; 'Model',\n    'answers' =&gt; [\n        [\n            'caption' =&gt; 'with lifting mechanism', \n            'image' =&gt; 'with-lifting.jpg', \n            'value' =&gt; 230, \n            'small' =&gt; true,\n        ],\n    ],\n<\/code><\/pre>\n\n<p>If parameter <code>image<\/code> is not specified, item will be printed without image.<\/p>\n\n<pre><code>'question' =&gt; 'Price class',\n    'answers' =&gt; [\n        ['caption' =&gt; 'econom', 'value' =&gt; '*1'],\n        ['caption' =&gt; 'elite', 'value' =&gt; '*2'],\n    ],\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Unpack archive to folder <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate plagin Lisette-cost-calculator.<\/li>\n<li>Add post or page and insert short-code - <code>[cost_calculator]<\/code>.<\/li>\n<li>Place the widget <code>Lisette_CC Sum<\/code> on the appropriate sidebar or in another place<\/li>\n<\/ol>","raw_excerpt":"Show questionnaire for calculating final sum of order.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/76383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=76383"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sergmoro1"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=76383"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=76383"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=76383"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=76383"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=76383"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=76383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}