Changeset 3232179
- Timestamp:
- 01/30/2025 04:57:07 PM (14 months ago)
- Location:
- art-woocommerce-order-one-click
- Files:
-
- 147 added
- 12 edited
-
tags/3.1.0 (added)
-
tags/3.1.0/art-woo-order-one-click.php (added)
-
tags/3.1.0/assets (added)
-
tags/3.1.0/assets/css (added)
-
tags/3.1.0/assets/css/admin-style.css (added)
-
tags/3.1.0/assets/css/admin-style.min.css (added)
-
tags/3.1.0/assets/css/awooc-styles.css (added)
-
tags/3.1.0/assets/css/awooc-styles.min.css (added)
-
tags/3.1.0/assets/js (added)
-
tags/3.1.0/assets/js/awooc-admin-script.js (added)
-
tags/3.1.0/assets/js/awooc-admin-script.min.js (added)
-
tags/3.1.0/assets/js/awooc-public-script.js (added)
-
tags/3.1.0/assets/js/awooc-public-script.min.js (added)
-
tags/3.1.0/assets/js/awooc-scripts.js (added)
-
tags/3.1.0/assets/js/awooc-scripts.min.js (added)
-
tags/3.1.0/classes (added)
-
tags/3.1.0/classes/Admin (added)
-
tags/3.1.0/classes/Admin/Create_Form.php (added)
-
tags/3.1.0/classes/Admin/Settings.php (added)
-
tags/3.1.0/classes/Admin/Settings_Fields.php (added)
-
tags/3.1.0/classes/Enqueue.php (added)
-
tags/3.1.0/classes/Front.php (added)
-
tags/3.1.0/classes/Main.php (added)
-
tags/3.1.0/classes/Mode.php (added)
-
tags/3.1.0/classes/Prepare (added)
-
tags/3.1.0/classes/Prepare/Analytics.php (added)
-
tags/3.1.0/classes/Prepare/Mail.php (added)
-
tags/3.1.0/classes/Prepare/Popup.php (added)
-
tags/3.1.0/classes/Prepare/Prepare.php (added)
-
tags/3.1.0/classes/Product (added)
-
tags/3.1.0/classes/Product/Meta.php (added)
-
tags/3.1.0/classes/RequestHandler.php (added)
-
tags/3.1.0/classes/RequestProcessing (added)
-
tags/3.1.0/classes/RequestProcessing/EmailModifier.php (added)
-
tags/3.1.0/classes/RequestProcessing/OrderCreator.php (added)
-
tags/3.1.0/classes/Requirements.php (added)
-
tags/3.1.0/classes/Templater.php (added)
-
tags/3.1.0/classes/Uninstall.php (added)
-
tags/3.1.0/includes (added)
-
tags/3.1.0/includes/create-cf7-field.php (added)
-
tags/3.1.0/includes/helpers.php (added)
-
tags/3.1.0/includes/template-functions.php (added)
-
tags/3.1.0/languages (added)
-
tags/3.1.0/languages/art-woocommerce-order-one-click-ru_RU.mo (added)
-
tags/3.1.0/languages/art-woocommerce-order-one-click-ru_RU.po (added)
-
tags/3.1.0/languages/art-woocommerce-order-one-click-ru_RU.pot (added)
-
tags/3.1.0/readme.txt (added)
-
tags/3.1.0/templates (added)
-
tags/3.1.0/templates/add-to-cart (added)
-
tags/3.1.0/templates/add-to-cart/loop (added)
-
tags/3.1.0/templates/add-to-cart/loop/catalog.php (added)
-
tags/3.1.0/templates/add-to-cart/loop/normal.php (added)
-
tags/3.1.0/templates/add-to-cart/loop/preorder.php (added)
-
tags/3.1.0/templates/add-to-cart/loop/special.php (added)
-
tags/3.1.0/templates/add-to-cart/single (added)
-
tags/3.1.0/templates/add-to-cart/single/simple-catalog.php (added)
-
tags/3.1.0/templates/add-to-cart/single/simple-normal.php (added)
-
tags/3.1.0/templates/add-to-cart/single/simple-preorder.php (added)
-
tags/3.1.0/templates/add-to-cart/single/simple-special.php (added)
-
tags/3.1.0/templates/add-to-cart/single/simple.php (added)
-
tags/3.1.0/templates/add-to-cart/single/variable-catalog.php (added)
-
tags/3.1.0/templates/add-to-cart/single/variable-normal.php (added)
-
tags/3.1.0/templates/add-to-cart/single/variable-preorder.php (added)
-
tags/3.1.0/templates/add-to-cart/single/variable-special.php (added)
-
tags/3.1.0/templates/add-to-cart/single/variable.php (added)
-
tags/3.1.0/templates/button.php (added)
-
tags/3.1.0/templates/email.php (added)
-
tags/3.1.0/templates/popup.php (added)
-
tags/3.1.0/templates/quantity-input.php (added)
-
tags/3.1.0/vendor (added)
-
tags/3.1.0/vendor/autoload.php (added)
-
tags/3.1.0/vendor/composer (added)
-
tags/3.1.0/vendor/composer/ClassLoader.php (added)
-
tags/3.1.0/vendor/composer/InstalledVersions.php (added)
-
tags/3.1.0/vendor/composer/LICENSE (added)
-
tags/3.1.0/vendor/composer/autoload_classmap.php (added)
-
tags/3.1.0/vendor/composer/autoload_namespaces.php (added)
-
tags/3.1.0/vendor/composer/autoload_psr4.php (added)
-
tags/3.1.0/vendor/composer/autoload_real.php (added)
-
tags/3.1.0/vendor/composer/autoload_static.php (added)
-
tags/3.1.0/vendor/composer/installed.json (added)
-
tags/3.1.0/vendor/composer/installed.php (added)
-
tags/3.1.0/wpml-config.xml (added)
-
trunk/art-woo-order-one-click.php (modified) (5 diffs)
-
trunk/assets/css/admin-style.css (modified) (1 diff)
-
trunk/assets/css/admin-style.min.css (modified) (1 diff)
-
trunk/assets/css/awooc-styles.css (modified) (1 diff)
-
trunk/assets/css/awooc-styles.min.css (modified) (1 diff)
-
trunk/assets/js/awooc-admin-script.js (added)
-
trunk/assets/js/awooc-admin-script.min.js (added)
-
trunk/assets/js/awooc-public-script.js (added)
-
trunk/assets/js/awooc-public-script.min.js (added)
-
trunk/assets/js/awooc-scripts.js (modified) (1 diff)
-
trunk/assets/js/awooc-scripts.min.js (modified) (1 diff)
-
trunk/classes (added)
-
trunk/classes/Admin (added)
-
trunk/classes/Admin/Create_Form.php (added)
-
trunk/classes/Admin/Settings.php (added)
-
trunk/classes/Admin/Settings_Fields.php (added)
-
trunk/classes/Enqueue.php (added)
-
trunk/classes/Front.php (added)
-
trunk/classes/Main.php (added)
-
trunk/classes/Mode.php (added)
-
trunk/classes/Prepare (added)
-
trunk/classes/Prepare/Analytics.php (added)
-
trunk/classes/Prepare/Mail.php (added)
-
trunk/classes/Prepare/Popup.php (added)
-
trunk/classes/Prepare/Prepare.php (added)
-
trunk/classes/Product (added)
-
trunk/classes/Product/Meta.php (added)
-
trunk/classes/RequestHandler.php (added)
-
trunk/classes/RequestProcessing (added)
-
trunk/classes/RequestProcessing/EmailModifier.php (added)
-
trunk/classes/RequestProcessing/OrderCreator.php (added)
-
trunk/classes/Requirements.php (added)
-
trunk/classes/Templater.php (added)
-
trunk/classes/Uninstall.php (added)
-
trunk/includes/create-cf7-field.php (added)
-
trunk/includes/helpers.php (modified) (4 diffs)
-
trunk/includes/template-functions.php (added)
-
trunk/languages/art-woocommerce-order-one-click-ru_RU.mo (modified) (previous)
-
trunk/languages/art-woocommerce-order-one-click-ru_RU.po (modified) (13 diffs)
-
trunk/languages/art-woocommerce-order-one-click-ru_RU.pot (modified) (13 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/templates (added)
-
trunk/templates/add-to-cart (added)
-
trunk/templates/add-to-cart/loop (added)
-
trunk/templates/add-to-cart/loop/catalog.php (added)
-
trunk/templates/add-to-cart/loop/normal.php (added)
-
trunk/templates/add-to-cart/loop/preorder.php (added)
-
trunk/templates/add-to-cart/loop/special.php (added)
-
trunk/templates/add-to-cart/single (added)
-
trunk/templates/add-to-cart/single/simple-catalog.php (added)
-
trunk/templates/add-to-cart/single/simple-normal.php (added)
-
trunk/templates/add-to-cart/single/simple-preorder.php (added)
-
trunk/templates/add-to-cart/single/simple-special.php (added)
-
trunk/templates/add-to-cart/single/simple.php (added)
-
trunk/templates/add-to-cart/single/variable-catalog.php (added)
-
trunk/templates/add-to-cart/single/variable-normal.php (added)
-
trunk/templates/add-to-cart/single/variable-preorder.php (added)
-
trunk/templates/add-to-cart/single/variable-special.php (added)
-
trunk/templates/add-to-cart/single/variable.php (added)
-
trunk/templates/button.php (added)
-
trunk/templates/email.php (added)
-
trunk/templates/popup.php (added)
-
trunk/templates/quantity-input.php (added)
-
trunk/vendor (added)
-
trunk/vendor/autoload.php (added)
-
trunk/vendor/composer (added)
-
trunk/vendor/composer/ClassLoader.php (added)
-
trunk/vendor/composer/InstalledVersions.php (added)
-
trunk/vendor/composer/LICENSE (added)
-
trunk/vendor/composer/autoload_classmap.php (added)
-
trunk/vendor/composer/autoload_namespaces.php (added)
-
trunk/vendor/composer/autoload_psr4.php (added)
-
trunk/vendor/composer/autoload_real.php (added)
-
trunk/vendor/composer/autoload_static.php (added)
-
trunk/vendor/composer/installed.json (added)
-
trunk/vendor/composer/installed.php (added)
Legend:
- Unmodified
- Added
- Removed
-
art-woocommerce-order-one-click/trunk/art-woo-order-one-click.php
r2523673 r3232179 6 6 * Domain Path: /languages 7 7 * Description: Plugin for WooCommerce. It includes the catalog mode in the store (there are no prices and the Buy button) and can turn on the Buy/Order button in one click. WooCommerce and Contact Form 7 are required for proper operation. 8 * Version: 2.4.38 * Version: 3.1.0 9 9 * Author: Artem Abramovich 10 10 * Author URI: https://wpruse.ru/ … … 12 12 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 13 13 * 14 * WC requires at least: 3.3.0 15 * WC tested up to: 5.0 14 * WC requires at least: 5.5 15 * WC tested up to: 9.6 16 * 17 * Requires PHP: 7.4 18 * Requires WP:5.5 16 19 * 17 20 * Copyright Artem Abramovich … … 41 44 $plugin_data = get_file_data( 42 45 __FILE__, 43 array(46 [ 44 47 'ver' => 'Version', 45 48 'name' => 'Plugin Name', 46 )49 ] 47 50 ); 48 51 49 define( 'AWOOC_PLUGIN_DIR', __DIR__ );52 const AWOOC_PLUGIN_DIR = __DIR__; 50 53 define( 'AWOOC_PLUGIN_URI', plugin_dir_url( __FILE__ ) ); 51 54 define( 'AWOOC_PLUGIN_FILE', plugin_basename( __FILE__ ) ); … … 54 57 define( 'AWOOC_PLUGIN_NAME', $plugin_data['name'] ); 55 58 56 require __DIR__ . '/includes/class-awooc.php'; 59 require AWOOC_PLUGIN_DIR . '/vendor/autoload.php'; 60 require_once AWOOC_PLUGIN_DIR . '/includes/create-cf7-field.php'; 61 require_once AWOOC_PLUGIN_DIR . '/includes/helpers.php'; 62 require_once AWOOC_PLUGIN_DIR . '/includes/template-functions.php'; 57 63 58 register_uninstall_hook( __FILE__, array( 'AWOOC', 'uninstall' ) ); 64 register_uninstall_hook( __FILE__, [ Art\AWOOC\Uninstall::class, 'uninstall' ] ); 65 register_activation_hook( __FILE__, [ Art\AWOOC\Admin\Create_Form::class, 'install_form' ] ); 59 66 60 if ( ! function_exists( 'awooc _order_one_click' ) ) {67 if ( ! function_exists( 'awooc' ) ) { 61 68 /** 62 69 * The main function responsible for returning the AWOOC object. … … 64 71 * Use this function like you would a global variable, except without needing to declare the global. 65 72 * 66 * Example: <?php awooc _order_one_click()->method_name(); ?>73 * Example: <?php awooc()->method_name(); ?> 67 74 * 68 75 * @return object AWOOC class object. 69 76 * @since 1.0.0 70 77 */ 71 function awooc _order_one_click(){78 function awooc(): object { 72 79 73 return AWOOC::instance();80 return \Art\AWOOC\Main::instance(); 74 81 } 75 82 } 76 83 77 $GLOBALS['awooc'] = awooc_order_one_click();84 awooc(); -
art-woocommerce-order-one-click/trunk/assets/css/admin-style.css
r2221236 r3232179 1 .awooc-notice, 2 .awooc-error, 3 .awooc-updated { 4 background: #fff; 5 border-left: 4px solid #fff; 6 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1); 7 margin: 5px 0 2px; 8 padding: 1px 12px; 9 } 10 11 .notice-success { 12 border-left-color: #018574; 13 } 14 15 .notice-warning { 16 border-left-color: #FF8C00 17 } 18 19 .notice-error { 20 border-left-color: #E81123 21 } 22 23 .notice-info { 24 border-left-color: #0078D7 25 } 26 27 .awooc-row { 28 width: 100%; 29 max-width: 800px; 30 display: flex; 31 } 32 33 .awooc-column { 34 margin-right: 10px; 35 flex-grow: 1; 36 flex-shrink: 1; 37 flex-basis: 0; 38 } 39 40 .awooc-column label { 41 line-height: 1.2; 42 display: inherit; 43 } 44 45 .awooc-row:nth-of-type(5) .awooc-column:first-of-type { 46 flex-grow: 2; 47 flex-shrink: 2; 48 flex-basis: 22px; 49 } 50 51 .awooc-row:nth-of-type(6) .awooc-column:nth-of-type(2) { 52 flex-grow: 4; 53 flex-shrink: 4; 54 flex-basis: 66px; 55 } 56 57 .awooc-column:first-child { 58 margin-left: 0; 59 } 60 61 .awooc-column:first-child { 62 margin-left: 0; 63 } 64 65 .awooc-column { 66 } 67 68 .awooc-column input[type=text] { 69 margin-left: 0; 70 } 71 72 .woocommerce #poststuff h2 { 73 font-size: 1.3em; 74 padding: 0; 75 margin: 1em 0; 76 line-height: inherit; 77 } 78 79 .woocommerce #poststuff h2 span { 80 font-size: 14px; 81 padding: 0 12px; 82 margin: 0; 83 line-height: 1.4; 84 } 1 .awooc-notice,.awooc-error,.awooc-updated{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.notice-success{border-left-color:#018574}.notice-warning{border-left-color:#ff8c00}.notice-error{border-left-color:#e81123}.notice-info{border-left-color:#0078d7}.awooc-row{width:100%;max-width:800px;display:flex}.awooc-row:nth-of-type(5) .awooc-column:first-of-type{flex-grow:2;flex-shrink:2;flex-basis:22px}.awooc-row:nth-of-type(6) .awooc-column:nth-of-type(2){flex-grow:4;flex-shrink:4;flex-basis:66px}.awooc-column{margin-right:10px;flex-grow:1;flex-shrink:1;flex-basis:0}.awooc-column label{line-height:1.2;display:inherit}.awooc-column input[type=text]{margin-left:0}.awooc-column:first-child{margin-left:0}.woocommerce #poststuff h2{font-size:1.3em;padding:0;margin:1em 0;line-height:inherit}.woocommerce #poststuff h2 span{font-size:14px;padding:0 12px;margin:0;line-height:1.4} -
art-woocommerce-order-one-click/trunk/assets/css/admin-style.min.css
r2103856 r3232179 1 .awooc- notice,.awooc-error,.awooc-updated{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.notice-success{border-left-color:#018574}.notice-warning{border-left-color:#ff8c00}.notice-error{border-left-color:#e81123}.notice-info{border-left-color:#0078d7}.awooc-row{width:100%;max-width:800px;display:flex}.awooc-column{margin-right:10px;flex-grow:1;flex-shrink:1;flex-basis:0}.awooc-column label{line-height:1.2;display:inherit}.awooc-row:nth-of-type(5) .awooc-column:first-of-type{flex-grow:2;flex-shrink:2;flex-basis:22px}.awooc-row:nth-of-type(6) .awooc-column:nth-of-type(2){flex-grow:4;flex-shrink:4;flex-basis:66px}.awooc-column:first-child{margin-left:0}.awooc-column:first-child{margin-left:0}.awooc-column input[type=text]{margin-left:0}.woocommerce #poststuff h2{font-size:1.3em;padding:0;margin:1em 0;line-height:inherit}.woocommerce #poststuff h2 span{font-size:14px;padding:0 12px;margin:0;line-height:1.4}1 .awooc-error,.awooc-notice,.awooc-updated{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.notice-success{border-left-color:#018574}.notice-warning{border-left-color:#ff8c00}.notice-error{border-left-color:#e81123}.notice-info{border-left-color:#0078d7}.awooc-row{display:flex;max-width:800px;width:100%}.awooc-row:nth-of-type(5) .awooc-column:first-of-type{flex-basis:22px;flex-grow:2;flex-shrink:2}.awooc-row:nth-of-type(6) .awooc-column:nth-of-type(2){flex-basis:66px;flex-grow:4;flex-shrink:4}.awooc-column{flex-basis:0;flex-grow:1;flex-shrink:1;margin-right:10px}.awooc-column label{display:inherit;line-height:1.2}.awooc-column input[type=text],.awooc-column:first-child{margin-left:0}.woocommerce #poststuff h2{font-size:1.3em;line-height:inherit;margin:1em 0;padding:0}.woocommerce #poststuff h2 span{font-size:14px;line-height:1.4;margin:0;padding:0 12px} -
art-woocommerce-order-one-click/trunk/assets/css/awooc-styles.css
r2481005 r3232179 1 .awooc-hide { 2 display: none; 3 } 4 5 .blockUI:before, 6 .awooc-hidden-data { 7 display: none !important; 8 } 9 10 .awooc-custom-order-button { 11 position: relative; 12 } 13 14 .awooc-custom-order-button.button.alt.show-add-to-card, 15 .awooc-custom-order-button.button.alt.no-stock-no-price:not(.no-margin) { 16 margin-left: 0.6125rem; 17 } 18 19 .awooc-popup-wrapper, 20 .awooc-popup-inner { 21 display: flex; 22 flex-direction: column; 23 } 24 25 .awooc-popup-inner { 26 padding: 2.125rem; 27 } 28 29 .awooc-row { 30 display: flex; 31 flex-direction: row; 32 flex-wrap: wrap; 33 justify-content: space-between; 34 align-content: flex-start; 35 align-items: center; 36 } 37 38 .awooc-col { 39 flex: 0 1 100%; 40 max-width: 100%; 41 align-self: flex-start; 42 padding: 0.875rem 0.875rem; 43 } 44 45 @media (min-width: 568px) { 46 .awooc-col { 47 flex: 0 1 50%; 48 max-width: 50%; 49 } 50 } 51 52 .awooc-col.columns-left { 53 text-align: left; 54 } 55 56 .awooc-col.awooc-col-full { 57 flex: 0 1 100%; 58 max-width: 100%; 59 } 60 61 62 .awooc-popup-image { 63 text-align: center; 64 } 65 66 .awooc-popup-image img { 67 width: 100%; 68 max-width: 100px; 69 height: auto; 70 float: left; 71 margin-right: 1rem; 72 } 73 74 @media (min-width: 568px) { 75 .awooc-popup-image img { 76 width: 100%; 77 max-width: 300px; 78 height: auto; 79 } 80 } 81 82 .awooc-popup-price, 83 .awooc-popup-sku, 84 .awooc-popup-qty, 85 .awooc-popup-attr { 86 font-size: 0.875rem; 87 } 88 89 @media (min-width: 568px) { 90 .awooc-popup-price, 91 .awooc-popup-sku, 92 .awooc-popup-qty, 93 .awooc-popup-attr { 94 font-size: inherit; 95 } 96 } 97 98 .woocommerce .awooc-custom-order-wrap .wpcf7-form-control { 99 border: 0; 100 width: 100%; 101 margin-bottom: 0.875rem; 102 background-color: #f2f2f2; 103 color: #43454b; 104 outline: 0; 105 box-sizing: border-box; 106 box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125); 107 } 108 109 .woocommerce .awooc-custom-order-wrap .wpcf7-form-control.wpcf7-submit { 110 background-color: #13aff0; 111 color: #fff; 112 box-shadow: 0 1px 1px rgba(0, 0, 0, .125); 113 } 114 115 .woocommerce .awooc-custom-order-wrap .wpcf7-form-control.wpcf7-submit:hover { 116 background-color: #43454b; 117 } 118 119 .awooc-close { 120 font-size: 35px; 121 position: absolute; 122 top: 0; 123 right: 0; 124 line-height: 30px; 125 width: 30px; 126 height: 30px; 127 z-index: 100; 128 color: #161616; 129 opacity: 0.5; 130 background: rgba(0, 0, 0, 0.00); 131 -o-transition: all 0.5s ease-in-out; 132 -moz-transition: all 0.5s ease-in-out; 133 -webkit-transition: all 0.5s ease-in-out; 134 } 135 136 .awooc-close:hover { 137 opacity: 1; 138 cursor: pointer; 139 } 140 141 .awooc-attr-wrapper span { 142 padding-left: 1rem; 143 display: block; 144 line-height: 1.3; 145 } 146 147 .awooc-preload-container * { 148 box-sizing: border-box; 149 } 150 151 .awooc-preload-container { 152 position: absolute !important; 153 left: 0; 154 right: 0; 155 top: 0; 156 bottom: 0; 157 display: flex; 158 align-items: center; 159 } 160 161 162 .blockMsgAwooc::-webkit-scrollbar { 163 width: 5px; 164 border-radius: 5px; 165 } 166 167 .blockMsgAwooc::-webkit-scrollbar-track { 168 -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); 169 box-shadow: inset 0 0 6px rgba(0, 0, 0, .3) 170 } 171 172 .blockMsgAwooc::-webkit-scrollbar-thumb { 173 background-color: #a9a9a9; 174 outline: 1px solid #708090; 175 border-radius: 5px; 176 } 177 178 .awooc-ajax-loader { 179 visibility: visible; 180 display: inline-block; 181 background-color: #23282d; /* Dark Gray 800 */ 182 opacity: 0.75; 183 width: 24px; 184 height: 24px; 185 border: none; 186 border-radius: 100%; 187 padding: 0; 188 margin: 0 auto; 189 position: relative; 190 } 191 192 .awooc-ajax-loader::before { 193 content: ''; 194 position: absolute; 195 background-color: #fbfbfc; /* Light Gray 100 */ 196 top: 4px; 197 left: 4px; 198 width: 6px; 199 height: 6px; 200 border: none; 201 border-radius: 100%; 202 transform-origin: 8px 8px; 203 animation-name: spin; 204 animation-duration: 1000ms; 205 animation-timing-function: linear; 206 animation-iteration-count: infinite; 207 208 } 209 210 @keyframes spin { 211 from { 212 transform: rotate(0deg); 213 } 214 215 to { 216 transform: rotate(360deg); 217 } 218 } 1 .skeleton-loader:empty{width:100%;height:1em;display:block;border-radius:3px;background:linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%),#eaeaea;background-repeat:repeat-y;background-size:50px 500px;background-position:0 0;animation:shine 3s infinite}.awooc-popup-image.skeleton-loader:empty{height:230px;margin-bottom:8px}.awooc-popup-attr.skeleton-loader:empty,.awooc-popup-qty.skeleton-loader:empty,.awooc-popup-sku.skeleton-loader:empty,.awooc-popup-sum.skeleton-loader:empty,.awooc-popup-price.skeleton-loader:empty{height:18px;margin-bottom:8px}.awooc-popup-price.skeleton-loader:empty{width:30%}.awooc-popup-sum.skeleton-loader:empty{width:35%}.awooc-popup-sku.skeleton-loader:empty{width:25%}.awooc-popup-qty.skeleton-loader:empty{width:10%}.awooc-popup-attr.skeleton-loader:empty{width:50%}@keyframes shine{to{background-position:350% 0}}.awooc-popup-form.skeleton-loader:empty{height:300px;animation:loading 3s infinite;background-repeat:no-repeat;background-image:linear-gradient(#f9f9f9 100%, transparent 0),linear-gradient(#f9f9f9 100%, transparent 0),linear-gradient(#f9f9f9 100%, transparent 0),linear-gradient(#f3f3f3 100%, transparent 0),linear-gradient(to right, rgba(255, 255, 255, 0) -40%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0) 100%),linear-gradient(#eaeaea 100%, transparent 0);background-size:calc(100% - 3rem) 2.6rem,calc(100% - 3rem) 2.6rem,calc(100% - 3rem) 2.6rem,calc(100% - 3rem) 2.6rem,30px,300px,100% 100%;background-position:1.5rem 32px,1.5rem 92px,1.5rem 152px,1.5rem 225px,-150% 0,0 0}@keyframes loading{to{background-position:1.5rem 32px,1.5rem 92px,1.5rem 152px,1.5rem 225px,350% 0,0 0}}.awooc-close{font-size:35px;position:absolute;top:0;right:0;font-family:initial;line-height:30px;width:30px;height:30px;z-index:100;color:#161616;opacity:.5;background:rgba(0,0,0,0);-o-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out}.awooc-close:hover{opacity:1;cursor:pointer}.awooc-hide{display:none}.blockUI:before,.awooc-hidden-data{display:none !important}.awooc-custom-order-button{position:relative;vertical-align:middle}.awooc-custom-order-button.button.alt.show-add-to-card,.awooc-custom-order-button.button.alt.no-stock-no-price:not(.no-margin){margin-left:.6125rem}.theme-woodmart .awooc-custom-order-button.button.alt.show-add-to-card{flex:0 0 auto;margin-left:0}.theme-twentytwentyfour .awooc-custom-order-button.button.alt.show-add-to-card{float:none}.awooc-popup-wrapper,.awooc-popup-inner{display:flex;flex-direction:column}.awooc-popup-inner{padding:2.125rem}.awooc-row{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-content:flex-start;align-items:center}.awooc-col{flex:0 1 100%;max-width:100%;align-self:flex-start}@media(min-width: 568px){.awooc-col{max-width:calc(50% - .875rem)}}.awooc-col.columns-left{text-align:left}.awooc-col.columns-right{text-align:left}@media(max-width: 569px){.awooc-col.columns-right:not(.awooc-col-full){padding-top:.875rem}}.awooc-col.columns-right input{width:100%}.awooc-col.awooc-col-full{flex:0 1 100%;max-width:100%}.awooc-popup-image{text-align:center;float:left}.awooc-popup-image img{width:100%;max-width:100px;height:auto;margin-right:1rem}@media(min-width: 568px){.awooc-popup-image img{width:100%;max-width:300px;height:auto;margin-bottom:1rem}}.awooc-popup-price,.awooc-popup-sku,.awooc-popup-qty,.awooc-popup-attr{font-size:.875rem}@media(min-width: 568px){.awooc-popup-price,.awooc-popup-sku,.awooc-popup-qty,.awooc-popup-attr{font-size:inherit}}.awooc-popup-qty{display:flex;align-items:center;gap:.5rem}@media(min-width: 568px){.awooc-popup-qty{width:100%}}.awooc-popup-qty .quantity{display:grid;grid-template-columns:32px 1fr 32px;flex-wrap:nowrap;align-items:center;white-space:nowrap;border:1px solid rgba(0,0,0,.1);background:rgba(0,0,0,0);border-radius:3px;transition:all .2s ease}.awooc-popup-qty .quantity input[type=number]{width:32px;height:auto;border-radius:0;border-right:none;border-left:none;-moz-appearance:textfield;border:0;box-shadow:none;background:#fff;max-height:32px;padding:0;font-size:small}.awooc-popup-qty .quantity input[type=number]:hover,.awooc-popup-qty .quantity input[type=number]:focus{-moz-appearance:number-input}.awooc-popup-qty .quantity input[type=number]::-webkit-outer-spin-button,.awooc-popup-qty .quantity input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.awooc-popup-qty .quantity .awooc-popup-input-qty--minus,.awooc-popup-qty .quantity .awooc-popup-input-qty--plus{background:rgba(0,0,0,0);box-shadow:none;border:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:medium;color:rgba(0,0,0,.5);padding:0}.awooc-custom-order-wrap .wpcf7-form{margin-bottom:0}.awooc-custom-order-wrap .wpcf7-form>p:nth-child(2){margin-top:0}.awooc-custom-order-wrap .wpcf7-form>p:nth-last-child(2){margin-bottom:0}.awooc-custom-order-wrap .wpcf7-form-control-wrap{display:inline-block;margin-bottom:.875rem;width:100%}.awooc-custom-order-wrap .wpcf7-form-control{outline:0;box-sizing:border-box}.awooc-attr-value span,.awooc-option-value span{padding-left:1rem;display:block;line-height:1.3}.blockMsgAwooc::-webkit-scrollbar{width:5px;border-radius:5px}.blockMsgAwooc::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.blockMsgAwooc::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090;border-radius:5px}.woocommerce .awooc-hide{display:none !important}.woocommerce button.button.awooc-hide{display:none !important}.awooc-hide{display:none !important} -
art-woocommerce-order-one-click/trunk/assets/css/awooc-styles.min.css
r2481005 r3232179 1 @keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(360deg)}}.awooc-hide{display:none}.awooc-hidden-data,.blockUI:before{display:none!important}.awooc-custom-order-button{position:relative}.awooc-custom-order-button.button.alt.no-stock-no-price:not(.no-margin),.awooc-custom-order-button.button.alt.show-add-to-card{margin-left:.6125rem}.awooc-popup-inner,.awooc-popup-wrapper{display:flex;flex-direction:column}.awooc-popup-inner{padding:2.125rem}.awooc-row{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-content:flex-start;align-items:center}.awooc-col{flex:0 1 100%;max-width:100%;align-self:flex-start;padding:.875rem}@media (min-width:568px){.awooc-col{flex:0 1 50%;max-width:50%}}.awooc-col.columns-left{text-align:left}.awooc-col.awooc-col-full{flex:0 1 100%;max-width:100%}.awooc-popup-image{text-align:center}.awooc-popup-image img{width:100%;max-width:100px;height:auto;float:left;margin-right:1rem}@media (min-width:568px){.awooc-popup-image img{width:100%;max-width:300px;height:auto}}.awooc-popup-attr,.awooc-popup-price,.awooc-popup-qty,.awooc-popup-sku{font-size:.875rem}@media (min-width:568px){.awooc-popup-attr,.awooc-popup-price,.awooc-popup-qty,.awooc-popup-sku{font-size:inherit}}.woocommerce .awooc-custom-order-wrap .wpcf7-form-control{border:0;width:100%;margin-bottom:.875rem;background-color:#f2f2f2;color:#43454b;outline:0;box-sizing:border-box;box-shadow:inset 0 1px 1px rgba(0,0,0,.125)}.woocommerce .awooc-custom-order-wrap .wpcf7-form-control.wpcf7-submit{background-color:#13aff0;color:#fff;box-shadow:0 1px 1px rgba(0,0,0,.125)}.woocommerce .awooc-custom-order-wrap .wpcf7-form-control.wpcf7-submit:hover{background-color:#43454b}.awooc-close{font-size:35px;position:absolute;top:0;right:0;line-height:30px;width:30px;height:30px;z-index:100;color:#161616;opacity:.5;background:0 0;-o-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out}.awooc-close:hover{opacity:1;cursor:pointer}.awooc-attr-wrapper span{padding-left:1rem;display:block;line-height:1.3}.awooc-preload-container *{box-sizing:border-box}.awooc-preload-container{position:absolute!important;left:0;right:0;top:0;bottom:0;display:flex;align-items:center}.blockMsgAwooc::-webkit-scrollbar{width:5px;border-radius:5px}.blockMsgAwooc::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.blockMsgAwooc::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090;border-radius:5px}.awooc-ajax-loader{visibility:visible;display:inline-block;background-color:#23282d;opacity:.75;width:24px;height:24px;border:0;border-radius:100%;padding:0;margin:0 auto;position:relative}.awooc-ajax-loader::before{content:'';position:absolute;background-color:#fbfbfc;top:4px;left:4px;width:6px;height:6px;border:0;border-radius:100%;transform-origin:8px 8px;animation-name:spin;animation-duration:1000ms;animation-timing-function:linear;animation-iteration-count:infinite}1 .skeleton-loader:empty{animation:shine 3s infinite;background:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.5) 50%,hsla(0,0%,100%,0) 80%),#eaeaea;background-position:0 0;background-repeat:repeat-y;background-size:50px 500px;border-radius:3px;display:block;height:1em;width:100%}.awooc-popup-image.skeleton-loader:empty{height:230px;margin-bottom:8px}.awooc-popup-attr.skeleton-loader:empty,.awooc-popup-price.skeleton-loader:empty,.awooc-popup-qty.skeleton-loader:empty,.awooc-popup-sku.skeleton-loader:empty,.awooc-popup-sum.skeleton-loader:empty{height:18px;margin-bottom:8px}.awooc-popup-price.skeleton-loader:empty{width:30%}.awooc-popup-sum.skeleton-loader:empty{width:35%}.awooc-popup-sku.skeleton-loader:empty{width:25%}.awooc-popup-qty.skeleton-loader:empty{width:10%}.awooc-popup-attr.skeleton-loader:empty{width:50%}@keyframes shine{to{background-position:350% 0}}.awooc-popup-form.skeleton-loader:empty{animation:loading 3s infinite;background-image:linear-gradient(#f9f9f9 100%,transparent 0),linear-gradient(#f9f9f9 100%,transparent 0),linear-gradient(#f9f9f9 100%,transparent 0),linear-gradient(#f3f3f3 100%,transparent 0),linear-gradient(90deg,hsla(0,0%,100%,0) -40%,hsla(0,0%,100%,.5) 45%,hsla(0,0%,100%,0)),linear-gradient(#eaeaea 100%,transparent 0);background-position:1.5rem 32px,1.5rem 92px,1.5rem 152px,1.5rem 225px,-150% 0,0 0;background-repeat:no-repeat;background-size:calc(100% - 3rem) 2.6rem,calc(100% - 3rem) 2.6rem,calc(100% - 3rem) 2.6rem,calc(100% - 3rem) 2.6rem,30px,300px,100% 100%;height:300px}@keyframes loading{to{background-position:1.5rem 32px,1.5rem 92px,1.5rem 152px,1.5rem 225px,350% 0,0 0}}.awooc-close{background:transparent;color:#161616;font-family:initial;font-size:35px;height:30px;line-height:30px;opacity:.5;position:absolute;right:0;top:0;-o-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-webkit-transition:all .5s ease-in-out;width:30px;z-index:100}.awooc-close:hover{cursor:pointer;opacity:1}.awooc-hide{display:none}.awooc-hidden-data,.blockUI:before{display:none!important}.awooc-custom-order-button{position:relative;vertical-align:middle}.awooc-custom-order-button.button.alt.no-stock-no-price:not(.no-margin),.awooc-custom-order-button.button.alt.show-add-to-card{margin-left:.6125rem}.theme-woodmart .awooc-custom-order-button.button.alt.show-add-to-card{flex:0 0 auto;margin-left:0}.theme-twentytwentyfour .awooc-custom-order-button.button.alt.show-add-to-card{float:none}.awooc-popup-inner,.awooc-popup-wrapper{display:flex;flex-direction:column}.awooc-popup-inner{padding:2.125rem}.awooc-row{align-content:flex-start;align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.awooc-col{align-self:flex-start;flex:0 1 100%;max-width:100%}@media(min-width:568px){.awooc-col{max-width:calc(50% - .875rem)}}.awooc-col.columns-left,.awooc-col.columns-right{text-align:left}@media(max-width:569px){.awooc-col.columns-right:not(.awooc-col-full){padding-top:.875rem}}.awooc-col.columns-right input{width:100%}.awooc-col.awooc-col-full{flex:0 1 100%;max-width:100%}.awooc-popup-image{float:left;text-align:center}.awooc-popup-image img{height:auto;margin-right:1rem;max-width:100px;width:100%}@media(min-width:568px){.awooc-popup-image img{height:auto;margin-bottom:1rem;max-width:300px;width:100%}}.awooc-popup-attr,.awooc-popup-price,.awooc-popup-qty,.awooc-popup-sku{font-size:.875rem}@media(min-width:568px){.awooc-popup-attr,.awooc-popup-price,.awooc-popup-qty,.awooc-popup-sku{font-size:inherit}}.awooc-popup-qty{align-items:center;display:flex;gap:.5rem}@media(min-width:568px){.awooc-popup-qty{width:100%}}.awooc-popup-qty .quantity{align-items:center;background:transparent;border:1px solid rgba(0,0,0,.1);border-radius:3px;display:grid;flex-wrap:nowrap;grid-template-columns:32px 1fr 32px;transition:all .2s ease;white-space:nowrap}.awooc-popup-qty .quantity input[type=number]{-moz-appearance:textfield;background:#fff;border:0;border-radius:0;box-shadow:none;font-size:small;height:auto;max-height:32px;padding:0;width:32px}.awooc-popup-qty .quantity input[type=number]:focus,.awooc-popup-qty .quantity input[type=number]:hover{-moz-appearance:number-input}.awooc-popup-qty .quantity input[type=number]::-webkit-inner-spin-button,.awooc-popup-qty .quantity input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.awooc-popup-qty .quantity .awooc-popup-input-qty--minus,.awooc-popup-qty .quantity .awooc-popup-input-qty--plus{align-items:center;background:transparent;border:0;box-shadow:none;box-sizing:border-box;color:rgba(0,0,0,.5);display:flex;font-size:medium;justify-content:center;padding:0}.awooc-custom-order-wrap .wpcf7-form{margin-bottom:0}.awooc-custom-order-wrap .wpcf7-form>p:nth-child(2){margin-top:0}.awooc-custom-order-wrap .wpcf7-form>p:nth-last-child(2){margin-bottom:0}.awooc-custom-order-wrap .wpcf7-form-control-wrap{display:inline-block;margin-bottom:.875rem;width:100%}.awooc-custom-order-wrap .wpcf7-form-control{box-sizing:border-box;outline:0}.awooc-attr-value span,.awooc-option-value span{display:block;line-height:1.3;padding-left:1rem}.blockMsgAwooc::-webkit-scrollbar{border-radius:5px;width:5px}.blockMsgAwooc::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.blockMsgAwooc::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:5px;outline:1px solid #708090}.awooc-hide,.woocommerce .awooc-hide,.woocommerce button.button.awooc-hide{display:none!important} -
art-woocommerce-order-one-click/trunk/assets/js/awooc-scripts.js
r2523663 r3232179 1 /** 2 * Вывод данных 3 * 4 * @package art-woocommerce-order-one-click/assets/js 5 */ 1 /******/ (() => { // webpackBootstrap 2 /*global awooc_scripts_ajax */ 3 /*global awooc_scripts_translate */ 4 /*global awooc_scripts_settings */ 5 /*global wc_add_to_cart_variation_params */ 6 /*global wpcf7 */ 7 jQuery(function ($) { 8 'use strict'; 6 9 7 jQuery( function( $ ) { 10 if (typeof awooc_scripts_ajax === 'undefined') { 11 // eslint-disable-next-line no-console 12 console.warn('awooc_scripts_ajax not found'); 13 return false; 14 } 15 if (typeof awooc_scripts_translate === 'undefined') { 16 // eslint-disable-next-line no-console 17 console.warn('awooc_scripts_translate not found'); 18 return false; 19 } 20 if (typeof awooc_scripts_settings === 'undefined') { 21 // eslint-disable-next-line no-console 22 console.warn('awooc_scripts_settings not found'); 23 return false; 24 } 25 if (typeof wpcf7 === 'undefined' || wpcf7 === null) { 26 // eslint-disable-next-line no-console 27 console.warn('На странице не существует объекта wpcf7. Что-то не так с темой...'); 28 return false; 29 } 30 var AWOOC = { 31 xhr: false, 32 $button: $('.awooc-button-js'), 33 $cfvswVariationsForm: $('.cfvsw_variations_form:not(.variation-function-added'), 34 $buttonProduct: $('.woocommerce-variation-add-to-cart .awooc-button-js'), 35 formId: Number(awooc_scripts_settings.popup.cf7_form_id), 36 analyticData: {}, 37 init: function init() { 38 if (this.$cfvswVariationsForm !== undefined) { 39 AWOOC.addedToButtonAttributes(); 40 } 41 $(document.body).on('click', '.awooc-button-js', this.popup).on('awooc_popup_ajax_trigger', this.removeSkeleton).on('click', '.awooc-close, .blockOverlay', this.unBlock).on('hide_variation', this.disableButton).on('show_variation', this.enableButton).on('wpcf7mailsent', this.sendSuccess).on('wpcf7invalid', this.sendInvalid).on('cfvswVariationLoad', this.addedToButtonAttributes).on('astraInfinitePaginationLoaded', this.addedToButtonAttributes).on('cfvswVariationLoad', this.addedToButtonAttributes).on('click', '.cfvsw-swatches-option', function (e) { 42 AWOOC.onClickSwatchesOption($(e.target)); 43 }); 44 }, 45 addedToButtonAttributes: function addedToButtonAttributes() { 46 AWOOC.$cfvswVariationsForm.each(function () { 47 var thisForm = $(this); 48 thisForm.wc_variation_form(); 49 if (thisForm.attr('data-cfvsw-catalog')) { 50 return; 51 } 52 thisForm.on('found_variation', function (e, variation) { 53 AWOOC.updateButtonData(thisForm, variation); 54 }); 55 }); 56 }, 57 updateButtonData: function updateButtonData(variant) { 58 var select = variant.find('.variations select'); 59 var data = {}; 60 var button = variant.parents('li').find('.awooc-button-js'); 61 select.each(function () { 62 var attributeName = $(this).data('attribute_name') || $(this).attr('name'); 63 data[attributeName] = $(this).val() || ''; 64 }); 65 button.addClass('cfvsw_variation_found'); 66 button.attr('data-selected_variant', JSON.stringify(data)); 67 }, 68 resetButtonData: function resetButtonData(variant) { 69 var button = variant.parents('li').find('.awooc-button-js'); 70 button.html(button.data('select_options_text')); 71 button.removeClass('cfvsw_variation_found'); 72 button.attr('data-selected_variant', ''); 73 }, 74 onClickSwatchesOption: function onClickSwatchesOption(swatch) { 75 if (swatch.hasClass('cfvsw-selected-swatch')) { 76 swatch.removeClass('cfvsw-selected-swatch'); 77 AWOOC.resetButtonData(swatch); 78 } else { 79 var parent = swatch.parent(); 80 parent.find('.cfvsw-swatches-option').each(function () { 81 $(this).removeClass('cfvsw-selected-swatch'); 82 }); 83 swatch.addClass('cfvsw-selected-swatch'); 84 } 85 AWOOC.updateSelectOption(swatch); 86 }, 87 updateSelectOption: function updateSelectOption(swatch) { 88 var value = swatch.hasClass('cfvsw-selected-swatch') ? swatch.data('slug') : ''; 89 var select = swatch.closest('.cfvsw-swatches-container').prev().find('select'); 90 select.val(value).change(); 91 }, 92 disableButton: function disableButton() { 93 AWOOC.$button.addClass('disabled wc-variation-selection-needed'); 94 }, 95 enableButton: function enableButton(e, variation, purchasable) { 96 if (!variation.is_in_stock) { 97 AWOOC.$buttonProduct.addClass('disabled wc-variation-is-unavailable'); 98 } else { 99 AWOOC.$buttonProduct.removeClass('disabled wc-variation-selection-needed'); 100 } 101 if (awooc_scripts_settings.mode === 'dont_show_add_to_card') { 102 AWOOC.$buttonProduct.removeClass('disabled wc-variation-selection-needed'); 103 } 104 switch (awooc_scripts_settings.mode) { 105 case 'dont_show_add_to_card': 106 // catalog 107 // eslint-disable-next-line no-console 108 console.log(variation); 109 break; 110 case 'show_add_to_card': 111 // normal 112 // eslint-disable-next-line no-console 113 console.log(variation); 114 break; 115 case 'in_stock_add_to_card': 116 // preload 117 if (variation.backorders_allowed || !variation.is_in_stock) { 118 AWOOC.$button.removeClass('disabled wc-variation-selection-needed'); 119 AWOOC.hideAddToCartModule(); 120 AWOOC.showAwoocButton(); 121 } else { 122 AWOOC.showAddToCartModule(); 123 AWOOC.hideAwoocButton(); 124 } 125 break; 126 case 'no_stock_no_price': 127 // special 128 if (!purchasable) { 129 AWOOC.$button.removeClass('disabled wc-variation-selection-needed'); 130 AWOOC.hideAddToCartModule(); 131 } else { 132 AWOOC.showAddToCartModule(); 133 } 134 break; 135 } 136 }, 137 hideAddToCartModule: function hideAddToCartModule() { 138 $('body.woocommerce').find('.woocommerce-variation-add-to-cart .quantity').addClass('awooc-hide'); 139 $('body.woocommerce').find('.woocommerce-variation-add-to-cart .single_add_to_cart_button').addClass('awooc-hide'); 140 }, 141 showAddToCartModule: function showAddToCartModule() { 142 $('body.woocommerce').find('.woocommerce-variation-add-to-cart .quantity').removeClass('awooc-hide'); 143 $('body.woocommerce').find('.woocommerce-variation-add-to-cart .single_add_to_cart_button').removeClass('awooc-hide'); 144 }, 145 hideAwoocButton: function hideAwoocButton() { 146 AWOOC.$button.addClass('awooc-hide'); 147 }, 148 showAwoocButton: function showAwoocButton() { 149 AWOOC.$button.removeClass('awooc-hide'); 150 }, 151 getProductID: function getProductID(e) { 152 var productVariantId = $('.variations_form').find('input[name="variation_id"]').val(); 153 var selectedProductId = $(e.target).attr('data-value-product-id'); 8 154 9 'use strict'; 10 11 if ( typeof awooc_scripts_ajax === 'undefined' ) { 12 console.log( 'awooc_scripts_ajax not found' ); 13 return false; 14 } 15 16 if ( typeof awooc_scripts_translate === 'undefined' ) { 17 console.log( 'awooc_scripts_translate not found' ); 18 return false; 19 } 20 21 if ( typeof awooc_scripts_settings === 'undefined' ) { 22 console.log( 'awooc_scripts_settings not found' ); 23 return false; 24 } 25 26 if ( typeof wpcf7 === 'undefined' || wpcf7 === null ) { 27 console.log( 'На странице не существует объекта wpcf7. Что-то не так с темой...' ); 28 return false; 29 } 30 31 // Задаем переменные. 32 const awoocBtn = $( '.awooc-custom-order-button' ), 33 awoocPopup = $( '.awooc-form-custom-order' ), 34 orderTitle = $( '.awooc-form-custom-order-title' ), 35 orderImg = $( '.awooc-form-custom-order-img' ), 36 orderPrice = $( '.awooc-form-custom-order-price' ), 37 orderQty = $( '.awooc-form-custom-order-qty' ), 38 orderSku = $( '.awooc-form-custom-order-sku' ), 39 orderAttr = $( '.awooc-form-custom-order-attr' ), 40 orderSum = $( '.awooc-form-custom-order-sum' ), 41 preload = '<div class="awooc-preload-container"><div class="awooc-ajax-loader"></div></div>'; 42 43 let selectedProduct; 44 45 $( document ) 46 47 .on( 'hide_variation', function( event ) { 48 awoocBtn.addClass( 'disabled wc-variation-selection-needed' ); 49 50 } ) 51 52 .on( 'show_variation', function( event, variation ) { 53 if ( false !== variation.is_in_stock ) { 54 awoocBtn.removeClass( 'disabled wc-variation-selection-needed' ); 55 } else { 56 awoocBtn.addClass( 'disabled wc-variation-is-unavailable' ); 57 } 58 59 // Если у вариации нет цены или ее нет в наличие то скрываем сообщения. 60 if ( awooc_scripts_settings.mode === 'no_stock_no_price' ) { 61 if ( false === variation.is_purchasable || false === variation.is_in_stock ) { 62 awoocBtn.removeClass( 'disabled wc-variation-selection-needed' ); 63 $( 'body.woocommerce' ) 64 .find( '.single_variation' ) 65 .hide(); 66 $( 'body.woocommerce' ) 67 .find( '.quantity' ) 68 .hide(); 69 70 $( 'body.woocommerce' ) 71 .find( '.woocommerce-variation-add-to-cart .single_add_to_cart_button' ) 72 .hide(); 73 74 } 75 } 76 } ) 77 78 .on( 'click', '.awooc-custom-order-button', function( event ) { 79 if ( $( this ).is( '.disabled' ) ) { 80 event.preventDefault(); 81 82 if ( $( this ).is( '.wc-variation-is-unavailable' ) ) { 83 window.alert( wc_add_to_cart_variation_params.i18n_unavailable_text ); 84 } else if ( $( this ).is( '.wc-variation-selection-needed' ) ) { 85 window.alert( wc_add_to_cart_variation_params.i18n_make_a_selection_text ); 86 } 87 88 return false; 89 } 90 91 let prodictSelectedId, 92 productVariantId = $( '.variations_form' ).find( 'input[name="variation_id"]' ).val(), 93 productId = $( this ).attr( 'data-value-product-id' ), 94 productQty = $( '.quantity' ).find( 'input[name="quantity"]' ).val() || 1, 95 dataOutForMail = {}; 96 97 // Проверяем ID товара, для вариаций свой, для простых свой. 98 if ( 0 !== productVariantId && typeof productVariantId !== 'undefined' ) { 99 prodictSelectedId = productVariantId; 100 } else { 101 prodictSelectedId = productId; 102 } 103 104 // Собираем данные для отправки. 105 let data = { 106 id: prodictSelectedId, 107 qty: productQty, 108 action: 'awooc_ajax_product_form', 109 nonce: awooc_scripts_ajax.nonce 110 }; 111 112 // Отправляем запрос. 113 $.ajax( { 114 url: awooc_scripts_ajax.url, 115 data: data, 116 type: 'POST', 117 dataType: 'json', 118 beforeSend: function( xhr, data ) { 119 // Вызываем прелоадер. 120 $( event.currentTarget ) 121 .fadeIn( 200 ) 122 .prepend( preload ); 123 }, 124 success: function( data ) { 125 126 // Отключаем прелоадер. 127 $( event.currentTarget ) 128 .find( '.awooc-preload-container' ) 129 .remove(); 130 131 // Добавляем тайтл к кнопке закрытия окнa. 132 $( '.awooc-close' ).attr( 'title', awooc_scripts_translate.title_close ); 133 134 // Проверяем данные после аякса и формируем нужные строки. 135 dataOutForMail = { 136 outID: 'ID: ' + prodictSelectedId, 137 outTitle: data.title === false 138 ? '' 139 : '\n' + awooc_scripts_translate.product_title + data.title, 140 outAttr: data.attr === false ? '' : '\n' + data.attr, 141 outSku: data.sku === false ? '' : '\n' + data.sku, 142 outCat: data.cat === false ? '' : '\n' + data.cat, 143 outLink: data.link === false ? '' : '\n' + awooc_scripts_translate.product_link + data.link, 144 outPrice: data.price === false 145 ? '' 146 : '\n' + awooc_scripts_translate.product_price + data.pricenumber, 147 outQty: data.qty === false 148 ? '' 149 : '\n' + awooc_scripts_translate.product_qty + productQty, 150 outSum: data.sum === false 151 ? '' 152 : '\n' + awooc_scripts_translate.product_sum + data.sumnumber 153 }; 154 155 // Формируем данные. 156 orderTitle.text( data.title ); 157 orderImg.html( data.image ); 158 orderPrice.html( data.price ); 159 orderQty.text( awooc_scripts_translate.product_qty + productQty ); 160 orderSku.html( data.sku ); 161 orderAttr.html( data.attr ); 162 orderSum.html( data.sum ); 163 164 // Загружаем форму. 165 $( '.awooc-col.columns-right' ).html( data.form ); 166 167 // Инициализация формы. 168 awoocInitContactForm(); 169 170 // Собираем данные для письма. 171 let hiddenData = awoocHiddenDataToMail( dataOutForMail ); 172 173 // Записываем данные с скрытое поле для отправки письма. 174 $( '.awooc-hidden-data' ).val( hiddenData ); 175 176 // Записываем id товара и количество в скрытое поле. 177 $( '.awooc-hidden-product-id' ).val( prodictSelectedId ); 178 $( '.awooc-hidden-product-qty' ).val( productQty ); 179 180 // Проверка на наличчие маски телефона. 181 awoocMaskField(); 182 183 // Выводим всплывающее окно. 184 awoocPopupWindow( awoocPopup ); 185 186 // Данные для аналитики 187 selectedProduct = { 188 productId: prodictSelectedId, 189 productName: data.title, 190 productSku: data.productSku, 191 productQty: productQty, 192 productPrice: data.pricenumber, 193 productCat: data.productCat, 194 productAttr: data.productAttr ? data.productAttr.replace( /<\/?[^>]+>/g, '' ) : '' 195 }; 196 197 // Событитие открытия окна. 198 $( document.body ).trigger( 'awooc_popup_open_trigger', [ data ] ); 199 200 return data; 201 } 202 203 } 204 ); 205 206 return false; 207 } ) 208 209 .on( 'click', '.awooc-close', function() { 210 // При клику на оверлей закрываем окно. 211 $.unblockUI(); 212 213 // При клику на оверлей добавлем нужный класс. 214 awoocPopup.hide(); 215 } ) 216 217 .on( 'click', '.blockOverlay', function() { 218 // При клику на оверлей закрываем окно. 219 $.unblockUI(); 220 221 // При клику на оверлей добавлем нужный класс. 222 awoocPopup.hide(); 223 } ) 224 225 .on( 'wpcf7mailsent', function( detail ) { 226 227 $( document.body ).trigger( 228 'awooc_mail_sent_trigger', 229 { 230 'selectedProduct': selectedProduct, 231 'mailDetail': detail 232 } 233 ); 234 235 setTimeout( $.unblockUI, 3000 ); 236 237 setTimeout( function() { 238 $( '.awooc-form-custom-order .wpcf7-form' )[0].reset(); 239 $( '.awooc-form-custom-order .wpcf7-response-output' ).remove(); 240 }, 3000 241 ); 242 } ) 243 244 .on( 'wpcf7invalid', function( event, detail ) { 245 246 $( document.body ).trigger( 'awooc_mail_invalid_trigger', [ event, detail ] ); 247 248 setTimeout( function() { 249 $( '.awooc-form-custom-order .wpcf7-response-output' ).empty(); 250 $( '.awooc-form-custom-order .wpcf7-not-valid-tip' ).remove(); 251 }, 5000 ); 252 253 } ); 254 255 256 function awoocInitContactForm() { 257 258 $( '.awooc-form-custom-order div.wpcf7 > form' ).each( function() { 259 260 let version = $( this ).find( 'input[name="_wpcf7_version"]' ).val(); 261 262 if ( ( typeof version !== 'undefined' && version !== null ) && version <= '5.4' ) { 263 let $form = $( this ); 264 265 wpcf7.initForm( $form ); 266 267 if ( wpcf7.cached ) { 268 wpcf7.refill( $form ); 269 } 270 271 } else { 272 wpcf7.init( this ); 273 274 } 275 } 276 ); 277 278 } 279 280 281 function awoocHiddenDataToMail( dataOut ) { 282 return '\n' + awooc_scripts_translate.product_data_title + 283 '\n ———' + 284 dataOut.outTitle + 285 '\n' + dataOut.outID + 286 dataOut.outCat.replace( /(<([^>]+)>)/ig, '' ) + 287 dataOut.outAttr.replace( /(<([^>]+)>)/ig, '' ) + 288 dataOut.outSku.replace( /(<([^>]+)>)/ig, '' ) + 289 dataOut.outPrice + 290 dataOut.outQty + 291 dataOut.outSum + 292 dataOut.outLink; 293 } 294 295 296 function awoocPopupWindow( popUp ) { 297 $.blockUI( { 298 message: popUp, 299 css: awooc_scripts_settings.popup.css, 300 overlayCSS: awooc_scripts_settings.popup.overlay, 301 fadeIn: awooc_scripts_settings.popup.fadeIn, 302 fadeOut: awooc_scripts_settings.popup.fadeOut, 303 focusInput: awooc_scripts_settings.popup.focusInput, 304 bindEvents: false, 305 timeout: 0, 306 allowBodyStretch: true, 307 centerX: true, 308 centerY: true, 309 blockMsgClass: 'blockMsg blockMsgAwooc', 310 onBlock: function() { 311 popUp.show(); 312 }, 313 onUnblock: function() { 314 // При закрытии окна добавлем нужный класс. 315 popUp.hide(); 316 317 // При закрытии окна очищаем данные. 318 awoocFormDataEmpty(); 319 320 // Событие закрытия окна. 321 $( document.body ).trigger( 'awooc_popup_close_trigger' ); 322 323 }, 324 onOverlayClick: function() { 325 326 // При закрытии окна добавлем нужный класс. 327 popUp.hide(); 328 $( 'html' ) 329 .css( { 'overflow': 'initial' } ); 330 331 $.unblockUI(); 332 333 // При закрытии окна очищаем данные. 334 awoocFormDataEmpty(); 335 336 } 337 } 338 ); 339 } 340 341 342 function awoocFormDataEmpty() { 343 orderTitle.empty(); 344 orderImg.empty(); 345 orderPrice.empty(); 346 orderQty.empty(); 347 orderSku.empty(); 348 orderAttr.empty(); 349 } 350 351 352 function awoocMaskField() { 353 let mask_fields = $( '.awooc-form-custom-order .wpcf7-mask' ); 354 if ( mask_fields.length > 0 ) { 355 mask_fields.each( function() { 356 let $this = $( this ), 357 data_mask = $this.data( 'mask' ); 358 359 //Если ошибка определения, то выводим в консоль сообщение и продолжаем 360 try { 361 362 $this.mask( data_mask ); 363 364 if ( data_mask.indexOf( '*' ) === -1 && data_mask.indexOf( 'a' ) === -1 ) { 365 $this.attr( { 366 'inputmode': 'numeric' 367 } ); 368 } 369 370 } catch ( e ) { 371 372 console.log( 'Error ' + e.name + ':' + e.message + '\n' + e.stack ); 373 374 } 375 376 } 377 ); 378 } 379 } 380 381 } ); 155 // Проверяем ID товара, для вариаций свой, для простых свой. 156 if (0 !== productVariantId && typeof productVariantId !== 'undefined') { 157 selectedProductId = productVariantId; 158 } 159 return selectedProductId; 160 }, 161 getQty: function getQty() { 162 return $('.quantity').find('input[name="quantity"]').val() || 1; 163 }, 164 unBlock: function unBlock() { 165 $.unblockUI(); 166 }, 167 removeSkeleton: function removeSkeleton() { 168 $('.awooc-popup-inner').find('.awooc-popup-item').each(function (index, item) { 169 $(item).removeClass('skeleton-loader'); 170 }); 171 }, 172 addedToMailData: function addedToMailData(toMail) { 173 var keys = Object.keys(toMail); 174 var dataToMail = '\n' + awooc_scripts_translate.product_data_title + '\n———\n'; 175 keys.forEach(function (key) { 176 dataToMail += toMail[key] + '\n'; 177 }); 178 return dataToMail; 179 }, 180 addedToPopupData: function addedToPopupData(toPopup) { 181 var keys = Object.keys(toPopup); 182 keys.forEach(function (key) { 183 $('.awooc-popup-' + key).html(toPopup[key]); 184 }); 185 }, 186 sendSuccess: function sendSuccess(event) { 187 setTimeout(AWOOC.unBlock, awooc_scripts_settings.popup.mailsent_timeout); 188 if (AWOOC.formId === event.detail.contactFormId) { 189 $(document.body).trigger('awooc_mail_sent_trigger', { 190 selectedProduct: AWOOC.analyticData, 191 mailDetail: event.detail 192 }); 193 } 194 }, 195 sendInvalid: function sendInvalid(event, detail) { 196 if (AWOOC.formId === event.detail.contactFormId) { 197 $(document.body).trigger('awooc_mail_invalid_trigger', [event, detail]); 198 } 199 setTimeout(function () { 200 $('.awooc-form-custom-order .wpcf7-response-output').empty(); 201 $('.awooc-form-custom-order .wpcf7-not-valid-tip').remove(); 202 }, awooc_scripts_settings.popup.invalid_timeout); 203 }, 204 initMask: function initMask() { 205 var maskFields = $('.awooc-form-custom-order .wpcf7-mask'); 206 if (!maskFields.length) { 207 return; 208 } 209 maskFields.each(function (index, field) { 210 var $this = $(field); 211 var dataMask = $this.data('mask'); 212 if (!dataMask) { 213 return; 214 } 215 try { 216 $this.mask(dataMask); 217 var hasAsterisk = dataMask.includes('*'); 218 var hasLetterA = dataMask.includes('a'); 219 if (!hasAsterisk && !hasLetterA) { 220 $this.attr({ 221 inputmode: 'numeric' 222 }); 223 } 224 } catch (e) { 225 // eslint-disable-next-line no-console 226 console.error("Error: ".concat(e.name, ": ").concat(e.message, "\n").concat(e.stack)); 227 } 228 }); 229 }, 230 updateAmount: function updateAmount(qtyVal, e, toMail) { 231 var priceValue = $('.awooc-popup-price .woocommerce-Price-currencyValue').text(); 232 if (priceValue) { 233 priceValue = priceValue.replace(awooc_scripts_settings.popup.price_decimal_sep, '.'); 234 priceValue = priceValue.replace(/\s+/g, ''); 235 var amount = parseFloat(priceValue.replace(awooc_scripts_settings.popup.price_decimal_sep, '.')) * qtyVal; 236 amount = amount.toFixed(awooc_scripts_settings.popup.price_num_decimals).replace('.', awooc_scripts_settings.popup.price_decimal_sep); 237 amount = amount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, awooc_scripts_settings.popup.price_thousand_sep); 238 $(e.target).closest('.awooc-form-custom-order').find('.awooc-popup-sum .woocommerce-Price-currencyValue').text(amount); 239 var currentAmountValue = $(e.target).closest('.awooc-form-custom-order').find('.awooc-popup-sum bdi').text(); 240 toMail.sum = awooc_scripts_translate.formatted_sum + currentAmountValue; 241 } else { 242 delete toMail.sum; 243 } 244 }, 245 updateQty: function updateQty(toMail) { 246 $('.awooc-popup-qty').on('input', 'input.awooc-popup-input-qty', function (e) { 247 var qtyVal = $(e.target).val(); 248 toMail.qty = awooc_scripts_translate.product_qty + qtyVal; 249 AWOOC.analyticData.qty = qtyVal; 250 AWOOC.updateAmount(qtyVal, e, toMail); 251 $('input[name="awooc-hidden-data"]').val(AWOOC.addedToMailData(toMail)); 252 $('input[name="awooc_product_qty"]').val(qtyVal); 253 }); 254 }, 255 request: function request(e) { 256 var data = { 257 id: AWOOC.getProductID(e), 258 action: 'awooc_ajax_product_form', 259 nonce: awooc_scripts_ajax.nonce 260 }; 261 if ($(e.target).data('selected_variant') !== undefined) { 262 data.attributes = $(e.target).data('selected_variant'); 263 } 264 $(e.target).closest('.cart').serializeArray().forEach(function (_ref) { 265 var name = _ref.name, 266 value = _ref.value; 267 if (data[name]) { 268 if (!Array.isArray(data[name])) { 269 data[name] = [data[name]]; 270 } 271 data[name].push(value); 272 } else { 273 data[name] = value; 274 } 275 }); 276 delete data['add-to-cart']; 277 AWOOC.xhr = $.ajax({ 278 url: awooc_scripts_ajax.url, 279 data: data, 280 type: 'POST', 281 dataType: 'json', 282 success: function success(response) { 283 var toPopup = response.data.toPopup; 284 var toMail = response.data.toMail; 285 AWOOC.addedToPopupData(toPopup); 286 AWOOC.analyticData = response.data.toAnalytics; 287 AWOOC.updateQty(toMail); 288 AWOOC.initContactForm(); 289 AWOOC.initMask(); 290 $('input[name="awooc_product_id"]').val(AWOOC.getProductID(e)); 291 $('input[name="awooc_product_qty"]').val(AWOOC.getQty(e)); 292 $('input[name="awooc-hidden-data"]').val(AWOOC.addedToMailData(toMail)); 293 if ($.magnificPopup !== undefined && $.magnificPopup.instance !== undefined) { 294 $.magnificPopup.close(); 295 } 296 $(document.body).trigger('awooc_popup_ajax_trigger', response); 297 }, 298 error: function error(response) { 299 if (response.responseJSON) { 300 // eslint-disable-next-line no-console 301 console.error(response.responseJSON.data); 302 } 303 } 304 }); 305 }, 306 initContactForm: function initContactForm() { 307 $('.awooc-form-custom-order div.wpcf7 > form').each(function () { 308 var version = $(this).find('input[name="_wpcf7_version"]').val(); 309 var isOldVersion = version.value && version.value <= '5.4'; 310 if (isOldVersion) { 311 var $form = $(this); 312 wpcf7.initForm($form); 313 if (wpcf7.cached) { 314 wpcf7.refill($form); 315 } 316 } else { 317 wpcf7.init(this); 318 } 319 }); 320 }, 321 popup: function popup(e) { 322 if ($(this).is('.disabled')) { 323 e.preventDefault(); 324 if ($(this).is('.wc-variation-is-unavailable')) { 325 // eslint-disable-next-line no-alert 326 window.alert(wc_add_to_cart_variation_params.i18n_unavailable_text); 327 } else if ($(this).is('.wc-variation-selection-needed')) { 328 // eslint-disable-next-line no-alert 329 window.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text); 330 } 331 return false; 332 } 333 $.blockUI({ 334 message: awooc_scripts_settings.template, 335 css: awooc_scripts_settings.popup.css, 336 overlayCSS: awooc_scripts_settings.popup.overlay, 337 fadeIn: awooc_scripts_settings.popup.fadeIn, 338 fadeOut: awooc_scripts_settings.popup.fadeOut, 339 focusInput: awooc_scripts_settings.popup.focusInput, 340 bindEvents: false, 341 timeout: 0, 342 allowBodyStretch: true, 343 centerX: true, 344 centerY: true, 345 blockMsgClass: 'blockMsg blockMsgAwooc', 346 onBlock: function onBlock() { 347 $(document.body).trigger('awooc_popup_open_trigger'); 348 AWOOC.request(e); 349 }, 350 onUnblock: function onUnblock() { 351 $(document.body).trigger('awooc_popup_close_trigger'); 352 }, 353 onOverlayClick: function onOverlayClick() { 354 $('html').css({ 355 overflow: 'initial' 356 }); 357 } 358 }); 359 } 360 }; 361 AWOOC.init(); 362 window.AWOOC = AWOOC; 363 }); 364 /******/ })() 365 ; -
art-woocommerce-order-one-click/trunk/assets/js/awooc-scripts.min.js
r2523663 r3232179 1 jQuery( function($){"use strict";if(typeof awooc_scripts_ajax==="undefined"){console.log("awooc_scripts_ajax not found");return false}if(typeof awooc_scripts_translate==="undefined"){console.log("awooc_scripts_translate not found");return false}if(typeof awooc_scripts_settings==="undefined"){console.log("awooc_scripts_settings not found");return false}if(typeof wpcf7==="undefined"||wpcf7===null){console.log("На странице не существует объекта wpcf7. Что-то не так с темой...");return false}const awoocBtn=$(".awooc-custom-order-button"),awoocPopup=$(".awooc-form-custom-order"),orderTitle=$(".awooc-form-custom-order-title"),orderImg=$(".awooc-form-custom-order-img"),orderPrice=$(".awooc-form-custom-order-price"),orderQty=$(".awooc-form-custom-order-qty"),orderSku=$(".awooc-form-custom-order-sku"),orderAttr=$(".awooc-form-custom-order-attr"),orderSum=$(".awooc-form-custom-order-sum"),preload='<div class="awooc-preload-container"><div class="awooc-ajax-loader"></div></div>';let selectedProduct;$(document).on("hide_variation",function(event){awoocBtn.addClass("disabled wc-variation-selection-needed")}).on("show_variation",function(event,variation){if(false!==variation.is_in_stock){awoocBtn.removeClass("disabled wc-variation-selection-needed")}else{awoocBtn.addClass("disabled wc-variation-is-unavailable")}if(awooc_scripts_settings.mode==="no_stock_no_price"){if(false===variation.is_purchasable||false===variation.is_in_stock){awoocBtn.removeClass("disabled wc-variation-selection-needed");$("body.woocommerce").find(".single_variation").hide();$("body.woocommerce").find(".quantity").hide();$("body.woocommerce").find(".woocommerce-variation-add-to-cart .single_add_to_cart_button").hide()}}}).on("click",".awooc-custom-order-button",function(event){if($(this).is(".disabled")){event.preventDefault();if($(this).is(".wc-variation-is-unavailable")){window.alert(wc_add_to_cart_variation_params.i18n_unavailable_text)}else if($(this).is(".wc-variation-selection-needed")){window.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text)}return false}let prodictSelectedId,productVariantId=$(".variations_form").find('input[name="variation_id"]').val(),productId=$(this).attr("data-value-product-id"),productQty=$(".quantity").find('input[name="quantity"]').val()||1,dataOutForMail={};if(0!==productVariantId&&typeof productVariantId!=="undefined"){prodictSelectedId=productVariantId}else{prodictSelectedId=productId}let data={id:prodictSelectedId,qty:productQty,action:"awooc_ajax_product_form",nonce:awooc_scripts_ajax.nonce};$.ajax({url:awooc_scripts_ajax.url,data:data,type:"POST",dataType:"json",beforeSend:function(xhr,data){$(event.currentTarget).fadeIn(200).prepend(preload)},success:function(data){$(event.currentTarget).find(".awooc-preload-container").remove();$(".awooc-close").attr("title",awooc_scripts_translate.title_close);dataOutForMail={outID:"ID: "+prodictSelectedId,outTitle:data.title===false?"":"\n"+awooc_scripts_translate.product_title+data.title,outAttr:data.attr===false?"":"\n"+data.attr,outSku:data.sku===false?"":"\n"+data.sku,outCat:data.cat===false?"":"\n"+data.cat,outLink:data.link===false?"":"\n"+awooc_scripts_translate.product_link+data.link,outPrice:data.price===false?"":"\n"+awooc_scripts_translate.product_price+data.pricenumber,outQty:data.qty===false?"":"\n"+awooc_scripts_translate.product_qty+productQty,outSum:data.sum===false?"":"\n"+awooc_scripts_translate.product_sum+data.sumnumber};orderTitle.text(data.title);orderImg.html(data.image);orderPrice.html(data.price);orderQty.text(awooc_scripts_translate.product_qty+productQty);orderSku.html(data.sku);orderAttr.html(data.attr);orderSum.html(data.sum);$(".awooc-col.columns-right").html(data.form);awoocInitContactForm();let hiddenData=awoocHiddenDataToMail(dataOutForMail);$(".awooc-hidden-data").val(hiddenData);$(".awooc-hidden-product-id").val(prodictSelectedId);$(".awooc-hidden-product-qty").val(productQty);awoocMaskField();awoocPopupWindow(awoocPopup);selectedProduct={productId:prodictSelectedId,productName:data.title,productSku:data.productSku,productQty:productQty,productPrice:data.pricenumber,productCat:data.productCat,productAttr:data.productAttr?data.productAttr.replace(/<\/?[^>]+>/g,""):""};$(document.body).trigger("awooc_popup_open_trigger",[data]);return data}});return false}).on("click",".awooc-close",function(){$.unblockUI();awoocPopup.hide()}).on("click",".blockOverlay",function(){$.unblockUI();awoocPopup.hide()}).on("wpcf7mailsent",function(detail){$(document.body).trigger("awooc_mail_sent_trigger",{selectedProduct:selectedProduct,mailDetail:detail});setTimeout($.unblockUI,3e3);setTimeout(function(){$(".awooc-form-custom-order .wpcf7-form")[0].reset();$(".awooc-form-custom-order .wpcf7-response-output").remove()},3e3)}).on("wpcf7invalid",function(event,detail){$(document.body).trigger("awooc_mail_invalid_trigger",[event,detail]);setTimeout(function(){$(".awooc-form-custom-order .wpcf7-response-output").empty();$(".awooc-form-custom-order .wpcf7-not-valid-tip").remove()},5e3)});function awoocInitContactForm(){$(".awooc-form-custom-order div.wpcf7 > form").each(function(){let version=$(this).find('input[name="_wpcf7_version"]').val();if(typeof version!=="undefined"&&version!==null&&version<="5.4"){let $form=$(this);wpcf7.initForm($form);if(wpcf7.cached){wpcf7.refill($form)}}else{wpcf7.init(this)}})}function awoocHiddenDataToMail(dataOut){return"\n"+awooc_scripts_translate.product_data_title+"\n ———"+dataOut.outTitle+"\n"+dataOut.outID+dataOut.outCat.replace(/(<([^>]+)>)/gi,"")+dataOut.outAttr.replace(/(<([^>]+)>)/gi,"")+dataOut.outSku.replace(/(<([^>]+)>)/gi,"")+dataOut.outPrice+dataOut.outQty+dataOut.outSum+dataOut.outLink}function awoocPopupWindow(popUp){$.blockUI({message:popUp,css:awooc_scripts_settings.popup.css,overlayCSS:awooc_scripts_settings.popup.overlay,fadeIn:awooc_scripts_settings.popup.fadeIn,fadeOut:awooc_scripts_settings.popup.fadeOut,focusInput:awooc_scripts_settings.popup.focusInput,bindEvents:false,timeout:0,allowBodyStretch:true,centerX:true,centerY:true,blockMsgClass:"blockMsg blockMsgAwooc",onBlock:function(){popUp.show()},onUnblock:function(){popUp.hide();awoocFormDataEmpty();$(document.body).trigger("awooc_popup_close_trigger")},onOverlayClick:function(){popUp.hide();$("html").css({overflow:"initial"});$.unblockUI();awoocFormDataEmpty()}})}function awoocFormDataEmpty(){orderTitle.empty();orderImg.empty();orderPrice.empty();orderQty.empty();orderSku.empty();orderAttr.empty()}function awoocMaskField(){let mask_fields=$(".awooc-form-custom-order .wpcf7-mask");if(mask_fields.length>0){mask_fields.each(function(){let $this=$(this),data_mask=$this.data("mask");try{$this.mask(data_mask);if(data_mask.indexOf("*")===-1&&data_mask.indexOf("a")===-1){$this.attr({inputmode:"numeric"})}}catch(e){console.log("Error "+e.name+":"+e.message+"\n"+e.stack)}})}}});1 jQuery((function(t){"use strict";if("undefined"==typeof awooc_scripts_ajax)return console.warn("awooc_scripts_ajax not found"),!1;if("undefined"==typeof awooc_scripts_translate)return console.warn("awooc_scripts_translate not found"),!1;if("undefined"==typeof awooc_scripts_settings)return console.warn("awooc_scripts_settings not found"),!1;if("undefined"==typeof wpcf7||null===wpcf7)return console.warn("На странице не существует объекта wpcf7. Что-то не так с темой..."),!1;var o={xhr:!1,$button:t(".awooc-button-js"),$cfvswVariationsForm:t(".cfvsw_variations_form:not(.variation-function-added"),$buttonProduct:t(".woocommerce-variation-add-to-cart .awooc-button-js"),formId:Number(awooc_scripts_settings.popup.cf7_form_id),analyticData:{},init:function(){void 0!==this.$cfvswVariationsForm&&o.addedToButtonAttributes(),t(document.body).on("click",".awooc-button-js",this.popup).on("awooc_popup_ajax_trigger",this.removeSkeleton).on("click",".awooc-close, .blockOverlay",this.unBlock).on("hide_variation",this.disableButton).on("show_variation",this.enableButton).on("wpcf7mailsent",this.sendSuccess).on("wpcf7invalid",this.sendInvalid).on("cfvswVariationLoad",this.addedToButtonAttributes).on("astraInfinitePaginationLoaded",this.addedToButtonAttributes).on("cfvswVariationLoad",this.addedToButtonAttributes).on("click",".cfvsw-swatches-option",(function(a){o.onClickSwatchesOption(t(a.target))}))},addedToButtonAttributes:function(){o.$cfvswVariationsForm.each((function(){var a=t(this);a.wc_variation_form(),a.attr("data-cfvsw-catalog")||a.on("found_variation",(function(t,e){o.updateButtonData(a,e)}))}))},updateButtonData:function(o){var a=o.find(".variations select"),e={},n=o.parents("li").find(".awooc-button-js");a.each((function(){var o=t(this).data("attribute_name")||t(this).attr("name");e[o]=t(this).val()||""})),n.addClass("cfvsw_variation_found"),n.attr("data-selected_variant",JSON.stringify(e))},resetButtonData:function(t){var o=t.parents("li").find(".awooc-button-js");o.html(o.data("select_options_text")),o.removeClass("cfvsw_variation_found"),o.attr("data-selected_variant","")},onClickSwatchesOption:function(a){a.hasClass("cfvsw-selected-swatch")?(a.removeClass("cfvsw-selected-swatch"),o.resetButtonData(a)):(a.parent().find(".cfvsw-swatches-option").each((function(){t(this).removeClass("cfvsw-selected-swatch")})),a.addClass("cfvsw-selected-swatch")),o.updateSelectOption(a)},updateSelectOption:function(t){var o=t.hasClass("cfvsw-selected-swatch")?t.data("slug"):"";t.closest(".cfvsw-swatches-container").prev().find("select").val(o).change()},disableButton:function(){o.$button.addClass("disabled wc-variation-selection-needed")},enableButton:function(t,a,e){switch(a.is_in_stock?o.$buttonProduct.removeClass("disabled wc-variation-selection-needed"):o.$buttonProduct.addClass("disabled wc-variation-is-unavailable"),"dont_show_add_to_card"===awooc_scripts_settings.mode&&o.$buttonProduct.removeClass("disabled wc-variation-selection-needed"),awooc_scripts_settings.mode){case"dont_show_add_to_card":case"show_add_to_card":console.log(a);break;case"in_stock_add_to_card":a.backorders_allowed||!a.is_in_stock?(o.$button.removeClass("disabled wc-variation-selection-needed"),o.hideAddToCartModule(),o.showAwoocButton()):(o.showAddToCartModule(),o.hideAwoocButton());break;case"no_stock_no_price":e?o.showAddToCartModule():(o.$button.removeClass("disabled wc-variation-selection-needed"),o.hideAddToCartModule())}},hideAddToCartModule:function(){t("body.woocommerce").find(".woocommerce-variation-add-to-cart .quantity").addClass("awooc-hide"),t("body.woocommerce").find(".woocommerce-variation-add-to-cart .single_add_to_cart_button").addClass("awooc-hide")},showAddToCartModule:function(){t("body.woocommerce").find(".woocommerce-variation-add-to-cart .quantity").removeClass("awooc-hide"),t("body.woocommerce").find(".woocommerce-variation-add-to-cart .single_add_to_cart_button").removeClass("awooc-hide")},hideAwoocButton:function(){o.$button.addClass("awooc-hide")},showAwoocButton:function(){o.$button.removeClass("awooc-hide")},getProductID:function(o){var a=t(".variations_form").find('input[name="variation_id"]').val(),e=t(o.target).attr("data-value-product-id");return 0!==a&&void 0!==a&&(e=a),e},getQty:function(){return t(".quantity").find('input[name="quantity"]').val()||1},unBlock:function(){t.unblockUI()},removeSkeleton:function(){t(".awooc-popup-inner").find(".awooc-popup-item").each((function(o,a){t(a).removeClass("skeleton-loader")}))},addedToMailData:function(t){var o=Object.keys(t),a="\n"+awooc_scripts_translate.product_data_title+"\n———\n";return o.forEach((function(o){a+=t[o]+"\n"})),a},addedToPopupData:function(o){Object.keys(o).forEach((function(a){t(".awooc-popup-"+a).html(o[a])}))},sendSuccess:function(a){setTimeout(o.unBlock,awooc_scripts_settings.popup.mailsent_timeout),o.formId===a.detail.contactFormId&&t(document.body).trigger("awooc_mail_sent_trigger",{selectedProduct:o.analyticData,mailDetail:a.detail})},sendInvalid:function(a,e){o.formId===a.detail.contactFormId&&t(document.body).trigger("awooc_mail_invalid_trigger",[a,e]),setTimeout((function(){t(".awooc-form-custom-order .wpcf7-response-output").empty(),t(".awooc-form-custom-order .wpcf7-not-valid-tip").remove()}),awooc_scripts_settings.popup.invalid_timeout)},initMask:function(){var o=t(".awooc-form-custom-order .wpcf7-mask");o.length&&o.each((function(o,a){var e=t(a),n=e.data("mask");if(n)try{e.mask(n);var i=n.includes("*"),c=n.includes("a");i||c||e.attr({inputmode:"numeric"})}catch(t){console.error("Error: ".concat(t.name,": ").concat(t.message,"\n").concat(t.stack))}}))},updateAmount:function(o,a,e){var n=t(".awooc-popup-price .woocommerce-Price-currencyValue").text();if(n){n=(n=n.replace(awooc_scripts_settings.popup.price_decimal_sep,".")).replace(/\s+/g,"");var i=parseFloat(n.replace(awooc_scripts_settings.popup.price_decimal_sep,"."))*o;i=(i=i.toFixed(awooc_scripts_settings.popup.price_num_decimals).replace(".",awooc_scripts_settings.popup.price_decimal_sep)).toString().replace(/\B(?=(\d{3})+(?!\d))/g,awooc_scripts_settings.popup.price_thousand_sep),t(a.target).closest(".awooc-form-custom-order").find(".awooc-popup-sum .woocommerce-Price-currencyValue").text(i);var c=t(a.target).closest(".awooc-form-custom-order").find(".awooc-popup-sum bdi").text();e.sum=awooc_scripts_translate.formatted_sum+c}else delete e.sum},updateQty:function(a){t(".awooc-popup-qty").on("input","input.awooc-popup-input-qty",(function(e){var n=t(e.target).val();a.qty=awooc_scripts_translate.product_qty+n,o.analyticData.qty=n,o.updateAmount(n,e,a),t('input[name="awooc-hidden-data"]').val(o.addedToMailData(a)),t('input[name="awooc_product_qty"]').val(n)}))},request:function(a){var e={id:o.getProductID(a),action:"awooc_ajax_product_form",nonce:awooc_scripts_ajax.nonce};void 0!==t(a.target).data("selected_variant")&&(e.attributes=t(a.target).data("selected_variant")),t(a.target).closest(".cart").serializeArray().forEach((function(t){var o=t.name,a=t.value;e[o]?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(a)):e[o]=a})),delete e["add-to-cart"],o.xhr=t.ajax({url:awooc_scripts_ajax.url,data:e,type:"POST",dataType:"json",success:function(e){var n=e.data.toPopup,i=e.data.toMail;o.addedToPopupData(n),o.analyticData=e.data.toAnalytics,o.updateQty(i),o.initContactForm(),o.initMask(),t('input[name="awooc_product_id"]').val(o.getProductID(a)),t('input[name="awooc_product_qty"]').val(o.getQty(a)),t('input[name="awooc-hidden-data"]').val(o.addedToMailData(i)),void 0!==t.magnificPopup&&void 0!==t.magnificPopup.instance&&t.magnificPopup.close(),t(document.body).trigger("awooc_popup_ajax_trigger",e)},error:function(t){t.responseJSON&&console.error(t.responseJSON.data)}})},initContactForm:function(){t(".awooc-form-custom-order div.wpcf7 > form").each((function(){var o=t(this).find('input[name="_wpcf7_version"]').val();if(o.value&&o.value<="5.4"){var a=t(this);wpcf7.initForm(a),wpcf7.cached&&wpcf7.refill(a)}else wpcf7.init(this)}))},popup:function(a){if(t(this).is(".disabled"))return a.preventDefault(),t(this).is(".wc-variation-is-unavailable")?window.alert(wc_add_to_cart_variation_params.i18n_unavailable_text):t(this).is(".wc-variation-selection-needed")&&window.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text),!1;t.blockUI({message:awooc_scripts_settings.template,css:awooc_scripts_settings.popup.css,overlayCSS:awooc_scripts_settings.popup.overlay,fadeIn:awooc_scripts_settings.popup.fadeIn,fadeOut:awooc_scripts_settings.popup.fadeOut,focusInput:awooc_scripts_settings.popup.focusInput,bindEvents:!1,timeout:0,allowBodyStretch:!0,centerX:!0,centerY:!0,blockMsgClass:"blockMsg blockMsgAwooc",onBlock:function(){t(document.body).trigger("awooc_popup_open_trigger"),o.request(a)},onUnblock:function(){t(document.body).trigger("awooc_popup_close_trigger")},onOverlayClick:function(){t("html").css({overflow:"initial"})}})}};o.init(),window.AWOOC=o})); -
art-woocommerce-order-one-click/trunk/includes/helpers.php
r2481005 r3232179 28 28 function awooc_default_elements_item() { 29 29 30 return array(30 return [ 31 31 'title', 32 32 'image', … … 36 36 'qty', 37 37 'sum', 38 ); 39 38 ]; 40 39 } 41 40 … … 61 60 * 62 61 * @since 2.1.1 62 * @since 3.1.0 63 63 */ 64 function awooc_html_comments() {64 function awooc_html_comments(): void { 65 65 66 66 if ( apply_filters( 'awooc_html_comments', true ) ) { … … 68 68 '<!-- plugin version: %1$s; mode: %2$s -->', 69 69 esc_html( AWOOC_PLUGIN_VER ), 70 esc_html( get_option( 'woocommerce_awooc_mode_catalog' ))70 esc_html( awooc()->get_modes()[ get_option( 'woocommerce_awooc_mode_catalog' ) ] ) 71 71 ); 72 73 72 } 74 73 } -
art-woocommerce-order-one-click/trunk/languages/art-woocommerce-order-one-click-ru_RU.po
r2481845 r3232179 2 2 msgstr "" 3 3 "Project-Id-Version: art-woocommerce-order-one-click\n" 4 "POT-Creation-Date: 202 1-02-25 00:31+0400\n"5 "PO-Revision-Date: 202 1-02-25 00:34+0400\n"4 "POT-Creation-Date: 2025-01-30 01:23+0400\n" 5 "PO-Revision-Date: 2025-01-30 01:23+0400\n" 6 6 "Last-Translator: Абрамович Артем | artabr.ru <artikus.sol@gmail.com>\n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 " X-Generator: Poedit 2.4.1\n"13 " X-Poedit-Basepath: .\n"14 " Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 &&n"15 " %10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"12 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 13 "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" 14 "X-Generator: Poedit 3.4.1\n" 15 "X-Poedit-Basepath: ..\n" 16 16 "X-Poedit-SourceCharset: UTF-8\n" 17 17 "X-Poedit-KeywordsList: __;esc_html__;_e;_ex:1,2c;esc_attr__;esc_attr_e;" 18 18 "esc_attr_x:1,2c;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;" 19 19 "_n:1,2;_nx:1,2,4c\n" 20 "X-Poedit-SearchPath-0: .\n" 21 "X-Poedit-SearchPath-1: ..\n" 22 23 #: ../includes/admin/added-cf7-field.php:90 24 msgid "AWOOC hide field" 25 msgstr "AWOOC скрытое поле" 26 27 #: ../includes/admin/added-cf7-field.php:101 28 #, php-format 29 msgid "Generate a special hidden multi-line field. See %s." 30 msgstr "Генерируется специальное многострочное поле. Смотрите %s." 31 32 #: ../includes/admin/added-cf7-field.php:104 33 msgid "https://wpruse.ru/my-plugins/order-one-click/" 34 msgstr "https://wpruse.ru/my-plugins/order-one-click/" 35 36 #: ../includes/admin/added-cf7-field.php:105 37 msgid "the description for details" 38 msgstr "подробное описание" 39 40 #: ../includes/admin/added-cf7-field.php:118 41 msgid "Name" 42 msgstr "Имя" 43 44 #: ../includes/admin/added-cf7-field.php:146 45 msgid "Insert Tag" 46 msgstr "Вставить" 47 48 #: ../includes/admin/added-cf7-field.php:158 49 #, php-format 50 msgid "" 51 "To use the value input through this field in a mail field, you need to " 52 "insert the corresponding mail-tag (%s) into the field on the Mail tab." 53 msgstr "" 54 "Чтобы использовать значение, введенное через это поле в письме, необходимо " 55 "вставить соответствующий почтовый тег (% s) в поле на вкладке Почта." 56 57 #: ../includes/admin/class-awooc-admin-meta-box.php:56 58 msgid "Disable Order One Click Button" 59 msgstr "Отключить кнопку Заказать" 60 61 #: ../includes/admin/class-awooc-admin-meta-box.php:58 62 msgid "" 63 "If enabled, then on this product the Order button will not be visible. " 64 "Product will return to its original condition." 65 msgstr "" 66 "Если включить, то на этом товаре кнопка Заказать будет не видна. Товар " 67 "вернется к исходному состоянию." 68 69 #: ../includes/admin/class-awooc-admin-settings.php:30 70 #: ../includes/class-awooc-orders.php:122 20 "X-Poedit-SearchPath-0: languages\n" 21 "X-Poedit-SearchPath-1: .\n" 22 "X-Poedit-SearchPathExcluded-0: .git\n" 23 "X-Poedit-SearchPathExcluded-1: .github\n" 24 "X-Poedit-SearchPathExcluded-2: .idea\n" 25 "X-Poedit-SearchPathExcluded-3: node_modules\n" 26 "X-Poedit-SearchPathExcluded-4: vendor\n" 27 28 #: classes/Admin/Create_Form.php:44 29 msgid "Your Name" 30 msgstr "Ваше имя" 31 32 #: classes/Admin/Create_Form.php:45 33 msgid "Your Email" 34 msgstr "Ваш Email" 35 36 #: classes/Admin/Create_Form.php:46 37 msgid "Your Phone" 38 msgstr "Ваш телефон" 39 40 #: classes/Admin/Create_Form.php:47 41 msgid "Send" 42 msgstr "Отправить" 43 44 #: classes/Admin/Create_Form.php:51 45 #, php-format 46 msgid "Name: %s" 47 msgstr "Имя: %s" 48 49 #: classes/Admin/Create_Form.php:52 50 #, php-format 51 msgid "Email: %s" 52 msgstr "Email: %s" 53 54 #: classes/Admin/Create_Form.php:53 55 #, php-format 56 msgid "Phone: %s" 57 msgstr "Телефон: %s" 58 59 #: classes/Admin/Create_Form.php:55 60 #, php-format 61 msgid "This e-mail was sent from a contact form on %1$s (%2$s)" 62 msgstr "Это письмо было отправлено с формы обратной связи на %1$s (%2$s)" 63 64 #: classes/Admin/Create_Form.php:87 classes/Admin/Create_Form.php:101 65 #, php-format 66 msgid "Order from the site %1$s (%2$s)" 67 msgstr "Заказ с сайта %1$s (%2$s)" 68 69 #: classes/Admin/Create_Form.php:124 templates/email.php:412 70 msgid "Order One Click" 71 msgstr "Заказ в один клик" 72 73 #: classes/Admin/Settings.php:35 classes/Orders.php:147 71 74 msgid "One click order" 72 75 msgstr "Заказ в один клик" 73 76 74 #: ../includes/admin/class-awooc-admin-settings.php:8277 #: classes/Admin/Settings.php:69 75 78 msgid "Off" 76 79 msgstr "Выключить" 77 80 78 #: ../includes/admin/class-awooc-admin-settings.php:8381 #: classes/Admin/Settings.php:70 79 82 msgid "On" 80 83 msgstr "Включить" 81 84 82 #: ../includes/admin/class-awooc-admin-settings.php:38285 #: classes/Admin/Settings.php:85 83 86 msgid "General" 84 87 msgstr "Основные" 85 88 86 #: ../includes/admin/class-awooc-admin-settings.php:42689 #: classes/Admin/Settings.php:129 87 90 msgid "General settings" 88 91 msgstr "Основные настройки" 89 92 90 #: ../includes/admin/class-awooc-admin-settings.php:43293 #: classes/Admin/Settings.php:135 91 94 msgid "Operating mode" 92 95 msgstr "Режим работы" 93 96 94 #: ../includes/admin/class-awooc-admin-settings.php:43397 #: classes/Admin/Settings.php:136 95 98 msgid "Select the mode of operation and display the Buy button" 96 99 msgstr "Выберите режим работы и показа кнопки Купить" 97 100 98 #: ../includes/admin/class-awooc-admin-settings.php:443101 #: classes/Admin/Settings.php:147 99 102 msgid "Select form" 100 103 msgstr "Выберите форму" 101 104 102 #: ../includes/admin/class-awooc-admin-settings.php:444105 #: classes/Admin/Settings.php:148 103 106 msgid "Choose the desired form" 104 107 msgstr "Выберите нужную форму" 105 108 106 #: ../includes/admin/class-awooc-admin-settings.php:448109 #: classes/Admin/Settings.php:152 107 110 msgid "-- Select --" 108 111 msgstr "-- Выбрать --" 109 112 110 #: ../includes/admin/class-awooc-admin-settings.php:455113 #: classes/Admin/Settings.php:160 111 114 msgid "Button Label" 112 115 msgstr "Надпись на кнопке" 113 116 114 #: ../includes/admin/class-awooc-admin-settings.php:456117 #: classes/Admin/Settings.php:161 115 118 msgid "Specify the desired label on the button" 116 119 msgstr "Укажите нужную надпись на кнопке" 117 120 118 #: ../includes/admin/class-awooc-admin-settings.php:459121 #: classes/Admin/Settings.php:164 119 122 msgid "Buy in one click" 120 123 msgstr "Купить в один клик" 121 124 122 #: ../includes/admin/class-awooc-admin-settings.php:465125 #: classes/Admin/Settings.php:171 123 126 msgid "Special label" 124 127 msgstr "Специальная надпись" 125 128 126 #: ../includes/admin/class-awooc-admin-settings.php:467129 #: classes/Admin/Settings.php:173 127 130 msgid "" 128 131 "Special field for the Order button. Allows you to change the label on the " … … 132 135 "при включении режима Цены и Запасы." 133 136 134 #: ../includes/admin/class-awooc-admin-settings.php:482 137 #: classes/Admin/Settings.php:184 138 msgid "Button on the catalog" 139 msgstr "Кнопка на каталоге" 140 141 #: classes/Admin/Settings.php:186 142 msgid "" 143 "Button output on catalog pages (store, categories, labels, attributes). It " 144 "is displayed only for simple products" 145 msgstr "" 146 "Вывод кнопки на страницах каталога (магазин, рубрики, метки, атрибуты). " 147 "Выводится только для простых товаров" 148 149 #: classes/Admin/Settings.php:201 135 150 msgid "Popup window" 136 151 msgstr "Всплывающее окно" 137 152 138 #: ../includes/admin/class-awooc-admin-settings.php:489153 #: classes/Admin/Settings.php:208 139 154 msgid "Turn off window elements" 140 155 msgstr "Выключить элементы окна" 141 156 142 #: ../includes/admin/class-awooc-admin-settings.php:490157 #: classes/Admin/Settings.php:209 143 158 msgid "Remove items that are NOT needed." 144 159 msgstr "Уберите элементы, которые НЕ нужны." 145 160 146 #: ../includes/admin/class-awooc-admin-settings.php:500 147 msgid "Styles and scripts globally" 148 msgstr "Стили и скрипты глобально" 149 150 #: ../includes/admin/class-awooc-admin-settings.php:502 151 msgid "" 152 "If you enable this setting, then the files of forces and scripts will be " 153 "connected globally on all pages of the site. This setting will be useful for " 154 "displaying the One-click Order button on the list of products and when using " 155 "quick view" 156 msgstr "" 157 "Если включить эту настройку, то файлы стилей и скриптов будут подключаться " 158 "глобально на всех страницах сайта. Данная настройка будет полезна при " 159 "выводе кнопки Заказать в один клик на странице со списком продуктов и при " 160 "использовании быстрого просмотра" 161 162 #: ../includes/admin/class-awooc-admin-settings.php:515 161 #: classes/Admin/Settings.php:225 163 162 msgid "Orders" 164 163 msgstr "Заказы" 165 164 166 #: ../includes/admin/class-awooc-admin-settings.php:529165 #: classes/Admin/Settings.php:240 167 166 msgid "Create orders" 168 167 msgstr "Создание заказов" 169 168 170 #: ../includes/admin/class-awooc-admin-settings.php:531169 #: classes/Admin/Settings.php:242 171 170 msgid "" 172 171 "When this setting is enabled, orders will be created in the WooCommerce " … … 176 175 "со статусом \"В ожидании оплаты\"" 177 176 178 #: ../includes/admin/class-awooc-admin-settings.php:540177 #: classes/Admin/Settings.php:252 179 178 msgid "Change subject" 180 179 msgstr "Изменить заголовок" 181 180 182 #: ../includes/admin/class-awooc-admin-settings.php:542181 #: classes/Admin/Settings.php:254 183 182 msgid "" 184 183 "If you enable this setting, then the order number will be added to the " … … 188 187 "в формате \"Тема письма №112233\"" 189 188 190 #: ../includes/admin/class-awooc-admin-settings.php:555 189 #: classes/Admin/Settings.php:263 190 msgid "Custom letter template" 191 msgstr "Произвольный шаблон письма" 192 193 #: classes/Admin/Settings.php:265 194 msgid "" 195 "When enabled, it will not use the template specified in CF7, but an " 196 "arbitrary email template from the plugin" 197 msgstr "" 198 "При включении будет использоваться не указанный в CF7 шаблон, а произвольный " 199 "шаблон письма из плагина" 200 201 #: classes/Admin/Settings.php:278 191 202 msgid "Others" 192 203 msgstr "Разное" 193 204 194 #: ../includes/admin/class-awooc-admin-settings.php:562205 #: classes/Admin/Settings.php:285 195 206 msgid "Do not delete settings" 196 207 msgstr "Не удалять настройки" 197 208 198 #: ../includes/admin/class-awooc-admin-settings.php:564209 #: classes/Admin/Settings.php:287 199 210 msgid "" 200 211 "If enabled, then the settings when you remove the plugin will NOT be deleted" 201 212 msgstr "Если включено, то настройки при удалении плагина НЕ будут удалены" 202 213 203 #: ../includes/admin/class-awooc-admin-settings.php:600214 #: classes/Admin/Settings.php:325 204 215 msgid "Useful links" 205 216 msgstr "Социальные ссылки" 206 217 207 #: ../includes/admin/class-awooc-admin-settings.php:609218 #: classes/Admin/Settings.php:335 208 219 msgid "Donate" 209 220 msgstr "Поддержать" 210 221 211 #: ../includes/admin/class-awooc-admin-settings.php:642222 #: classes/Admin/Settings.php:368 212 223 msgid "Catalog mode" 213 224 msgstr "Режим каталога" 214 225 215 #: ../includes/admin/class-awooc-admin-settings.php:643226 #: classes/Admin/Settings.php:369 216 227 msgid "Normal mode" 217 228 msgstr "Штатный режим" 218 229 219 #: ../includes/admin/class-awooc-admin-settings.php:644230 #: classes/Admin/Settings.php:370 220 231 msgid "Pre-order mode" 221 232 msgstr "Режим предзаказа" 222 233 223 #: ../includes/admin/class-awooc-admin-settings.php:645234 #: classes/Admin/Settings.php:371 224 235 msgid "Special mode" 225 236 msgstr "Специальный режим" 226 237 227 #: ../includes/admin/class-awooc-admin-settings.php:686238 #: classes/Admin/Settings.php:412 228 239 msgid "Title" 229 240 msgstr "Наименование" 230 241 231 #: ../includes/admin/class-awooc-admin-settings.php:687242 #: classes/Admin/Settings.php:413 232 243 msgid "Image" 233 244 msgstr "Изображение" 234 245 235 #: ../includes/admin/class-awooc-admin-settings.php:688246 #: classes/Admin/Settings.php:414 236 247 msgid "Price" 237 248 msgstr "Цена" 238 249 239 #: ../includes/admin/class-awooc-admin-settings.php:689250 #: classes/Admin/Settings.php:415 240 251 msgid "SKU" 241 252 msgstr "Артикул" 242 253 243 #: ../includes/admin/class-awooc-admin-settings.php:690254 #: classes/Admin/Settings.php:416 244 255 msgid "Attributes" 245 256 msgstr "Атрибуты" 246 257 247 #: ../includes/admin/class-awooc-admin-settings.php:691258 #: classes/Admin/Settings.php:417 templates/quantity-input.php:41 248 259 msgid "Quantity" 249 260 msgstr "Количество" 250 261 251 #: ../includes/admin/class-awooc-admin-settings.php:692262 #: classes/Admin/Settings.php:418 252 263 msgid "Amount" 253 264 msgstr "Итого" 254 265 255 #: ../includes/admin/class-awooc-admin-settings.php:708266 #: classes/Admin/Settings.php:435 256 267 msgid "" 257 268 "<strong>Warning! The functionality is under development. </strong> For the " … … 263 274 "c именами:" 264 275 265 #: ../includes/admin/class-awooc-admin-settings.php:709276 #: classes/Admin/Settings.php:440 266 277 msgid "field Name - <code>awooc-text</code>;" 267 278 msgstr "поле Имя - <code>awooc-text</code>;" 268 279 269 #: ../includes/admin/class-awooc-admin-settings.php:710280 #: classes/Admin/Settings.php:441 270 281 msgid "field Email - <code>awooc-email</code>;" 271 282 msgstr "поле Емайл - <code>awooc-email</code>;" 272 283 273 #: ../includes/admin/class-awooc-admin-settings.php:711284 #: classes/Admin/Settings.php:442 274 285 msgid "field Phone - <code>awooc-tel</code>;" 275 286 msgstr "поле Телефон - <code>awooc-tel</code>;" 276 287 277 #: ../includes/admin/class-awooc-admin-settings.php:742288 #: classes/Admin/Settings.php:477 278 289 #, php-format 279 290 msgid "" … … 284 295 "большое спасибо!" 285 296 286 #: ../includes/admin/class-awooc-admin-settings.php:743 287 #: ../includes/admin/class-awooc-admin-settings.php:798 297 #: classes/Admin/Settings.php:478 classes/Admin/Settings.php:532 288 298 msgid "Art WooCommerce Order One Click" 289 299 msgstr "Art WooCommerce Order One Click" 290 300 291 #: ../includes/admin/class-awooc-admin-settings.php:745301 #: classes/Admin/Settings.php:481 292 302 msgid "five star" 293 303 msgstr "пять звезд" 294 304 295 #: ../includes/admin/class-awooc-admin-settings.php:745305 #: classes/Admin/Settings.php:483 296 306 msgid "Thanks :)" 297 307 msgstr "Пожалуйста, не загружайте эту страницу напрямую. Спасибо!" 298 308 299 #: ../includes/admin/class-awooc-admin-settings.php:755309 #: classes/Admin/Settings.php:494 300 310 msgid "Thank you for using the plugin!" 301 311 msgstr "Спасибо, что используете плагин!" 302 312 303 #: ../includes/admin/class-awooc-admin-settings.php:779 304 msgid "PayPal" 305 msgstr "PayPal" 306 307 #: ../includes/admin/class-awooc-admin-settings.php:780 308 msgid "Make a donation through PayPal" 309 msgstr "Поддержать через PayPal" 310 311 #: ../includes/admin/class-awooc-admin-settings.php:784 313 #: classes/Admin/Settings.php:518 312 314 msgid "Yandex Money" 313 315 msgstr "Яндекс Деньги" 314 316 315 #: ../includes/admin/class-awooc-admin-settings.php:785317 #: classes/Admin/Settings.php:519 316 318 msgid "Make a donation through the Yandex Money system. You can use bank cards" 317 319 msgstr "Поддержать через Яндекс Деньги. Можно использовать банковские карты" 318 320 319 #: ../includes/admin/class-awooc-admin-settings.php:789321 #: classes/Admin/Settings.php:523 320 322 msgid "WPRUSe" 321 323 msgstr "WPRUSe" 322 324 323 #: ../includes/admin/class-awooc-admin-settings.php:790325 #: classes/Admin/Settings.php:524 324 326 msgid "WPRUSe project site" 325 327 msgstr "Описание проекта" 326 328 327 #: ../includes/admin/class-awooc-admin-settings.php:797329 #: classes/Admin/Settings.php:531 328 330 #, php-format 329 331 msgid "You can make a donation to make the plugin %1$s even better!" … … 332 334 "%1$s еще лучше!" 333 335 334 #: ../includes/admin/class-awooc-admin-settings.php:825 335 msgid "" 336 "Detailed step by step instructions for setting up the plugin (in Russian)" 337 msgstr "Подробная инструкция по настройке плагина (на русском)" 338 339 #: ../includes/admin/class-awooc-admin-settings.php:828 336 #: classes/Admin/Settings.php:563 337 msgid "" 338 "Detailed step by step instructions for setting up the plugin (in Russian)." 339 msgstr "Подробная инструкция по настройке плагина (на русском)." 340 341 #: classes/Admin/Settings.php:564 342 msgid "Read more..." 343 msgstr "Подробнее..." 344 345 #: classes/Admin/Settings.php:568 340 346 msgid "" 341 347 "Plugin on GitHub, you can write there suggestions, wishes or participate in " … … 345 351 "разработке" 346 352 347 #: ../includes/admin/class-awooc-admin-settings.php:849 353 #: classes/Admin/Settings.php:569 354 msgid "Plugin on GitHub" 355 msgstr "Смотреть на GitHub" 356 357 #: classes/Ajax.php:87 358 msgid "" 359 "Something is wrong with sending data. Unable to get product ID. Disable the " 360 "output in the popup window or contact the developers of the plugin" 361 msgstr "" 362 "Что-то не так с отправкой данных. Невозможно получить ID товара. Отключите " 363 "вывод данных во всплывающем окне или обратитесь к разработчикам плагина" 364 365 #: classes/Email.php:129 366 msgid "IP" 367 msgstr "IP" 368 369 #: classes/Email.php:133 370 msgid "Date" 371 msgstr "Дата" 372 373 #: classes/Email.php:137 374 msgid "Domain" 375 msgstr "Домен" 376 377 #: classes/Enqueue.php:101 348 378 msgid "" 349 379 "On the pages of the categories and the store itself, the Add to Cart buttons " … … 355 385 "появляется кнопка «Заказать»." 356 386 357 #: ../includes/admin/class-awooc-admin-settings.php:853387 #: classes/Enqueue.php:105 358 388 msgid "" 359 389 "The button \"Add to cart\" works in the normal mode, that is, goods can be " … … 363 393 "добавить в корзину и одновременно заказать в один клик" 364 394 365 #: ../includes/admin/class-awooc-admin-settings.php:857395 #: classes/Enqueue.php:109 366 396 msgid "" 367 397 "The Order button will appear automatically if: Price not available; stock " … … 374 404 "заказы разрешены" 375 405 376 #: ../includes/admin/class-awooc-admin-settings.php:861406 #: classes/Enqueue.php:113 377 407 msgid "" 378 408 "When turned on, it works the same way as normal mode. But if the goods have " … … 382 412 "цены или товара нет в наличии, то появится только кнопка Заказать." 383 413 384 #: ../includes/admin/class-awooc-install-form.php:41 385 msgid "Your Name" 386 msgstr "Ваше имя" 387 388 #: ../includes/admin/class-awooc-install-form.php:42 389 msgid "Your Email" 390 msgstr "Ваш Email" 391 392 #: ../includes/admin/class-awooc-install-form.php:43 393 msgid "Your Phone" 394 msgstr "Ваш телефон" 395 396 #: ../includes/admin/class-awooc-install-form.php:44 397 msgid "Send" 398 msgstr "Отправить" 399 400 #: ../includes/admin/class-awooc-install-form.php:48 401 #, php-format 402 msgid "Name: %s" 403 msgstr "Имя: %s" 404 405 #: ../includes/admin/class-awooc-install-form.php:49 406 #, php-format 407 msgid "Email: %s" 408 msgstr "Email: %s" 409 410 #: ../includes/admin/class-awooc-install-form.php:50 411 #, php-format 412 msgid "Phone: %s" 413 msgstr "Телефон: %s" 414 415 #: ../includes/admin/class-awooc-install-form.php:52 416 #, php-format 417 msgid "This e-mail was sent from a contact form on %1$s (%2$s)" 418 msgstr "Это письмо было отправлено с формы обратной связи на %1$s (%2$s)" 419 420 #: ../includes/admin/class-awooc-install-form.php:85 421 #: ../includes/admin/class-awooc-install-form.php:99 422 #, php-format 423 msgid "Order from the site %1$s (%2$s)" 424 msgstr "Заказ с сайта %1$s (%2$s)" 425 426 #: ../includes/admin/class-awooc-install-form.php:122 427 msgid "Order One Click" 428 msgstr "Заказ в один клик" 429 430 #: ../includes/class-awooc-ajax.php:55 431 msgid "" 432 "Something is wrong with sending data. Unable to get product ID. Disable the " 433 "output in the popup window or contact the developers of the plugin" 434 msgstr "" 435 "Что-то не так с отправкой данных. Невозможно получить ID товара. Отключите " 436 "вывод данных во всплывающем окне или обратитесь к разработчикам плагина" 437 438 #: ../includes/class-awooc-ajax.php:195 414 #: classes/Enqueue.php:147 classes/Prepare/Mail.php:78 415 #: classes/Prepare/Popup.php:155 416 msgid "Quantity: " 417 msgstr "Количество: " 418 419 #: classes/Enqueue.php:148 classes/Prepare/Mail.php:31 420 msgid "Title: " 421 msgstr "Наименование: " 422 423 #: classes/Enqueue.php:149 classes/Prepare/Mail.php:48 424 #: classes/Prepare/Popup.php:45 425 msgid "Price: " 426 msgstr "Цена: " 427 428 #: classes/Enqueue.php:150 classes/Prepare/Mail.php:58 429 #: classes/Prepare/Popup.php:66 430 msgid "SKU: " 431 msgstr "Артикул: " 432 433 #: classes/Enqueue.php:151 classes/Prepare/Mail.php:88 434 #: classes/Prepare/Popup.php:181 435 msgid "Amount: " 436 msgstr "Итого: " 437 438 #: classes/Enqueue.php:152 classes/Prepare/Mail.php:68 439 #: classes/Prepare/Popup.php:92 440 msgid "Attributes: " 441 msgstr "Атрибуты: " 442 443 #: classes/Enqueue.php:153 templates/email.php:448 444 msgid "Information about the selected product" 445 msgstr "Информация о выбранном товаре" 446 447 #: classes/Enqueue.php:154 classes/Prepare/Mail.php:104 448 msgid "Link to the product: " 449 msgstr "Ссылка на товар: " 450 451 #: classes/Enqueue.php:155 452 msgid "Click to close" 453 msgstr "Ткнуть для закрытия" 454 455 #: classes/Front.php:115 456 msgid "Read more" 457 msgstr "Читать" 458 459 #: classes/Main.php:138 460 msgid "Settings" 461 msgstr "Настройки" 462 463 #: classes/Orders.php:59 464 msgid "Order One Click: " 465 msgstr "Заказ в один клик: " 466 467 #: classes/Orders.php:145 468 msgid "The order was created by using the One-click Order button" 469 msgstr "Заказ был создан с помощью кнопки \"Заказ в один клик\"" 470 471 #: classes/Prepare/Mail.php:123 472 msgid "Category: " 473 msgid_plural "Categories: " 474 msgstr[0] "Категория: " 475 msgstr[1] "Категории: " 476 msgstr[2] "Категории: " 477 478 #: classes/Prepare/Prepare.php:142 439 479 msgid "N/A" 440 480 msgstr "Нет" 441 481 442 #: ../includes/class-awooc-ajax.php:306 ../includes/class-awooc-enqueue.php:65 443 msgid "Attributes: " 444 msgstr "Атрибуты: " 445 446 #: ../includes/class-awooc-ajax.php:331 ../includes/class-awooc-enqueue.php:62 447 msgid "Price: " 448 msgstr "Цена: " 449 450 #: ../includes/class-awooc-ajax.php:358 ../includes/class-awooc-enqueue.php:64 451 msgid "Amount: " 452 msgstr "Итого: " 453 454 #: ../includes/class-awooc-ajax.php:405 455 msgid "Category:" 456 msgid_plural "Categories:" 457 msgstr[0] "Категория:" 458 msgstr[1] "Категории:" 459 msgstr[2] "Категории:" 460 461 #: ../includes/class-awooc-ajax.php:470 ../includes/class-awooc-enqueue.php:63 462 msgid "SKU: " 463 msgstr "Артикул: " 464 465 #: ../includes/class-awooc-enqueue.php:60 466 msgid "Quantity: " 467 msgstr "Количество: " 468 469 #: ../includes/class-awooc-enqueue.php:61 470 msgid "Title: " 471 msgstr "Наименование: " 472 473 #: ../includes/class-awooc-enqueue.php:66 474 msgid "Information about the selected product" 475 msgstr "Информация о выбранном товаре" 476 477 #: ../includes/class-awooc-enqueue.php:67 478 msgid "Link to the product: " 479 msgstr "Ссылка на товар: " 480 481 #: ../includes/class-awooc-enqueue.php:68 482 msgid "Click to close" 483 msgstr "Ткнуть для закрытия" 484 485 #: ../includes/class-awooc-front-end.php:386 486 msgid "Read more" 487 msgstr "Читать" 488 489 #: ../includes/class-awooc.php:288 490 msgid "Settings" 491 msgstr "Настройки" 492 493 #: ../includes/class-awooc.php:306 494 #, php-format 495 msgid "" 496 "%1$s requires PHP version 7.3 or higher. Your current PHP version is %2$s. " 497 "Please upgrade PHP version to run this plugin." 498 msgstr "" 499 "%1$s требует PHP версии 7.3 или выше. Ваша текущая версия PHP%2$s. " 500 "Пожалуйста, обновите версию PHP, чтобы запустить этот плагин." 501 502 #: ../includes/class-awooc.php:420 503 #, php-format 504 msgid "The %s requires installed and activated plugins: " 505 msgstr "" 506 "Для работы плагина %s требуются установенные и активированные плагины: " 507 508 #: ../includes/class-awooc.php:432 482 #: classes/Product/Meta.php:47 483 msgid "Disable Order One Click Button" 484 msgstr "Отключить кнопку Заказать" 485 486 #: classes/Product/Meta.php:49 487 msgid "" 488 "If enabled, then on this product the Order button will not be visible. " 489 "Product will return to its original condition." 490 msgstr "" 491 "Если включить, то на этом товаре кнопка Заказать будет не видна. Товар " 492 "вернется к исходному состоянию." 493 494 #: classes/Requirements.php:102 495 #, php-format 496 msgid "The <strong>%s</strong> requires installed and activated plugins: " 497 msgstr "" 498 "Для работы плагина <strong>%s</strong> требуются установленные и " 499 "активированные плагины: " 500 501 #: classes/Requirements.php:118 509 502 msgid " version " 510 503 msgstr " версия " 511 504 512 #: ../includes/class-awooc.php:432505 #: classes/Requirements.php:120 513 506 msgid " or higher" 514 507 msgstr " или выше" 515 508 516 #: ../includes/class-awooc.php:440509 #: classes/Requirements.php:130 517 510 msgid " and " 518 511 msgstr " и " 519 512 520 #: ../includes/class-awooc.php:464 521 #, php-format 522 msgid "%s plugin has been deactivated." 523 msgstr "Плагин %s деактивирован." 513 #: classes/Requirements.php:154 514 #, php-format 515 msgid "<strong>%s</strong> plugin has been deactivated." 516 msgstr "<strong>%s</strong> плагин был деактивирован." 517 518 #: includes/create-cf7-field.php:94 519 msgid "AWOOC hide field" 520 msgstr "AWOOC скрытое поле" 521 522 #: includes/create-cf7-field.php:109 523 #, php-format 524 msgid "Generate a special hidden multi-line field. See %s." 525 msgstr "Генерируется специальное многострочное поле. Смотрите %s." 526 527 #: includes/create-cf7-field.php:112 528 msgid "https://wpruse.ru/my-plugins/order-one-click/" 529 msgstr "https://wpruse.ru/my-plugins/order-one-click/" 530 531 #: includes/create-cf7-field.php:113 532 msgid "the description for details" 533 msgstr "подробное описание" 534 535 #: includes/create-cf7-field.php:126 536 msgid "Name" 537 msgstr "Имя" 538 539 #: includes/create-cf7-field.php:154 540 msgid "Insert Tag" 541 msgstr "Вставить" 542 543 #: includes/create-cf7-field.php:166 544 #, php-format 545 msgid "" 546 "To use the value input through this field in a mail field, you need to " 547 "insert the corresponding mail-tag (%s) into the field on the Mail tab." 548 msgstr "" 549 "Чтобы использовать значение, введенное через это поле в письме, необходимо " 550 "вставить соответствующий почтовый тег (%s) в поле на вкладке Почта." 551 552 #: templates/email.php:413 553 msgid "A quick one-click order has arrived" 554 msgstr "Пришел заказ в один клик" 555 556 #: templates/quantity-input.php:40 557 #, php-format 558 msgid "%s quantity" 559 msgstr "%s количество" 560 561 #: templates/quantity-input.php:54 562 msgid "Product quantity" 563 msgstr "Количество товара" 564 565 #~ msgid "Locale" 566 #~ msgstr "Локаль" 567 568 #, php-format 569 #~ msgid "Price: %s" 570 #~ msgstr "Цена: %s" 571 572 #, php-format 573 #~ msgid "SKU: %s" 574 #~ msgstr "Артикул: %s" 575 576 #, php-format 577 #~ msgid "Attributes: %s" 578 #~ msgstr "Атрибуты: %s" 579 580 #, php-format 581 #~ msgid "Quantity: %s" 582 #~ msgstr "Количество: %s" 583 584 #, php-format 585 #~ msgid "Amount: %s" 586 #~ msgstr "Итого: %s" 587 588 #, php-format 589 #~ msgid "Link to the product: %s" 590 #~ msgstr "Ссылка на товар: %s" 591 592 #, php-format 593 #~ msgid "Title: %s" 594 #~ msgstr "Наименование: %s" 595 596 #, php-format 597 #~ msgid "" 598 #~ "%1$s requires PHP version 7.3 or higher. Your current PHP version is " 599 #~ "%2$s. Please upgrade PHP version to run this plugin." 600 #~ msgstr "" 601 #~ "%1$s требует PHP версии 7.3 или выше. Ваша текущая версия PHP%2$s. " 602 #~ "Пожалуйста, обновите версию PHP, чтобы запустить этот плагин." 603 604 #~ msgid "Styles and scripts globally" 605 #~ msgstr "Стили и скрипты глобально" 606 607 #~ msgid "" 608 #~ "If you enable this setting, then the files of forces and scripts will be " 609 #~ "connected globally on all pages of the site. This setting will be useful " 610 #~ "for displaying the One-click Order button on the list of products and " 611 #~ "when using quick view" 612 #~ msgstr "" 613 #~ "Если включить эту настройку, то файлы стилей и скриптов будут " 614 #~ "подключаться глобально на всех страницах сайта. Данная настройка будет " 615 #~ "полезна при выводе кнопки Заказать в один клик на странице со списком " 616 #~ "продуктов и при использовании быстрого просмотра" 617 618 #~ msgid "PayPal" 619 #~ msgstr "PayPal" 620 621 #~ msgid "Make a donation through PayPal" 622 #~ msgstr "Поддержать через PayPal" 524 623 525 624 #~ msgid "Oops ... Data sent from unknown address" -
art-woocommerce-order-one-click/trunk/languages/art-woocommerce-order-one-click-ru_RU.pot
r2145167 r3232179 1 #, fuzzy 1 2 msgid "" 2 3 msgstr "" 3 4 "Project-Id-Version: art-woocommerce-order-one-click\n" 4 "POT-Creation-Date: 20 19-08-25 14:01+0400\n"5 "POT-Creation-Date: 2025-01-30 01:23+0400\n" 5 6 "PO-Revision-Date: 2019-08-25 14:04+0400\n" 6 7 "Last-Translator: Абрамович Артем | artabr.ru <artikus.sol@gmail.com>\n" … … 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 " X-Generator: Poedit 1.7.6\n"13 " X-Poedit-Basepath: .\n"14 " Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 &&n"15 " %10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"13 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 14 "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" 15 "X-Generator: Poedit 3.4.1\n" 16 "X-Poedit-Basepath: ..\n" 16 17 "X-Poedit-SourceCharset: UTF-8\n" 17 18 "X-Poedit-KeywordsList: __;esc_html__;_e;_ex:1,2c;esc_attr__;esc_attr_e;" 18 19 "esc_attr_x:1,2c;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2\n" 19 "X-Poedit-SearchPath-0: .\n" 20 "X-Poedit-SearchPath-1: ..\n" 21 22 #: ../includes/admin/added-cf7-field.php:72 23 msgid "AWOOC hide field" 24 msgstr "AWOOC скрытое поле" 25 26 #: ../includes/admin/added-cf7-field.php:80 27 #, php-format 28 msgid "Generate a special hidden multi-line field. See %s." 29 msgstr "Генерируется специальное многострочное поле. Смотрите %s." 30 31 #: ../includes/admin/added-cf7-field.php:83 32 msgid "https://wpruse.ru/my-plugins/order-one-click/" 33 msgstr "https://wpruse.ru/my-plugins/order-one-click/" 34 35 #: ../includes/admin/added-cf7-field.php:84 36 msgid "the description for details" 37 msgstr "подробное описание" 38 39 #: ../includes/admin/added-cf7-field.php:97 40 msgid "Name" 41 msgstr "Имя" 42 43 #: ../includes/admin/added-cf7-field.php:123 44 msgid "Insert Tag" 45 msgstr "Вставить" 46 47 #: ../includes/admin/added-cf7-field.php:135 48 #, php-format 49 msgid "" 50 "To use the value input through this field in a mail field, you need to " 51 "insert the corresponding mail-tag (%s) into the field on the Mail tab." 52 msgstr "" 53 "Чтобы использовать значение, введенное через это поле в письме, необходимо " 54 "вставить соответствующий почтовый тег (% s) в поле на вкладке Почта." 55 56 #: ../includes/admin/class-awooc-admin-meta-box.php:51 57 msgid "Disable Order One Click Button" 58 msgstr "Отключить кнопку Заказать" 59 60 #: ../includes/admin/class-awooc-admin-meta-box.php:52 61 msgid "" 62 "If enabled, then on this product the Order button will not be visible. " 63 "Product will return to its original condition." 64 msgstr "" 65 "Если включить, то на этом товаре кнопка Заказать будет не видна. Товар " 66 "вернется к исходному состоянию" 67 68 #: ../includes/admin/class-awooc-admin-settings.php:23 69 #: ../includes/class-awooc-orders.php:112 20 "X-Poedit-SearchPath-0: languages\n" 21 "X-Poedit-SearchPath-1: .\n" 22 "X-Poedit-SearchPathExcluded-0: .idea\n" 23 "X-Poedit-SearchPathExcluded-1: .github\n" 24 "X-Poedit-SearchPathExcluded-2: .git\n" 25 "X-Poedit-SearchPathExcluded-3: node_modules\n" 26 "X-Poedit-SearchPathExcluded-4: vendor\n" 27 28 #: classes/Admin/Create_Form.php:44 29 #, fuzzy 30 msgid "Your Name" 31 msgstr "Ваше имя" 32 33 #: classes/Admin/Create_Form.php:45 34 #, fuzzy 35 msgid "Your Email" 36 msgstr "Ваш Email" 37 38 #: classes/Admin/Create_Form.php:46 39 #, fuzzy 40 msgid "Your Phone" 41 msgstr "Ваш телефон" 42 43 #: classes/Admin/Create_Form.php:47 44 #, fuzzy 45 msgid "Send" 46 msgstr "Отправить" 47 48 #: classes/Admin/Create_Form.php:51 49 #, fuzzy, php-format 50 msgid "Name: %s" 51 msgstr "Имя: %s" 52 53 #: classes/Admin/Create_Form.php:52 54 #, fuzzy, php-format 55 msgid "Email: %s" 56 msgstr "Email: %s" 57 58 #: classes/Admin/Create_Form.php:53 59 #, fuzzy, php-format 60 msgid "Phone: %s" 61 msgstr "Телефон: %s" 62 63 #: classes/Admin/Create_Form.php:55 64 #, fuzzy, php-format 65 msgid "This e-mail was sent from a contact form on %1$s (%2$s)" 66 msgstr "Это письмо было отправлено с формы обратной связи на %1$s (%2$s)" 67 68 #: classes/Admin/Create_Form.php:87 classes/Admin/Create_Form.php:101 69 #, fuzzy, php-format 70 msgid "Order from the site %1$s (%2$s)" 71 msgstr "Заказ с сайта %1$s (%2$s)" 72 73 #: classes/Admin/Create_Form.php:124 templates/email.php:412 74 #, fuzzy 75 msgid "Order One Click" 76 msgstr "Заказ в один клик" 77 78 #: classes/Admin/Settings.php:35 classes/Orders.php:147 79 #, fuzzy 70 80 msgid "One click order" 71 81 msgstr "Заказ в один клик" 72 82 73 #: ../includes/admin/class-awooc-admin-settings.php:71 83 #: classes/Admin/Settings.php:69 84 #, fuzzy 74 85 msgid "Off" 75 msgstr "Выкл ючить"76 77 #: ../includes/admin/class-awooc-admin-settings.php:7286 msgstr "Выкл" 87 88 #: classes/Admin/Settings.php:70 78 89 msgid "On" 79 msgstr "Включить" 80 81 #: ../includes/admin/class-awooc-admin-settings.php:365 90 msgstr "" 91 92 #: classes/Admin/Settings.php:85 93 #, fuzzy 82 94 msgid "General" 83 95 msgstr "Основные" 84 96 85 #: ../includes/admin/class-awooc-admin-settings.php:402 97 #: classes/Admin/Settings.php:129 98 #, fuzzy 86 99 msgid "General settings" 87 msgstr "Общие настройки" 88 89 #: ../includes/admin/class-awooc-admin-settings.php:408 100 msgstr "Основные настройки" 101 102 #: classes/Admin/Settings.php:135 103 #, fuzzy 90 104 msgid "Operating mode" 91 105 msgstr "Режим работы" 92 106 93 #: ../includes/admin/class-awooc-admin-settings.php:409 107 #: classes/Admin/Settings.php:136 108 #, fuzzy 94 109 msgid "Select the mode of operation and display the Buy button" 95 msgstr "Выберите режим работы и показа кнопки Купить" 96 97 #: ../includes/admin/class-awooc-admin-settings.php:419 110 msgstr "Выберите режим работы" 111 112 #: classes/Admin/Settings.php:147 113 #, fuzzy 98 114 msgid "Select form" 99 115 msgstr "Выберите форму" 100 116 101 #: ../includes/admin/class-awooc-admin-settings.php:420 117 #: classes/Admin/Settings.php:148 118 #, fuzzy 102 119 msgid "Choose the desired form" 103 120 msgstr "Выберите нужную форму" 104 121 105 #: ../includes/admin/class-awooc-admin-settings.php:424 122 #: classes/Admin/Settings.php:152 123 #, fuzzy 106 124 msgid "-- Select --" 107 125 msgstr "-- Выбрать --" 108 126 109 #: ../includes/admin/class-awooc-admin-settings.php:431 127 #: classes/Admin/Settings.php:160 128 #, fuzzy 110 129 msgid "Button Label" 111 msgstr "Надпись на кнопке" 112 113 #: ../includes/admin/class-awooc-admin-settings.php:432 130 msgstr "Название кнопки" 131 132 #: classes/Admin/Settings.php:161 133 #, fuzzy 114 134 msgid "Specify the desired label on the button" 115 135 msgstr "Укажите нужную надпись на кнопке" 116 136 117 #: ../includes/admin/class-awooc-admin-settings.php:435 137 #: classes/Admin/Settings.php:164 138 #, fuzzy 118 139 msgid "Buy in one click" 119 140 msgstr "Купить в один клик" 120 141 121 #: ../includes/admin/class-awooc-admin-settings.php:441 142 #: classes/Admin/Settings.php:171 143 #, fuzzy 122 144 msgid "Special label" 123 145 msgstr "Специальная надпись" 124 146 125 #: ../includes/admin/class-awooc-admin-settings.php:443 147 #: classes/Admin/Settings.php:173 148 #, fuzzy 126 149 msgid "" 127 150 "Special field for the Order button. Allows you to change the label on the " … … 131 154 "при включении режима Цены и Запасы." 132 155 133 #: ../includes/admin/class-awooc-admin-settings.php:458 156 #: classes/Admin/Settings.php:184 157 #, fuzzy 158 msgid "Button on the catalog" 159 msgstr "Кнопка на каталоге" 160 161 #: classes/Admin/Settings.php:186 162 msgid "" 163 "Button output on catalog pages (store, categories, labels, attributes). It " 164 "is displayed only for simple products" 165 msgstr "" 166 167 #: classes/Admin/Settings.php:201 168 #, fuzzy 134 169 msgid "Popup window" 135 170 msgstr "Всплывающее окно" 136 171 137 #: ../includes/admin/class-awooc-admin-settings.php:465 172 #: classes/Admin/Settings.php:208 173 #, fuzzy 138 174 msgid "Turn off window elements" 139 175 msgstr "Выключить элементы окна" 140 176 141 #: ../includes/admin/class-awooc-admin-settings.php:466 177 #: classes/Admin/Settings.php:209 178 #, fuzzy 142 179 msgid "Remove items that are NOT needed." 143 msgstr "Уберите элементы, которые НЕ нужны" 144 145 #: ../includes/admin/class-awooc-admin-settings.php:482 180 msgstr "Уберите элементы, которые НЕ нужны." 181 182 #: classes/Admin/Settings.php:225 183 #, fuzzy 146 184 msgid "Orders" 147 185 msgstr "Заказы" 148 186 149 #: ../includes/admin/class-awooc-admin-settings.php:496 187 #: classes/Admin/Settings.php:240 188 #, fuzzy 150 189 msgid "Create orders" 151 190 msgstr "Создание заказов" 152 191 153 #: ../includes/admin/class-awooc-admin-settings.php:498 192 #: classes/Admin/Settings.php:242 193 #, fuzzy 154 194 msgid "" 155 195 "When this setting is enabled, orders will be created in the WooCommerce " … … 159 199 "со статусом \"В ожидании оплаты\"" 160 200 161 #: ../includes/admin/class-awooc-admin-settings.php:507 201 #: classes/Admin/Settings.php:252 202 #, fuzzy 162 203 msgid "Change subject" 163 204 msgstr "Изменить заголовок" 164 205 165 #: ../includes/admin/class-awooc-admin-settings.php:509 206 #: classes/Admin/Settings.php:254 207 #, fuzzy 166 208 msgid "" 167 209 "If you enable this setting, then the order number will be added to the " … … 171 213 "в формате \"Тема письма №112233\"" 172 214 173 #: ../includes/admin/class-awooc-admin-settings.php:522 215 #: classes/Admin/Settings.php:263 216 #, fuzzy 217 msgid "Custom letter template" 218 msgstr "Произвольный шаблон письма" 219 220 #: classes/Admin/Settings.php:265 221 #, fuzzy 222 msgid "" 223 "When enabled, it will not use the template specified in CF7, but an " 224 "arbitrary email template from the plugin" 225 msgstr "" 226 "При включении будет использоваться не указанный в CF7 шаблон, а произвольный " 227 "шаблон письма из плагина" 228 229 #: classes/Admin/Settings.php:278 230 #, fuzzy 174 231 msgid "Others" 175 232 msgstr "Разное" 176 233 177 #: ../includes/admin/class-awooc-admin-settings.php:529 234 #: classes/Admin/Settings.php:285 235 #, fuzzy 178 236 msgid "Do not delete settings" 179 msgstr "Не удалять настройки " 180 181 #: ../includes/admin/class-awooc-admin-settings.php:531 237 msgstr "Не удалять настройки" 238 239 #: classes/Admin/Settings.php:287 240 #, fuzzy 182 241 msgid "" 183 242 "If enabled, then the settings when you remove the plugin will NOT be deleted" 184 msgstr "Если включено, то настроки при удалении плагина НЕ будут удалены" 185 186 #: ../includes/admin/class-awooc-admin-settings.php:567 243 msgstr "Если включено, то настройки при удалении плагина НЕ будут удалены" 244 245 #: classes/Admin/Settings.php:325 246 #, fuzzy 187 247 msgid "Useful links" 188 248 msgstr "Социальные ссылки" 189 249 190 #: ../includes/admin/class-awooc-admin-settings.php:576 250 #: classes/Admin/Settings.php:335 251 #, fuzzy 191 252 msgid "Donate" 192 253 msgstr "Поддержать" 193 254 194 #: ../includes/admin/class-awooc-admin-settings.php:607 255 #: classes/Admin/Settings.php:368 256 #, fuzzy 195 257 msgid "Catalog mode" 196 258 msgstr "Режим каталога" 197 259 198 #: ../includes/admin/class-awooc-admin-settings.php:608 260 #: classes/Admin/Settings.php:369 261 #, fuzzy 199 262 msgid "Normal mode" 200 263 msgstr "Штатный режим" 201 264 202 #: ../includes/admin/class-awooc-admin-settings.php:609 265 #: classes/Admin/Settings.php:370 266 #, fuzzy 203 267 msgid "Pre-order mode" 204 268 msgstr "Режим предзаказа" 205 269 206 #: ../includes/admin/class-awooc-admin-settings.php:610 270 #: classes/Admin/Settings.php:371 271 #, fuzzy 207 272 msgid "Special mode" 208 273 msgstr "Специальный режим" 209 274 210 #: ../includes/admin/class-awooc-admin-settings.php:646 275 #: classes/Admin/Settings.php:412 276 #, fuzzy 211 277 msgid "Title" 212 msgstr "Название" 213 214 #: ../includes/admin/class-awooc-admin-settings.php:647 278 msgstr "Заголовок:" 279 280 #: classes/Admin/Settings.php:413 281 #, fuzzy 215 282 msgid "Image" 216 msgstr "Изображения" 217 218 #: ../includes/admin/class-awooc-admin-settings.php:648 283 msgstr "Изображение" 284 285 #: classes/Admin/Settings.php:414 286 #, fuzzy 219 287 msgid "Price" 220 288 msgstr "Цена" 221 289 222 #: ../includes/admin/class-awooc-admin-settings.php:649 290 #: classes/Admin/Settings.php:415 291 #, fuzzy 223 292 msgid "SKU" 224 293 msgstr "Артикул" 225 294 226 #: ../includes/admin/class-awooc-admin-settings.php:650 295 #: classes/Admin/Settings.php:416 296 #, fuzzy 227 297 msgid "Attributes" 228 298 msgstr "Атрибуты" 229 299 230 #: ../includes/admin/class-awooc-admin-settings.php:651 300 #: classes/Admin/Settings.php:417 templates/quantity-input.php:41 301 #, fuzzy 231 302 msgid "Quantity" 232 303 msgstr "Количество" 233 304 234 #: ../includes/admin/class-awooc-admin-settings.php:667 305 #: classes/Admin/Settings.php:418 306 #, fuzzy 307 msgid "Amount" 308 msgstr "Сумма" 309 310 #: classes/Admin/Settings.php:435 311 #, fuzzy 235 312 msgid "" 236 313 "<strong>Warning! The functionality is under development. </strong> For the " … … 242 319 "c именами:" 243 320 244 #: ../includes/admin/class-awooc-admin-settings.php:668 321 #: classes/Admin/Settings.php:440 322 #, fuzzy 245 323 msgid "field Name - <code>awooc-text</code>;" 246 324 msgstr "поле Имя - <code>awooc-text</code>;" 247 325 248 #: ../includes/admin/class-awooc-admin-settings.php:669 326 #: classes/Admin/Settings.php:441 327 #, fuzzy 249 328 msgid "field Email - <code>awooc-email</code>;" 250 329 msgstr "поле Емайл - <code>awooc-email</code>;" 251 330 252 #: ../includes/admin/class-awooc-admin-settings.php:670 331 #: classes/Admin/Settings.php:442 332 #, fuzzy 253 333 msgid "field Phone - <code>awooc-tel</code>;" 254 334 msgstr "поле Телефон - <code>awooc-tel</code>;" 255 335 256 #: ../includes/admin/class-awooc-admin-settings.php:702257 #, php-format336 #: classes/Admin/Settings.php:477 337 #, fuzzy, php-format 258 338 msgid "" 259 339 "If you like the plugin %1$s please leave us a %2$s rating. A huge thanks in " … … 263 343 "большое спасибо!" 264 344 265 #: ../includes/admin/class-awooc-admin-settings.php:703266 # : ../includes/admin/class-awooc-admin-settings.php:757345 #: classes/Admin/Settings.php:478 classes/Admin/Settings.php:532 346 #, fuzzy 267 347 msgid "Art WooCommerce Order One Click" 268 348 msgstr "Art WooCommerce Order One Click" 269 349 270 #: ../includes/admin/class-awooc-admin-settings.php:705 350 #: classes/Admin/Settings.php:481 351 #, fuzzy 271 352 msgid "five star" 272 353 msgstr "пять звезд" 273 354 274 #: ../includes/admin/class-awooc-admin-settings.php:705 355 #: classes/Admin/Settings.php:483 356 #, fuzzy 275 357 msgid "Thanks :)" 276 msgstr "Спасибо!" 277 278 #: ../includes/admin/class-awooc-admin-settings.php:715 358 msgstr "Пожалуйста, не загружайте эту страницу напрямую. Спасибо!" 359 360 #: classes/Admin/Settings.php:494 361 #, fuzzy 279 362 msgid "Thank you for using the plugin!" 280 363 msgstr "Спасибо, что используете плагин!" 281 364 282 #: ../includes/admin/class-awooc-admin-settings.php:739 283 msgid "PayPal" 284 msgstr "PayPal" 285 286 #: ../includes/admin/class-awooc-admin-settings.php:740 287 msgid "Make a donation through PayPal" 288 msgstr "Поддержать через PayPal" 289 290 #: ../includes/admin/class-awooc-admin-settings.php:744 365 #: classes/Admin/Settings.php:518 366 #, fuzzy 291 367 msgid "Yandex Money" 292 368 msgstr "Яндекс Деньги" 293 369 294 #: ../includes/admin/class-awooc-admin-settings.php:745 370 #: classes/Admin/Settings.php:519 371 #, fuzzy 295 372 msgid "Make a donation through the Yandex Money system. You can use bank cards" 296 373 msgstr "Поддержать через Яндекс Деньги. Можно использовать банковские карты" 297 374 298 #: ../includes/admin/class-awooc-admin-settings.php:749 375 #: classes/Admin/Settings.php:523 376 #, fuzzy 299 377 msgid "WPRUSe" 300 378 msgstr "WPRUSe" 301 379 302 #: ../includes/admin/class-awooc-admin-settings.php:750 380 #: classes/Admin/Settings.php:524 381 #, fuzzy 303 382 msgid "WPRUSe project site" 304 383 msgstr "Описание проекта" 305 384 306 #: ../includes/admin/class-awooc-admin-settings.php:757307 #, php-format385 #: classes/Admin/Settings.php:531 386 #, fuzzy, php-format 308 387 msgid "You can make a donation to make the plugin %1$s even better!" 309 388 msgstr "" … … 311 390 "%1$s еще лучше!" 312 391 313 #: ../includes/admin/class-awooc-admin-settings.php:784 314 msgid "" 315 "Detailed step by step instructions for setting up the plugin (in Russian)" 316 msgstr "Подробная инструкция по настройке плагина (на русском)" 317 318 #: ../includes/admin/class-awooc-admin-settings.php:787 392 #: classes/Admin/Settings.php:563 393 #, fuzzy 394 msgid "" 395 "Detailed step by step instructions for setting up the plugin (in Russian)." 396 msgstr "Подробная инструкция по настройке плагина (на русском)." 397 398 #: classes/Admin/Settings.php:564 399 #, fuzzy 400 msgid "Read more..." 401 msgstr "Подробнее..." 402 403 #: classes/Admin/Settings.php:568 404 #, fuzzy 319 405 msgid "" 320 406 "Plugin on GitHub, you can write there suggestions, wishes or participate in " … … 322 408 msgstr "" 323 409 "Плагин на GitHub. Можно оставить пожелания, предложения или поучаствовать в " 324 "разработке." 325 326 #: ../includes/admin/class-awooc-admin-settings.php:808 410 "разработке" 411 412 #: classes/Admin/Settings.php:569 413 msgid "Plugin on GitHub" 414 msgstr "" 415 416 #: classes/Ajax.php:87 417 #, fuzzy 418 msgid "" 419 "Something is wrong with sending data. Unable to get product ID. Disable the " 420 "output in the popup window or contact the developers of the plugin" 421 msgstr "" 422 "Что-то не так с отправкой данных. Невозможно получить ID товара. Отключите " 423 "вывод данных во всплывающем окне или обратитесь к разработчикам плагина" 424 425 #: classes/Email.php:129 426 #, fuzzy 427 msgid "IP" 428 msgstr "IP" 429 430 #: classes/Email.php:133 431 #, fuzzy 432 msgid "Date" 433 msgstr "Дата" 434 435 #: classes/Email.php:137 436 #, fuzzy 437 msgid "Domain" 438 msgstr "Домен" 439 440 #: classes/Enqueue.php:101 441 #, fuzzy 327 442 msgid "" 328 443 "On the pages of the categories and the store itself, the Add to Cart buttons " … … 334 449 "появляется кнопка «Заказать»." 335 450 336 #: ../includes/admin/class-awooc-admin-settings.php:812 451 #: classes/Enqueue.php:105 452 #, fuzzy 337 453 msgid "" 338 454 "The button \"Add to cart\" works in the normal mode, that is, goods can be " … … 342 458 "добавить в корзину и одновременно заказать в один клик" 343 459 344 #: ../includes/admin/class-awooc-admin-settings.php:816 460 #: classes/Enqueue.php:109 461 #, fuzzy 345 462 msgid "" 346 463 "The Order button will appear automatically if: Price not available; stock " … … 353 470 "заказы разрешены" 354 471 355 #: ../includes/admin/class-awooc-admin-settings.php:820 472 #: classes/Enqueue.php:113 473 #, fuzzy 356 474 msgid "" 357 475 "When turned on, it works the same way as normal mode. But if the goods have " … … 361 479 "цены или товара нет в наличии, то появится только кнопка Заказать." 362 480 363 #: ../includes/class-art-woo-order-one-click.php:234 481 #: classes/Enqueue.php:147 classes/Prepare/Mail.php:78 482 #: classes/Prepare/Popup.php:155 483 #, fuzzy 484 msgid "Quantity: " 485 msgstr "Количество: " 486 487 #: classes/Enqueue.php:148 classes/Prepare/Mail.php:31 488 #, fuzzy 489 msgid "Title: " 490 msgstr "Заголовок:" 491 492 #: classes/Enqueue.php:149 classes/Prepare/Mail.php:48 493 #: classes/Prepare/Popup.php:45 494 #, fuzzy 495 msgid "Price: " 496 msgstr "Цена: " 497 498 #: classes/Enqueue.php:150 classes/Prepare/Mail.php:58 499 #: classes/Prepare/Popup.php:66 500 #, fuzzy 501 msgid "SKU: " 502 msgstr "Артикул: " 503 504 #: classes/Enqueue.php:151 classes/Prepare/Mail.php:88 505 #: classes/Prepare/Popup.php:181 506 #, fuzzy 507 msgid "Amount: " 508 msgstr "Итого: " 509 510 #: classes/Enqueue.php:152 classes/Prepare/Mail.php:68 511 #: classes/Prepare/Popup.php:92 512 #, fuzzy 513 msgid "Attributes: " 514 msgstr "Атрибуты: " 515 516 #: classes/Enqueue.php:153 templates/email.php:448 517 #, fuzzy 518 msgid "Information about the selected product" 519 msgstr "Информация о выбранном товаре" 520 521 #: classes/Enqueue.php:154 classes/Prepare/Mail.php:104 522 #, fuzzy 523 msgid "Link to the product: " 524 msgstr "Ссылка на товар: " 525 526 #: classes/Enqueue.php:155 527 #, fuzzy 528 msgid "Click to close" 529 msgstr "Ткнуть для закрытия" 530 531 #: classes/Front.php:115 532 #, fuzzy 533 msgid "Read more" 534 msgstr "Читать" 535 536 #: classes/Main.php:138 537 #, fuzzy 364 538 msgid "Settings" 365 539 msgstr "Настройки" 366 540 367 #: ../includes/class-art-woo-order-one-click.php:254 368 #, php-format 369 msgid "" 370 "%1$s requires PHP version 5.6 or higher. Your current PHP version is %2$s. " 371 "Please upgrade PHP version to run this plugin." 372 msgstr "" 373 "%1$s требует PHP версии 5.6 или выше. Ваша текущая версия PHP%2$s. " 374 "Пожалуйста, обновите версию PHP, чтобы запустить этот плагин." 375 376 #: ../includes/class-art-woo-order-one-click.php:338 377 #, php-format 378 msgid "The %s requires installed and activated plugins: " 379 msgstr "" 380 "Для работы плагина %s требуются установенные и активированные плагины: " 381 382 #: ../includes/class-art-woo-order-one-click.php:350 541 #: classes/Orders.php:59 542 #, fuzzy 543 msgid "Order One Click: " 544 msgstr "Заказ в один клик: " 545 546 #: classes/Orders.php:145 547 msgid "The order was created by using the One-click Order button" 548 msgstr "" 549 550 #: classes/Prepare/Prepare.php:142 551 #, fuzzy 552 msgid "N/A" 553 msgstr "Н/Д" 554 555 #: classes/Product/Meta.php:47 556 #, fuzzy 557 msgid "Disable Order One Click Button" 558 msgstr "Отключить кнопку Заказать" 559 560 #: classes/Product/Meta.php:49 561 #, fuzzy 562 msgid "" 563 "If enabled, then on this product the Order button will not be visible. " 564 "Product will return to its original condition." 565 msgstr "" 566 "Если включить, то на этом товаре кнопка Заказать будет не видна. Товар " 567 "вернется к исходному состоянию." 568 569 #: classes/Requirements.php:102 570 #, fuzzy, php-format 571 msgid "The <strong>%s</strong> requires installed and activated plugins: " 572 msgstr "" 573 "Для работы плагина <strong>%s</strong> требуются установленные и " 574 "активированные плагины: " 575 576 #: classes/Requirements.php:118 577 #, fuzzy 383 578 msgid " version " 384 579 msgstr " версия " 385 580 386 #: ../includes/class-art-woo-order-one-click.php:350 581 #: classes/Requirements.php:120 582 #, fuzzy 387 583 msgid " or higher" 388 584 msgstr " или выше" 389 585 390 #: ../includes/class-art-woo-order-one-click.php:358586 #: classes/Requirements.php:130 391 587 msgid " and " 392 msgstr " и " 393 394 #: ../includes/class-art-woo-order-one-click.php:406 395 #, php-format 396 msgid "%s plugin has been deactivated." 397 msgstr "Плагин %s деактивирован." 398 399 #: ../includes/class-art-woo-order-one-click.php:472 400 msgid "Your Name" 401 msgstr "Ваше имя" 402 403 #: ../includes/class-art-woo-order-one-click.php:473 404 msgid "Your Email" 405 msgstr "Ваш Email" 406 407 #: ../includes/class-art-woo-order-one-click.php:474 408 msgid "Your Phone" 409 msgstr "Ваш телефон" 410 411 #: ../includes/class-art-woo-order-one-click.php:475 412 msgid "Send" 413 msgstr "Отправить" 414 415 #: ../includes/class-art-woo-order-one-click.php:480 416 #, php-format 417 msgid "Name: %s" 418 msgstr "Имя: %s" 419 420 #: ../includes/class-art-woo-order-one-click.php:482 421 #, php-format 422 msgid "Email: %s" 423 msgstr "Email: %s" 424 425 #: ../includes/class-art-woo-order-one-click.php:484 426 #, php-format 427 msgid "Phone: %s" 428 msgstr "Телефон: %s" 429 430 #: ../includes/class-art-woo-order-one-click.php:486 431 #, php-format 432 msgid "This e-mail was sent from a contact form on %1$s (%2$s)" 433 msgstr "Это письмо было отправлено с формы обратной связи на %1$s (%2$s)" 434 435 #: ../includes/class-art-woo-order-one-click.php:495 436 #: ../includes/class-art-woo-order-one-click.php:509 437 #, php-format 438 msgid "Order from the site %1$s (%2$s)" 439 msgstr "Заказ с сайта %1$s (%2$s)" 440 441 #: ../includes/class-art-woo-order-one-click.php:532 442 msgid "Order One Click" 443 msgstr "Заказ в один клик" 444 445 #: ../includes/class-awooc-ajax.php:43 446 msgid "Oops ... Data sent from unknown address" 447 msgstr "Упс... Данные отправлены с неизвестного адреса" 448 449 #: ../includes/class-awooc-ajax.php:50 450 msgid "" 451 "Something is wrong with sending data. Unable to get product ID. Disable the " 452 "output in the popup window or contact the developers of the plugin" 453 msgstr "" 454 "Что-то не так с отправкой данных. Невозможно получить ID товара. Отключите " 455 "вывод данных во всплывающем окне или обратитесь к разработчикам плагина" 456 457 #: ../includes/class-awooc-ajax.php:190 458 #: ../includes/class-awooc-frontend.php:57 459 msgid "SKU: " 460 msgstr "Артикул: " 461 462 #: ../includes/class-awooc-ajax.php:250 463 #: ../includes/class-awooc-frontend.php:58 464 msgid "Attributes: " 465 msgstr "Атрибуты: " 466 467 #: ../includes/class-awooc-ajax.php:278 468 #: ../includes/class-awooc-frontend.php:56 469 msgid "Price: " 470 msgstr "Цена: " 471 472 #: ../includes/class-awooc-frontend.php:54 473 msgid "Quantity: " 474 msgstr "Количество: " 475 476 #: ../includes/class-awooc-frontend.php:55 477 msgid "Title: " 478 msgstr "Название: " 479 480 #: ../includes/class-awooc-frontend.php:59 481 msgid "Information about the selected product" 482 msgstr "Информация о выбранном товаре" 483 484 #: ../includes/class-awooc-frontend.php:60 485 msgid "Click to close" 486 msgstr "Ткнуть для закрытия" 487 488 #: ../includes/class-awooc-frontend.php:365 489 msgid "Read more" 490 msgstr "Читать..." 588 msgstr "" 589 590 #: classes/Requirements.php:154 591 #, fuzzy, php-format 592 msgid "<strong>%s</strong> plugin has been deactivated." 593 msgstr "<strong>%s</strong> плагин был деактивирован." 594 595 #: includes/create-cf7-field.php:94 596 #, fuzzy 597 msgid "AWOOC hide field" 598 msgstr "AWOOC скрытое поле" 599 600 #: includes/create-cf7-field.php:109 601 #, fuzzy, php-format 602 msgid "Generate a special hidden multi-line field. See %s." 603 msgstr "Генерируется специальное многострочное поле. Смотрите %s." 604 605 #: includes/create-cf7-field.php:112 606 #, fuzzy 607 msgid "https://wpruse.ru/my-plugins/order-one-click/" 608 msgstr "https://wpruse.ru/my-plugins/order-one-click/" 609 610 #: includes/create-cf7-field.php:113 611 #, fuzzy 612 msgid "the description for details" 613 msgstr "подробное описание" 614 615 #: includes/create-cf7-field.php:126 616 #, fuzzy 617 msgid "Name" 618 msgstr "Имя" 619 620 #: includes/create-cf7-field.php:154 621 #, fuzzy 622 msgid "Insert Tag" 623 msgstr "Вставить" 624 625 #: includes/create-cf7-field.php:166 626 #, fuzzy, php-format 627 msgid "" 628 "To use the value input through this field in a mail field, you need to " 629 "insert the corresponding mail-tag (%s) into the field on the Mail tab." 630 msgstr "" 631 "Чтобы использовать значение, введенное через это поле в письме, необходимо " 632 "вставить соответствующий почтовый тег (% s) в поле на вкладке Почта." 633 634 #: templates/email.php:413 635 #, fuzzy 636 msgid "A quick one-click order has arrived" 637 msgstr "Пришел заказ в один клик" 638 639 #: templates/quantity-input.php:40 640 #, fuzzy, php-format 641 msgid "%s quantity" 642 msgstr "%s количество" 643 644 #: templates/quantity-input.php:54 645 #, fuzzy 646 msgid "Product quantity" 647 msgstr "Количество товара" 491 648 492 649 #~ msgid "Do not show Buy button: catalog mode" -
art-woocommerce-order-one-click/trunk/readme.txt
r2523663 r3232179 3 3 Donate link: https://wpruse.ru/r/donat/ 4 4 Tags: woocommerce, mode catalog 5 Requires at least: 4.86 Tested up to: 5.67 Stable tag: 2.4.38 Requires PHP: 7. 35 Requires at least: 5.5 6 Tested up to: 6.7 7 Stable tag: 3.1.0 8 Requires PHP: 7.4 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 == Description == 13 13 Plugin for WooCommerce. It includes the catalog mode in the store (there are no prices and the Buy button) and can turn on the Buy/Order button in one click. WooCommerce and Contact Form 7 are required for proper operation. 14 15 = Attention! = 16 **Starting from version 3.0, the plugin has been completely rewritten to the new architecture. If you encounter performance problems after installing the plugin, switch back to version 2.4.3 and contact [support](https://wordpress.org/support/plugin/art-woocommerce-order-one-click/) or the [support chat](https://t.me/awooc).** 14 17 15 18 The plugin provides three modes of operation: … … 34 37 35 38 The plugin has implemented the function of creating orders when sending a letter. But to work correctly, you need to correctly configure the forms in the Contact Form 7 plugin. 39 40 After the first activation, starting from version 3.0, a form with the required fields is created in the Contact Form 7 plugin. The AWOC Hidden Field button is no longer relevant. Only in the plugin settings you need to select the desired form. 36 41 37 42 [Read more in the article](https://wpruse.ru/my-plugins/order-one-click/) … … 65 70 * For the best documentation in Russian by WordPress [Site wp-kama.ru](https://wp-kama.ru/) 66 71 67 = Bundled translations: =68 * Russian69 * English70 71 72 = Donate link: = 72 73 <a href="https://www.paypal.me/artabr" target="_blank">PayPal</a> … … 99 100 100 101 == Changelog == 102 103 = [3.1.0] - 2025-01-30 = 104 * Добавлено: вывод управления количеством во всплывающем окне 105 * Добавлено: вывод кнопки Быстрый заказ через подмену файлов теплейтов 106 * Добавлено: поддержка темы Woodmart 107 * Добавлено: кнопки +\- на поле количества в окне 108 * Добавлено: блокировка кнопки Отправить при отправке формы 109 * Добавлено: дополнительный фильтр `awooc_added_hidden_fields` для подстановки скрытых полей 110 * Добавлено: вывод названия заказа в списке заказов админки 111 * Добавлено: хук `awooc_create_order` при создании заказа, передает объект формы, объект заказа и данные из формы 112 * Добавлено: привязка заказа к залогиненому пользователю 113 * Добавлено: поддержка плагина Variation Swatches for WooCommerce by CartFlows 114 * Добавлено: поддержка плагина Polylang 115 * Добавлено: фильтр опций `awooc_select_elements_item` 116 * Добавлено: поддержка WP Rocket (принудительное подключение скриптов CF7) 117 * Добавлено: опция вывода кнопки на страницах каталога 118 * Добавлено: опция кастомного шаблона письма 119 * Изменено: удален спецшорткод `awooc-hidden-data`, добавлены отдельные скрытые поля 120 * Изменено: рефакторинг js - переписан на ванильный (по возможности) 121 * Изменено: обновление переводов 122 * Изменено: поле количество вынесено в отдельный файл, независимый от WC 123 * Изменено: отлажено поведение поля количество 124 * Изменено: рефакторинг основных классов обработки запросов 125 * Изменено: создание настроек без автозагрузки 126 * Изменено: удаление лишней настройки глобального подключения стилей, стили и скрипты включаются при подключении кнопки 127 * Изменено: весь код приведен к WPCS 128 * Исправлено: подключение переводов на хук init 129 * Исправлено: передача в аналитику верного id товара 130 * Исправлено: исправлено подключени скриптов-стилей в админке только на странице настроек 131 * Исправлено: вывод данных в кастомном темплейте письма и внешний вид 132 * Исправлено: в фильтре `awooc_order_address_arg` добавлен аргумент передачи данных с формы 133 134 [See changelog for all versions](https://github.com/artikus11/art-woocommerce-order-one-click/blob/dev/CHANGELOG.md). 135 136 = 2.4.4 = 137 * Рефакторинг и форматирование 101 138 102 139 = 2.4.3 =
Note: See TracChangeset
for help on using the changeset viewer.