Plugin Directory

Changeset 3232179


Ignore:
Timestamp:
01/30/2025 04:57:07 PM (14 months ago)
Author:
artabr
Message:

3.1.0 - Major update

Location:
art-woocommerce-order-one-click
Files:
147 added
12 edited

Legend:

Unmodified
Added
Removed
  • art-woocommerce-order-one-click/trunk/art-woo-order-one-click.php

    r2523673 r3232179  
    66 * Domain Path: /languages
    77 * 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.3
     8 * Version: 3.1.0
    99 * Author: Artem Abramovich
    1010 * Author URI: https://wpruse.ru/
     
    1212 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    1313 *
    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
    1619 *
    1720 * Copyright Artem Abramovich
     
    4144$plugin_data = get_file_data(
    4245    __FILE__,
    43     array(
     46    [
    4447        'ver'  => 'Version',
    4548        'name' => 'Plugin Name',
    46     )
     49    ]
    4750);
    4851
    49 define( 'AWOOC_PLUGIN_DIR', __DIR__ );
     52const AWOOC_PLUGIN_DIR = __DIR__;
    5053define( 'AWOOC_PLUGIN_URI', plugin_dir_url( __FILE__ ) );
    5154define( 'AWOOC_PLUGIN_FILE', plugin_basename( __FILE__ ) );
     
    5457define( 'AWOOC_PLUGIN_NAME', $plugin_data['name'] );
    5558
    56 require __DIR__ . '/includes/class-awooc.php';
     59require AWOOC_PLUGIN_DIR . '/vendor/autoload.php';
     60require_once AWOOC_PLUGIN_DIR . '/includes/create-cf7-field.php';
     61require_once AWOOC_PLUGIN_DIR . '/includes/helpers.php';
     62require_once AWOOC_PLUGIN_DIR . '/includes/template-functions.php';
    5763
    58 register_uninstall_hook( __FILE__, array( 'AWOOC', 'uninstall' ) );
     64register_uninstall_hook( __FILE__, [ Art\AWOOC\Uninstall::class, 'uninstall' ] );
     65register_activation_hook( __FILE__, [ Art\AWOOC\Admin\Create_Form::class, 'install_form' ] );
    5966
    60 if ( ! function_exists( 'awooc_order_one_click' ) ) {
     67if ( ! function_exists( 'awooc' ) ) {
    6168    /**
    6269     * The main function responsible for returning the AWOOC object.
     
    6471     * Use this function like you would a global variable, except without needing to declare the global.
    6572     *
    66      * Example: <?php awooc_order_one_click()->method_name(); ?>
     73     * Example: <?php awooc()->method_name(); ?>
    6774     *
    6875     * @return object AWOOC class object.
    6976     * @since 1.0.0
    7077     */
    71     function awooc_order_one_click() {
     78    function awooc(): object {
    7279
    73         return AWOOC::instance();
     80        return \Art\AWOOC\Main::instance();
    7481    }
    7582}
    7683
    77 $GLOBALS['awooc'] = awooc_order_one_click();
     84awooc();
  • 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 */
     7jQuery(function ($) {
     8  'use strict';
    69
    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');
    8154
    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)}})}}});
     1jQuery((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  
    2828function awooc_default_elements_item() {
    2929
    30     return array(
     30    return [
    3131        'title',
    3232        'image',
     
    3636        'qty',
    3737        'sum',
    38     );
    39 
     38    ];
    4039}
    4140
     
    6160 *
    6261 * @since 2.1.1
     62 * @since 3.1.0
    6363 */
    64 function awooc_html_comments() {
     64function awooc_html_comments(): void {
    6565
    6666    if ( apply_filters( 'awooc_html_comments', true ) ) {
     
    6868            '<!-- plugin version: %1$s; mode: %2$s -->',
    6969            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' ) ] )
    7171        );
    72 
    7372    }
    7473}
  • art-woocommerce-order-one-click/trunk/languages/art-woocommerce-order-one-click-ru_RU.po

    r2481845 r3232179  
    22msgstr ""
    33"Project-Id-Version: art-woocommerce-order-one-click\n"
    4 "POT-Creation-Date: 2021-02-25 00:31+0400\n"
    5 "PO-Revision-Date: 2021-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"
    66"Last-Translator: Абрамович Артем | artabr.ru <artikus.sol@gmail.com>\n"
    77"Language-Team: \n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1616"X-Poedit-SourceCharset: UTF-8\n"
    1717"X-Poedit-KeywordsList: __;esc_html__;_e;_ex:1,2c;esc_attr__;esc_attr_e;"
    1818"esc_attr_x:1,2c;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;"
    1919"_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
     29msgid "Your Name"
     30msgstr "Ваше имя"
     31
     32#: classes/Admin/Create_Form.php:45
     33msgid "Your Email"
     34msgstr "Ваш Email"
     35
     36#: classes/Admin/Create_Form.php:46
     37msgid "Your Phone"
     38msgstr "Ваш телефон"
     39
     40#: classes/Admin/Create_Form.php:47
     41msgid "Send"
     42msgstr "Отправить"
     43
     44#: classes/Admin/Create_Form.php:51
     45#, php-format
     46msgid "Name: %s"
     47msgstr "Имя: %s"
     48
     49#: classes/Admin/Create_Form.php:52
     50#, php-format
     51msgid "Email: %s"
     52msgstr "Email: %s"
     53
     54#: classes/Admin/Create_Form.php:53
     55#, php-format
     56msgid "Phone: %s"
     57msgstr "Телефон: %s"
     58
     59#: classes/Admin/Create_Form.php:55
     60#, php-format
     61msgid "This e-mail was sent from a contact form on %1$s (%2$s)"
     62msgstr "Это письмо было отправлено с формы обратной связи на %1$s (%2$s)"
     63
     64#: classes/Admin/Create_Form.php:87 classes/Admin/Create_Form.php:101
     65#, php-format
     66msgid "Order from the site %1$s (%2$s)"
     67msgstr "Заказ с сайта %1$s (%2$s)"
     68
     69#: classes/Admin/Create_Form.php:124 templates/email.php:412
     70msgid "Order One Click"
     71msgstr "Заказ в один клик"
     72
     73#: classes/Admin/Settings.php:35 classes/Orders.php:147
    7174msgid "One click order"
    7275msgstr "Заказ в один клик"
    7376
    74 #: ../includes/admin/class-awooc-admin-settings.php:82
     77#: classes/Admin/Settings.php:69
    7578msgid "Off"
    7679msgstr "Выключить"
    7780
    78 #: ../includes/admin/class-awooc-admin-settings.php:83
     81#: classes/Admin/Settings.php:70
    7982msgid "On"
    8083msgstr "Включить"
    8184
    82 #: ../includes/admin/class-awooc-admin-settings.php:382
     85#: classes/Admin/Settings.php:85
    8386msgid "General"
    8487msgstr "Основные"
    8588
    86 #: ../includes/admin/class-awooc-admin-settings.php:426
     89#: classes/Admin/Settings.php:129
    8790msgid "General settings"
    8891msgstr "Основные настройки"
    8992
    90 #: ../includes/admin/class-awooc-admin-settings.php:432
     93#: classes/Admin/Settings.php:135
    9194msgid "Operating mode"
    9295msgstr "Режим работы"
    9396
    94 #: ../includes/admin/class-awooc-admin-settings.php:433
     97#: classes/Admin/Settings.php:136
    9598msgid "Select the mode of operation and display the Buy button"
    9699msgstr "Выберите режим работы и показа кнопки Купить"
    97100
    98 #: ../includes/admin/class-awooc-admin-settings.php:443
     101#: classes/Admin/Settings.php:147
    99102msgid "Select form"
    100103msgstr "Выберите форму"
    101104
    102 #: ../includes/admin/class-awooc-admin-settings.php:444
     105#: classes/Admin/Settings.php:148
    103106msgid "Choose the desired form"
    104107msgstr "Выберите нужную форму"
    105108
    106 #: ../includes/admin/class-awooc-admin-settings.php:448
     109#: classes/Admin/Settings.php:152
    107110msgid "-- Select --"
    108111msgstr "-- Выбрать --"
    109112
    110 #: ../includes/admin/class-awooc-admin-settings.php:455
     113#: classes/Admin/Settings.php:160
    111114msgid "Button Label"
    112115msgstr "Надпись на кнопке"
    113116
    114 #: ../includes/admin/class-awooc-admin-settings.php:456
     117#: classes/Admin/Settings.php:161
    115118msgid "Specify the desired label on the button"
    116119msgstr "Укажите нужную надпись на кнопке"
    117120
    118 #: ../includes/admin/class-awooc-admin-settings.php:459
     121#: classes/Admin/Settings.php:164
    119122msgid "Buy in one click"
    120123msgstr "Купить в один клик"
    121124
    122 #: ../includes/admin/class-awooc-admin-settings.php:465
     125#: classes/Admin/Settings.php:171
    123126msgid "Special label"
    124127msgstr "Специальная надпись"
    125128
    126 #: ../includes/admin/class-awooc-admin-settings.php:467
     129#: classes/Admin/Settings.php:173
    127130msgid ""
    128131"Special field for the Order button. Allows you to change the label on the "
     
    132135"при включении режима Цены и Запасы."
    133136
    134 #: ../includes/admin/class-awooc-admin-settings.php:482
     137#: classes/Admin/Settings.php:184
     138msgid "Button on the catalog"
     139msgstr "Кнопка на  каталоге"
     140
     141#: classes/Admin/Settings.php:186
     142msgid ""
     143"Button output on catalog pages (store, categories, labels, attributes). It "
     144"is displayed only for simple products"
     145msgstr ""
     146"Вывод кнопки на страницах каталога (магазин, рубрики, метки, атрибуты). "
     147"Выводится только для простых товаров"
     148
     149#: classes/Admin/Settings.php:201
    135150msgid "Popup window"
    136151msgstr "Всплывающее окно"
    137152
    138 #: ../includes/admin/class-awooc-admin-settings.php:489
     153#: classes/Admin/Settings.php:208
    139154msgid "Turn off window elements"
    140155msgstr "Выключить элементы окна"
    141156
    142 #: ../includes/admin/class-awooc-admin-settings.php:490
     157#: classes/Admin/Settings.php:209
    143158msgid "Remove items that are NOT needed."
    144159msgstr "Уберите элементы, которые НЕ нужны."
    145160
    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
    163162msgid "Orders"
    164163msgstr "Заказы"
    165164
    166 #: ../includes/admin/class-awooc-admin-settings.php:529
     165#: classes/Admin/Settings.php:240
    167166msgid "Create orders"
    168167msgstr "Создание заказов"
    169168
    170 #: ../includes/admin/class-awooc-admin-settings.php:531
     169#: classes/Admin/Settings.php:242
    171170msgid ""
    172171"When this setting is enabled, orders will be created in the WooCommerce "
     
    176175"со статусом \"В ожидании оплаты\""
    177176
    178 #: ../includes/admin/class-awooc-admin-settings.php:540
     177#: classes/Admin/Settings.php:252
    179178msgid "Change subject"
    180179msgstr "Изменить заголовок"
    181180
    182 #: ../includes/admin/class-awooc-admin-settings.php:542
     181#: classes/Admin/Settings.php:254
    183182msgid ""
    184183"If you enable this setting, then the order number will be added to the "
     
    188187"в формате \"Тема письма №112233\""
    189188
    190 #: ../includes/admin/class-awooc-admin-settings.php:555
     189#: classes/Admin/Settings.php:263
     190msgid "Custom letter template"
     191msgstr "Произвольный шаблон письма"
     192
     193#: classes/Admin/Settings.php:265
     194msgid ""
     195"When enabled, it will not use the template specified in CF7, but an "
     196"arbitrary email template from the plugin"
     197msgstr ""
     198"При включении будет использоваться не указанный в CF7 шаблон, а произвольный "
     199"шаблон письма из плагина"
     200
     201#: classes/Admin/Settings.php:278
    191202msgid "Others"
    192203msgstr "Разное"
    193204
    194 #: ../includes/admin/class-awooc-admin-settings.php:562
     205#: classes/Admin/Settings.php:285
    195206msgid "Do not delete settings"
    196207msgstr "Не удалять настройки"
    197208
    198 #: ../includes/admin/class-awooc-admin-settings.php:564
     209#: classes/Admin/Settings.php:287
    199210msgid ""
    200211"If enabled, then the settings when you remove the plugin will NOT be deleted"
    201212msgstr "Если включено, то настройки при удалении плагина НЕ будут удалены"
    202213
    203 #: ../includes/admin/class-awooc-admin-settings.php:600
     214#: classes/Admin/Settings.php:325
    204215msgid "Useful links"
    205216msgstr "Социальные ссылки"
    206217
    207 #: ../includes/admin/class-awooc-admin-settings.php:609
     218#: classes/Admin/Settings.php:335
    208219msgid "Donate"
    209220msgstr "Поддержать"
    210221
    211 #: ../includes/admin/class-awooc-admin-settings.php:642
     222#: classes/Admin/Settings.php:368
    212223msgid "Catalog mode"
    213224msgstr "Режим каталога"
    214225
    215 #: ../includes/admin/class-awooc-admin-settings.php:643
     226#: classes/Admin/Settings.php:369
    216227msgid "Normal mode"
    217228msgstr "Штатный режим"
    218229
    219 #: ../includes/admin/class-awooc-admin-settings.php:644
     230#: classes/Admin/Settings.php:370
    220231msgid "Pre-order mode"
    221232msgstr "Режим предзаказа"
    222233
    223 #: ../includes/admin/class-awooc-admin-settings.php:645
     234#: classes/Admin/Settings.php:371
    224235msgid "Special mode"
    225236msgstr "Специальный режим"
    226237
    227 #: ../includes/admin/class-awooc-admin-settings.php:686
     238#: classes/Admin/Settings.php:412
    228239msgid "Title"
    229240msgstr "Наименование"
    230241
    231 #: ../includes/admin/class-awooc-admin-settings.php:687
     242#: classes/Admin/Settings.php:413
    232243msgid "Image"
    233244msgstr "Изображение"
    234245
    235 #: ../includes/admin/class-awooc-admin-settings.php:688
     246#: classes/Admin/Settings.php:414
    236247msgid "Price"
    237248msgstr "Цена"
    238249
    239 #: ../includes/admin/class-awooc-admin-settings.php:689
     250#: classes/Admin/Settings.php:415
    240251msgid "SKU"
    241252msgstr "Артикул"
    242253
    243 #: ../includes/admin/class-awooc-admin-settings.php:690
     254#: classes/Admin/Settings.php:416
    244255msgid "Attributes"
    245256msgstr "Атрибуты"
    246257
    247 #: ../includes/admin/class-awooc-admin-settings.php:691
     258#: classes/Admin/Settings.php:417 templates/quantity-input.php:41
    248259msgid "Quantity"
    249260msgstr "Количество"
    250261
    251 #: ../includes/admin/class-awooc-admin-settings.php:692
     262#: classes/Admin/Settings.php:418
    252263msgid "Amount"
    253264msgstr "Итого"
    254265
    255 #: ../includes/admin/class-awooc-admin-settings.php:708
     266#: classes/Admin/Settings.php:435
    256267msgid ""
    257268"<strong>Warning! The functionality is under development. </strong> For the "
     
    263274"c именами:"
    264275
    265 #: ../includes/admin/class-awooc-admin-settings.php:709
     276#: classes/Admin/Settings.php:440
    266277msgid "field Name - <code>awooc-text</code>;"
    267278msgstr "поле Имя  - <code>awooc-text</code>;"
    268279
    269 #: ../includes/admin/class-awooc-admin-settings.php:710
     280#: classes/Admin/Settings.php:441
    270281msgid "field Email - <code>awooc-email</code>;"
    271282msgstr "поле Емайл - <code>awooc-email</code>;"
    272283
    273 #: ../includes/admin/class-awooc-admin-settings.php:711
     284#: classes/Admin/Settings.php:442
    274285msgid "field Phone - <code>awooc-tel</code>;"
    275286msgstr "поле Телефон - <code>awooc-tel</code>;"
    276287
    277 #: ../includes/admin/class-awooc-admin-settings.php:742
     288#: classes/Admin/Settings.php:477
    278289#, php-format
    279290msgid ""
     
    284295"большое спасибо!"
    285296
    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
    288298msgid "Art WooCommerce Order One Click"
    289299msgstr "Art WooCommerce Order One Click"
    290300
    291 #: ../includes/admin/class-awooc-admin-settings.php:745
     301#: classes/Admin/Settings.php:481
    292302msgid "five star"
    293303msgstr "пять звезд"
    294304
    295 #: ../includes/admin/class-awooc-admin-settings.php:745
     305#: classes/Admin/Settings.php:483
    296306msgid "Thanks :)"
    297307msgstr "Пожалуйста, не загружайте эту страницу напрямую. Спасибо!"
    298308
    299 #: ../includes/admin/class-awooc-admin-settings.php:755
     309#: classes/Admin/Settings.php:494
    300310msgid "Thank you for using the plugin!"
    301311msgstr "Спасибо, что используете плагин!"
    302312
    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
    312314msgid "Yandex Money"
    313315msgstr "Яндекс Деньги"
    314316
    315 #: ../includes/admin/class-awooc-admin-settings.php:785
     317#: classes/Admin/Settings.php:519
    316318msgid "Make a donation through the Yandex Money system. You can use bank cards"
    317319msgstr "Поддержать через Яндекс Деньги. Можно использовать банковские карты"
    318320
    319 #: ../includes/admin/class-awooc-admin-settings.php:789
     321#: classes/Admin/Settings.php:523
    320322msgid "WPRUSe"
    321323msgstr "WPRUSe"
    322324
    323 #: ../includes/admin/class-awooc-admin-settings.php:790
     325#: classes/Admin/Settings.php:524
    324326msgid "WPRUSe project site"
    325327msgstr "Описание проекта"
    326328
    327 #: ../includes/admin/class-awooc-admin-settings.php:797
     329#: classes/Admin/Settings.php:531
    328330#, php-format
    329331msgid "You can make a donation to make the plugin %1$s even better!"
     
    332334"%1$s еще лучше!"
    333335
    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
     337msgid ""
     338"Detailed step by step instructions for setting up the plugin (in Russian)."
     339msgstr "Подробная инструкция по настройке плагина (на русском)."
     340
     341#: classes/Admin/Settings.php:564
     342msgid "Read more..."
     343msgstr "Подробнее..."
     344
     345#: classes/Admin/Settings.php:568
    340346msgid ""
    341347"Plugin on GitHub, you can write there suggestions, wishes or participate in "
     
    345351"разработке"
    346352
    347 #: ../includes/admin/class-awooc-admin-settings.php:849
     353#: classes/Admin/Settings.php:569
     354msgid "Plugin on GitHub"
     355msgstr "Смотреть на GitHub"
     356
     357#: classes/Ajax.php:87
     358msgid ""
     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"
     361msgstr ""
     362"Что-то не так с отправкой данных. Невозможно получить ID товара. Отключите "
     363"вывод данных во всплывающем окне или обратитесь к разработчикам плагина"
     364
     365#: classes/Email.php:129
     366msgid "IP"
     367msgstr "IP"
     368
     369#: classes/Email.php:133
     370msgid "Date"
     371msgstr "Дата"
     372
     373#: classes/Email.php:137
     374msgid "Domain"
     375msgstr "Домен"
     376
     377#: classes/Enqueue.php:101
    348378msgid ""
    349379"On the pages of the categories and the store itself, the Add to Cart buttons "
     
    355385"появляется кнопка «Заказать»."
    356386
    357 #: ../includes/admin/class-awooc-admin-settings.php:853
     387#: classes/Enqueue.php:105
    358388msgid ""
    359389"The button \"Add to cart\" works in the normal mode, that is, goods can be "
     
    363393"добавить в корзину и одновременно заказать в один клик"
    364394
    365 #: ../includes/admin/class-awooc-admin-settings.php:857
     395#: classes/Enqueue.php:109
    366396msgid ""
    367397"The Order button will appear automatically if: Price not available;  stock "
     
    374404"заказы разрешены"
    375405
    376 #: ../includes/admin/class-awooc-admin-settings.php:861
     406#: classes/Enqueue.php:113
    377407msgid ""
    378408"When turned on, it works the same way as normal mode. But if the goods have "
     
    382412"цены или товара нет в наличии, то появится только кнопка Заказать."
    383413
    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
     416msgid "Quantity: "
     417msgstr "Количество: "
     418
     419#: classes/Enqueue.php:148 classes/Prepare/Mail.php:31
     420msgid "Title: "
     421msgstr "Наименование: "
     422
     423#: classes/Enqueue.php:149 classes/Prepare/Mail.php:48
     424#: classes/Prepare/Popup.php:45
     425msgid "Price: "
     426msgstr "Цена: "
     427
     428#: classes/Enqueue.php:150 classes/Prepare/Mail.php:58
     429#: classes/Prepare/Popup.php:66
     430msgid "SKU: "
     431msgstr "Артикул: "
     432
     433#: classes/Enqueue.php:151 classes/Prepare/Mail.php:88
     434#: classes/Prepare/Popup.php:181
     435msgid "Amount: "
     436msgstr "Итого: "
     437
     438#: classes/Enqueue.php:152 classes/Prepare/Mail.php:68
     439#: classes/Prepare/Popup.php:92
     440msgid "Attributes: "
     441msgstr "Атрибуты: "
     442
     443#: classes/Enqueue.php:153 templates/email.php:448
     444msgid "Information about the selected product"
     445msgstr "Информация о выбранном товаре"
     446
     447#: classes/Enqueue.php:154 classes/Prepare/Mail.php:104
     448msgid "Link to the product: "
     449msgstr "Ссылка на товар: "
     450
     451#: classes/Enqueue.php:155
     452msgid "Click to close"
     453msgstr "Ткнуть для закрытия"
     454
     455#: classes/Front.php:115
     456msgid "Read more"
     457msgstr "Читать"
     458
     459#: classes/Main.php:138
     460msgid "Settings"
     461msgstr "Настройки"
     462
     463#: classes/Orders.php:59
     464msgid "Order One Click: "
     465msgstr "Заказ в один клик: "
     466
     467#: classes/Orders.php:145
     468msgid "The order was created by using the One-click Order button"
     469msgstr "Заказ был создан с помощью кнопки \"Заказ в один клик\""
     470
     471#: classes/Prepare/Mail.php:123
     472msgid "Category: "
     473msgid_plural "Categories: "
     474msgstr[0] "Категория: "
     475msgstr[1] "Категории: "
     476msgstr[2] "Категории: "
     477
     478#: classes/Prepare/Prepare.php:142
    439479msgid "N/A"
    440480msgstr "Нет"
    441481
    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
     483msgid "Disable Order One Click Button"
     484msgstr "Отключить кнопку Заказать"
     485
     486#: classes/Product/Meta.php:49
     487msgid ""
     488"If enabled, then on this product the Order button will not be visible. "
     489"Product will return to its original condition."
     490msgstr ""
     491"Если включить, то на этом товаре кнопка Заказать будет не видна. Товар "
     492"вернется к исходному состоянию."
     493
     494#: classes/Requirements.php:102
     495#, php-format
     496msgid "The <strong>%s</strong> requires installed and activated plugins: "
     497msgstr ""
     498"Для работы плагина <strong>%s</strong> требуются установленные и "
     499"активированные плагины: "
     500
     501#: classes/Requirements.php:118
    509502msgid " version "
    510503msgstr " версия "
    511504
    512 #: ../includes/class-awooc.php:432
     505#: classes/Requirements.php:120
    513506msgid " or higher"
    514507msgstr " или выше"
    515508
    516 #: ../includes/class-awooc.php:440
     509#: classes/Requirements.php:130
    517510msgid " and "
    518511msgstr " и "
    519512
    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
     515msgid "<strong>%s</strong> plugin has been deactivated."
     516msgstr "<strong>%s</strong> плагин был деактивирован."
     517
     518#: includes/create-cf7-field.php:94
     519msgid "AWOOC hide field"
     520msgstr "AWOOC скрытое поле"
     521
     522#: includes/create-cf7-field.php:109
     523#, php-format
     524msgid "Generate a special hidden multi-line field. See %s."
     525msgstr "Генерируется специальное многострочное поле. Смотрите %s."
     526
     527#: includes/create-cf7-field.php:112
     528msgid "https://wpruse.ru/my-plugins/order-one-click/"
     529msgstr "https://wpruse.ru/my-plugins/order-one-click/"
     530
     531#: includes/create-cf7-field.php:113
     532msgid "the description for details"
     533msgstr "подробное описание"
     534
     535#: includes/create-cf7-field.php:126
     536msgid "Name"
     537msgstr "Имя"
     538
     539#: includes/create-cf7-field.php:154
     540msgid "Insert Tag"
     541msgstr "Вставить"
     542
     543#: includes/create-cf7-field.php:166
     544#, php-format
     545msgid ""
     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."
     548msgstr ""
     549"Чтобы использовать значение, введенное через это поле в письме, необходимо "
     550"вставить соответствующий почтовый тег (%s) в поле на вкладке Почта."
     551
     552#: templates/email.php:413
     553msgid "A quick one-click order has arrived"
     554msgstr "Пришел заказ в один клик"
     555
     556#: templates/quantity-input.php:40
     557#, php-format
     558msgid "%s quantity"
     559msgstr "%s количество"
     560
     561#: templates/quantity-input.php:54
     562msgid "Product quantity"
     563msgstr "Количество товара"
     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"
    524623
    525624#~ 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
    12msgid ""
    23msgstr ""
    34"Project-Id-Version: art-woocommerce-order-one-click\n"
    4 "POT-Creation-Date: 2019-08-25 14:01+0400\n"
     5"POT-Creation-Date: 2025-01-30 01:23+0400\n"
    56"PO-Revision-Date: 2019-08-25 14:04+0400\n"
    67"Last-Translator: Абрамович Артем | artabr.ru <artikus.sol@gmail.com>\n"
     
    1011"Content-Type: text/plain; charset=UTF-8\n"
    1112"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"
    1617"X-Poedit-SourceCharset: UTF-8\n"
    1718"X-Poedit-KeywordsList: __;esc_html__;_e;_ex:1,2c;esc_attr__;esc_attr_e;"
    1819"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
     30msgid "Your Name"
     31msgstr "Ваше имя"
     32
     33#: classes/Admin/Create_Form.php:45
     34#, fuzzy
     35msgid "Your Email"
     36msgstr "Ваш Email"
     37
     38#: classes/Admin/Create_Form.php:46
     39#, fuzzy
     40msgid "Your Phone"
     41msgstr "Ваш телефон"
     42
     43#: classes/Admin/Create_Form.php:47
     44#, fuzzy
     45msgid "Send"
     46msgstr "Отправить"
     47
     48#: classes/Admin/Create_Form.php:51
     49#, fuzzy, php-format
     50msgid "Name: %s"
     51msgstr "Имя: %s"
     52
     53#: classes/Admin/Create_Form.php:52
     54#, fuzzy, php-format
     55msgid "Email: %s"
     56msgstr "Email: %s"
     57
     58#: classes/Admin/Create_Form.php:53
     59#, fuzzy, php-format
     60msgid "Phone: %s"
     61msgstr "Телефон: %s"
     62
     63#: classes/Admin/Create_Form.php:55
     64#, fuzzy, php-format
     65msgid "This e-mail was sent from a contact form on %1$s (%2$s)"
     66msgstr "Это письмо было отправлено с формы обратной связи на %1$s (%2$s)"
     67
     68#: classes/Admin/Create_Form.php:87 classes/Admin/Create_Form.php:101
     69#, fuzzy, php-format
     70msgid "Order from the site %1$s (%2$s)"
     71msgstr "Заказ с сайта %1$s (%2$s)"
     72
     73#: classes/Admin/Create_Form.php:124 templates/email.php:412
     74#, fuzzy
     75msgid "Order One Click"
     76msgstr "Заказ в один клик"
     77
     78#: classes/Admin/Settings.php:35 classes/Orders.php:147
     79#, fuzzy
    7080msgid "One click order"
    7181msgstr "Заказ в один клик"
    7282
    73 #: ../includes/admin/class-awooc-admin-settings.php:71
     83#: classes/Admin/Settings.php:69
     84#, fuzzy
    7485msgid "Off"
    75 msgstr "Выключить"
    76 
    77 #: ../includes/admin/class-awooc-admin-settings.php:72
     86msgstr "Выкл"
     87
     88#: classes/Admin/Settings.php:70
    7889msgid "On"
    79 msgstr "Включить"
    80 
    81 #: ../includes/admin/class-awooc-admin-settings.php:365
     90msgstr ""
     91
     92#: classes/Admin/Settings.php:85
     93#, fuzzy
    8294msgid "General"
    8395msgstr "Основные"
    8496
    85 #: ../includes/admin/class-awooc-admin-settings.php:402
     97#: classes/Admin/Settings.php:129
     98#, fuzzy
    8699msgid "General settings"
    87 msgstr "Общие настройки"
    88 
    89 #: ../includes/admin/class-awooc-admin-settings.php:408
     100msgstr "Основные настройки"
     101
     102#: classes/Admin/Settings.php:135
     103#, fuzzy
    90104msgid "Operating mode"
    91105msgstr "Режим работы"
    92106
    93 #: ../includes/admin/class-awooc-admin-settings.php:409
     107#: classes/Admin/Settings.php:136
     108#, fuzzy
    94109msgid "Select the mode of operation and display the Buy button"
    95 msgstr "Выберите режим работы и показа кнопки Купить"
    96 
    97 #: ../includes/admin/class-awooc-admin-settings.php:419
     110msgstr "Выберите режим работы"
     111
     112#: classes/Admin/Settings.php:147
     113#, fuzzy
    98114msgid "Select form"
    99115msgstr "Выберите форму"
    100116
    101 #: ../includes/admin/class-awooc-admin-settings.php:420
     117#: classes/Admin/Settings.php:148
     118#, fuzzy
    102119msgid "Choose the desired form"
    103120msgstr "Выберите нужную форму"
    104121
    105 #: ../includes/admin/class-awooc-admin-settings.php:424
     122#: classes/Admin/Settings.php:152
     123#, fuzzy
    106124msgid "-- Select --"
    107125msgstr "-- Выбрать --"
    108126
    109 #: ../includes/admin/class-awooc-admin-settings.php:431
     127#: classes/Admin/Settings.php:160
     128#, fuzzy
    110129msgid "Button Label"
    111 msgstr "Надпись на кнопке"
    112 
    113 #: ../includes/admin/class-awooc-admin-settings.php:432
     130msgstr "Название кнопки"
     131
     132#: classes/Admin/Settings.php:161
     133#, fuzzy
    114134msgid "Specify the desired label on the button"
    115135msgstr "Укажите нужную надпись на кнопке"
    116136
    117 #: ../includes/admin/class-awooc-admin-settings.php:435
     137#: classes/Admin/Settings.php:164
     138#, fuzzy
    118139msgid "Buy in one click"
    119140msgstr "Купить в один клик"
    120141
    121 #: ../includes/admin/class-awooc-admin-settings.php:441
     142#: classes/Admin/Settings.php:171
     143#, fuzzy
    122144msgid "Special label"
    123145msgstr "Специальная надпись"
    124146
    125 #: ../includes/admin/class-awooc-admin-settings.php:443
     147#: classes/Admin/Settings.php:173
     148#, fuzzy
    126149msgid ""
    127150"Special field for the Order button. Allows you to change the label on the "
     
    131154"при включении режима Цены и Запасы."
    132155
    133 #: ../includes/admin/class-awooc-admin-settings.php:458
     156#: classes/Admin/Settings.php:184
     157#, fuzzy
     158msgid "Button on the catalog"
     159msgstr "Кнопка на  каталоге"
     160
     161#: classes/Admin/Settings.php:186
     162msgid ""
     163"Button output on catalog pages (store, categories, labels, attributes). It "
     164"is displayed only for simple products"
     165msgstr ""
     166
     167#: classes/Admin/Settings.php:201
     168#, fuzzy
    134169msgid "Popup window"
    135170msgstr "Всплывающее окно"
    136171
    137 #: ../includes/admin/class-awooc-admin-settings.php:465
     172#: classes/Admin/Settings.php:208
     173#, fuzzy
    138174msgid "Turn off window elements"
    139175msgstr "Выключить элементы окна"
    140176
    141 #: ../includes/admin/class-awooc-admin-settings.php:466
     177#: classes/Admin/Settings.php:209
     178#, fuzzy
    142179msgid "Remove items that are NOT needed."
    143 msgstr "Уберите элементы, которые НЕ нужны"
    144 
    145 #: ../includes/admin/class-awooc-admin-settings.php:482
     180msgstr "Уберите элементы, которые НЕ нужны."
     181
     182#: classes/Admin/Settings.php:225
     183#, fuzzy
    146184msgid "Orders"
    147185msgstr "Заказы"
    148186
    149 #: ../includes/admin/class-awooc-admin-settings.php:496
     187#: classes/Admin/Settings.php:240
     188#, fuzzy
    150189msgid "Create orders"
    151190msgstr "Создание заказов"
    152191
    153 #: ../includes/admin/class-awooc-admin-settings.php:498
     192#: classes/Admin/Settings.php:242
     193#, fuzzy
    154194msgid ""
    155195"When this setting is enabled, orders will be created in the WooCommerce "
     
    159199"со статусом \"В ожидании оплаты\""
    160200
    161 #: ../includes/admin/class-awooc-admin-settings.php:507
     201#: classes/Admin/Settings.php:252
     202#, fuzzy
    162203msgid "Change subject"
    163204msgstr "Изменить заголовок"
    164205
    165 #: ../includes/admin/class-awooc-admin-settings.php:509
     206#: classes/Admin/Settings.php:254
     207#, fuzzy
    166208msgid ""
    167209"If you enable this setting, then the order number will be added to the "
     
    171213"в формате \"Тема письма №112233\""
    172214
    173 #: ../includes/admin/class-awooc-admin-settings.php:522
     215#: classes/Admin/Settings.php:263
     216#, fuzzy
     217msgid "Custom letter template"
     218msgstr "Произвольный шаблон письма"
     219
     220#: classes/Admin/Settings.php:265
     221#, fuzzy
     222msgid ""
     223"When enabled, it will not use the template specified in CF7, but an "
     224"arbitrary email template from the plugin"
     225msgstr ""
     226"При включении будет использоваться не указанный в CF7 шаблон, а произвольный "
     227"шаблон письма из плагина"
     228
     229#: classes/Admin/Settings.php:278
     230#, fuzzy
    174231msgid "Others"
    175232msgstr "Разное"
    176233
    177 #: ../includes/admin/class-awooc-admin-settings.php:529
     234#: classes/Admin/Settings.php:285
     235#, fuzzy
    178236msgid "Do not delete settings"
    179 msgstr "Не удалять настройки "
    180 
    181 #: ../includes/admin/class-awooc-admin-settings.php:531
     237msgstr "Не удалять настройки"
     238
     239#: classes/Admin/Settings.php:287
     240#, fuzzy
    182241msgid ""
    183242"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
     243msgstr "Если включено, то настройки при удалении плагина НЕ будут удалены"
     244
     245#: classes/Admin/Settings.php:325
     246#, fuzzy
    187247msgid "Useful links"
    188248msgstr "Социальные ссылки"
    189249
    190 #: ../includes/admin/class-awooc-admin-settings.php:576
     250#: classes/Admin/Settings.php:335
     251#, fuzzy
    191252msgid "Donate"
    192253msgstr "Поддержать"
    193254
    194 #: ../includes/admin/class-awooc-admin-settings.php:607
     255#: classes/Admin/Settings.php:368
     256#, fuzzy
    195257msgid "Catalog mode"
    196258msgstr "Режим каталога"
    197259
    198 #: ../includes/admin/class-awooc-admin-settings.php:608
     260#: classes/Admin/Settings.php:369
     261#, fuzzy
    199262msgid "Normal mode"
    200263msgstr "Штатный режим"
    201264
    202 #: ../includes/admin/class-awooc-admin-settings.php:609
     265#: classes/Admin/Settings.php:370
     266#, fuzzy
    203267msgid "Pre-order mode"
    204268msgstr "Режим предзаказа"
    205269
    206 #: ../includes/admin/class-awooc-admin-settings.php:610
     270#: classes/Admin/Settings.php:371
     271#, fuzzy
    207272msgid "Special mode"
    208273msgstr "Специальный режим"
    209274
    210 #: ../includes/admin/class-awooc-admin-settings.php:646
     275#: classes/Admin/Settings.php:412
     276#, fuzzy
    211277msgid "Title"
    212 msgstr "Название"
    213 
    214 #: ../includes/admin/class-awooc-admin-settings.php:647
     278msgstr "Заголовок:"
     279
     280#: classes/Admin/Settings.php:413
     281#, fuzzy
    215282msgid "Image"
    216 msgstr "Изображения"
    217 
    218 #: ../includes/admin/class-awooc-admin-settings.php:648
     283msgstr "Изображение"
     284
     285#: classes/Admin/Settings.php:414
     286#, fuzzy
    219287msgid "Price"
    220288msgstr "Цена"
    221289
    222 #: ../includes/admin/class-awooc-admin-settings.php:649
     290#: classes/Admin/Settings.php:415
     291#, fuzzy
    223292msgid "SKU"
    224293msgstr "Артикул"
    225294
    226 #: ../includes/admin/class-awooc-admin-settings.php:650
     295#: classes/Admin/Settings.php:416
     296#, fuzzy
    227297msgid "Attributes"
    228298msgstr "Атрибуты"
    229299
    230 #: ../includes/admin/class-awooc-admin-settings.php:651
     300#: classes/Admin/Settings.php:417 templates/quantity-input.php:41
     301#, fuzzy
    231302msgid "Quantity"
    232303msgstr "Количество"
    233304
    234 #: ../includes/admin/class-awooc-admin-settings.php:667
     305#: classes/Admin/Settings.php:418
     306#, fuzzy
     307msgid "Amount"
     308msgstr "Сумма"
     309
     310#: classes/Admin/Settings.php:435
     311#, fuzzy
    235312msgid ""
    236313"<strong>Warning! The functionality is under development. </strong> For the "
     
    242319"c именами:"
    243320
    244 #: ../includes/admin/class-awooc-admin-settings.php:668
     321#: classes/Admin/Settings.php:440
     322#, fuzzy
    245323msgid "field Name - <code>awooc-text</code>;"
    246324msgstr "поле Имя  - <code>awooc-text</code>;"
    247325
    248 #: ../includes/admin/class-awooc-admin-settings.php:669
     326#: classes/Admin/Settings.php:441
     327#, fuzzy
    249328msgid "field Email - <code>awooc-email</code>;"
    250329msgstr "поле Емайл - <code>awooc-email</code>;"
    251330
    252 #: ../includes/admin/class-awooc-admin-settings.php:670
     331#: classes/Admin/Settings.php:442
     332#, fuzzy
    253333msgid "field Phone - <code>awooc-tel</code>;"
    254334msgstr "поле Телефон - <code>awooc-tel</code>;"
    255335
    256 #: ../includes/admin/class-awooc-admin-settings.php:702
    257 #, php-format
     336#: classes/Admin/Settings.php:477
     337#, fuzzy, php-format
    258338msgid ""
    259339"If you like the plugin %1$s please leave us a %2$s rating. A huge thanks in "
     
    263343"большое спасибо!"
    264344
    265 #: ../includes/admin/class-awooc-admin-settings.php:703
    266 #: ../includes/admin/class-awooc-admin-settings.php:757
     345#: classes/Admin/Settings.php:478 classes/Admin/Settings.php:532
     346#, fuzzy
    267347msgid "Art WooCommerce Order One Click"
    268348msgstr "Art WooCommerce Order One Click"
    269349
    270 #: ../includes/admin/class-awooc-admin-settings.php:705
     350#: classes/Admin/Settings.php:481
     351#, fuzzy
    271352msgid "five star"
    272353msgstr "пять звезд"
    273354
    274 #: ../includes/admin/class-awooc-admin-settings.php:705
     355#: classes/Admin/Settings.php:483
     356#, fuzzy
    275357msgid "Thanks :)"
    276 msgstr "Спасибо!"
    277 
    278 #: ../includes/admin/class-awooc-admin-settings.php:715
     358msgstr "Пожалуйста, не загружайте эту страницу напрямую. Спасибо!"
     359
     360#: classes/Admin/Settings.php:494
     361#, fuzzy
    279362msgid "Thank you for using the plugin!"
    280363msgstr "Спасибо, что используете плагин!"
    281364
    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
    291367msgid "Yandex Money"
    292368msgstr "Яндекс Деньги"
    293369
    294 #: ../includes/admin/class-awooc-admin-settings.php:745
     370#: classes/Admin/Settings.php:519
     371#, fuzzy
    295372msgid "Make a donation through the Yandex Money system. You can use bank cards"
    296373msgstr "Поддержать через Яндекс Деньги. Можно использовать банковские карты"
    297374
    298 #: ../includes/admin/class-awooc-admin-settings.php:749
     375#: classes/Admin/Settings.php:523
     376#, fuzzy
    299377msgid "WPRUSe"
    300378msgstr "WPRUSe"
    301379
    302 #: ../includes/admin/class-awooc-admin-settings.php:750
     380#: classes/Admin/Settings.php:524
     381#, fuzzy
    303382msgid "WPRUSe project site"
    304383msgstr "Описание проекта"
    305384
    306 #: ../includes/admin/class-awooc-admin-settings.php:757
    307 #, php-format
     385#: classes/Admin/Settings.php:531
     386#, fuzzy, php-format
    308387msgid "You can make a donation to make the plugin %1$s even better!"
    309388msgstr ""
     
    311390"%1$s еще лучше!"
    312391
    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
     394msgid ""
     395"Detailed step by step instructions for setting up the plugin (in Russian)."
     396msgstr "Подробная инструкция по настройке плагина (на русском)."
     397
     398#: classes/Admin/Settings.php:564
     399#, fuzzy
     400msgid "Read more..."
     401msgstr "Подробнее..."
     402
     403#: classes/Admin/Settings.php:568
     404#, fuzzy
    319405msgid ""
    320406"Plugin on GitHub, you can write there suggestions, wishes or participate in "
     
    322408msgstr ""
    323409"Плагин на GitHub. Можно оставить пожелания, предложения или поучаствовать в "
    324 "разработке."
    325 
    326 #: ../includes/admin/class-awooc-admin-settings.php:808
     410"разработке"
     411
     412#: classes/Admin/Settings.php:569
     413msgid "Plugin on GitHub"
     414msgstr ""
     415
     416#: classes/Ajax.php:87
     417#, fuzzy
     418msgid ""
     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"
     421msgstr ""
     422"Что-то не так с отправкой данных. Невозможно получить ID товара. Отключите "
     423"вывод данных во всплывающем окне или обратитесь к разработчикам плагина"
     424
     425#: classes/Email.php:129
     426#, fuzzy
     427msgid "IP"
     428msgstr "IP"
     429
     430#: classes/Email.php:133
     431#, fuzzy
     432msgid "Date"
     433msgstr "Дата"
     434
     435#: classes/Email.php:137
     436#, fuzzy
     437msgid "Domain"
     438msgstr "Домен"
     439
     440#: classes/Enqueue.php:101
     441#, fuzzy
    327442msgid ""
    328443"On the pages of the categories and the store itself, the Add to Cart buttons "
     
    334449"появляется кнопка «Заказать»."
    335450
    336 #: ../includes/admin/class-awooc-admin-settings.php:812
     451#: classes/Enqueue.php:105
     452#, fuzzy
    337453msgid ""
    338454"The button \"Add to cart\" works in the normal mode, that is, goods can be "
     
    342458"добавить в корзину и одновременно заказать в один клик"
    343459
    344 #: ../includes/admin/class-awooc-admin-settings.php:816
     460#: classes/Enqueue.php:109
     461#, fuzzy
    345462msgid ""
    346463"The Order button will appear automatically if: Price not available;  stock "
     
    353470"заказы разрешены"
    354471
    355 #: ../includes/admin/class-awooc-admin-settings.php:820
     472#: classes/Enqueue.php:113
     473#, fuzzy
    356474msgid ""
    357475"When turned on, it works the same way as normal mode. But if the goods have "
     
    361479"цены или товара нет в наличии, то появится только кнопка Заказать."
    362480
    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
     484msgid "Quantity: "
     485msgstr "Количество: "
     486
     487#: classes/Enqueue.php:148 classes/Prepare/Mail.php:31
     488#, fuzzy
     489msgid "Title: "
     490msgstr "Заголовок:"
     491
     492#: classes/Enqueue.php:149 classes/Prepare/Mail.php:48
     493#: classes/Prepare/Popup.php:45
     494#, fuzzy
     495msgid "Price: "
     496msgstr "Цена: "
     497
     498#: classes/Enqueue.php:150 classes/Prepare/Mail.php:58
     499#: classes/Prepare/Popup.php:66
     500#, fuzzy
     501msgid "SKU: "
     502msgstr "Артикул: "
     503
     504#: classes/Enqueue.php:151 classes/Prepare/Mail.php:88
     505#: classes/Prepare/Popup.php:181
     506#, fuzzy
     507msgid "Amount: "
     508msgstr "Итого: "
     509
     510#: classes/Enqueue.php:152 classes/Prepare/Mail.php:68
     511#: classes/Prepare/Popup.php:92
     512#, fuzzy
     513msgid "Attributes: "
     514msgstr "Атрибуты: "
     515
     516#: classes/Enqueue.php:153 templates/email.php:448
     517#, fuzzy
     518msgid "Information about the selected product"
     519msgstr "Информация о выбранном товаре"
     520
     521#: classes/Enqueue.php:154 classes/Prepare/Mail.php:104
     522#, fuzzy
     523msgid "Link to the product: "
     524msgstr "Ссылка на товар: "
     525
     526#: classes/Enqueue.php:155
     527#, fuzzy
     528msgid "Click to close"
     529msgstr "Ткнуть для закрытия"
     530
     531#: classes/Front.php:115
     532#, fuzzy
     533msgid "Read more"
     534msgstr "Читать"
     535
     536#: classes/Main.php:138
     537#, fuzzy
    364538msgid "Settings"
    365539msgstr "Настройки"
    366540
    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
     543msgid "Order One Click: "
     544msgstr "Заказ в один клик: "
     545
     546#: classes/Orders.php:145
     547msgid "The order was created by using the One-click Order button"
     548msgstr ""
     549
     550#: classes/Prepare/Prepare.php:142
     551#, fuzzy
     552msgid "N/A"
     553msgstr "Н/Д"
     554
     555#: classes/Product/Meta.php:47
     556#, fuzzy
     557msgid "Disable Order One Click Button"
     558msgstr "Отключить кнопку Заказать"
     559
     560#: classes/Product/Meta.php:49
     561#, fuzzy
     562msgid ""
     563"If enabled, then on this product the Order button will not be visible. "
     564"Product will return to its original condition."
     565msgstr ""
     566"Если включить, то на этом товаре кнопка Заказать будет не видна. Товар "
     567"вернется к исходному состоянию."
     568
     569#: classes/Requirements.php:102
     570#, fuzzy, php-format
     571msgid "The <strong>%s</strong> requires installed and activated plugins: "
     572msgstr ""
     573"Для работы плагина <strong>%s</strong> требуются установленные и "
     574"активированные плагины: "
     575
     576#: classes/Requirements.php:118
     577#, fuzzy
    383578msgid " version "
    384579msgstr " версия "
    385580
    386 #: ../includes/class-art-woo-order-one-click.php:350
     581#: classes/Requirements.php:120
     582#, fuzzy
    387583msgid " or higher"
    388584msgstr " или выше"
    389585
    390 #: ../includes/class-art-woo-order-one-click.php:358
     586#: classes/Requirements.php:130
    391587msgid " 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 "Читать..."
     588msgstr ""
     589
     590#: classes/Requirements.php:154
     591#, fuzzy, php-format
     592msgid "<strong>%s</strong> plugin has been deactivated."
     593msgstr "<strong>%s</strong> плагин был деактивирован."
     594
     595#: includes/create-cf7-field.php:94
     596#, fuzzy
     597msgid "AWOOC hide field"
     598msgstr "AWOOC скрытое поле"
     599
     600#: includes/create-cf7-field.php:109
     601#, fuzzy, php-format
     602msgid "Generate a special hidden multi-line field. See %s."
     603msgstr "Генерируется специальное многострочное поле. Смотрите %s."
     604
     605#: includes/create-cf7-field.php:112
     606#, fuzzy
     607msgid "https://wpruse.ru/my-plugins/order-one-click/"
     608msgstr "https://wpruse.ru/my-plugins/order-one-click/"
     609
     610#: includes/create-cf7-field.php:113
     611#, fuzzy
     612msgid "the description for details"
     613msgstr "подробное описание"
     614
     615#: includes/create-cf7-field.php:126
     616#, fuzzy
     617msgid "Name"
     618msgstr "Имя"
     619
     620#: includes/create-cf7-field.php:154
     621#, fuzzy
     622msgid "Insert Tag"
     623msgstr "Вставить"
     624
     625#: includes/create-cf7-field.php:166
     626#, fuzzy, php-format
     627msgid ""
     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."
     630msgstr ""
     631"Чтобы использовать значение, введенное через это поле в письме, необходимо "
     632"вставить соответствующий почтовый тег (% s) в поле на вкладке Почта."
     633
     634#: templates/email.php:413
     635#, fuzzy
     636msgid "A quick one-click order has arrived"
     637msgstr "Пришел заказ в один клик"
     638
     639#: templates/quantity-input.php:40
     640#, fuzzy, php-format
     641msgid "%s quantity"
     642msgstr "%s количество"
     643
     644#: templates/quantity-input.php:54
     645#, fuzzy
     646msgid "Product quantity"
     647msgstr "Количество товара"
    491648
    492649#~ msgid "Do not show Buy button: catalog mode"
  • art-woocommerce-order-one-click/trunk/readme.txt

    r2523663 r3232179  
    33Donate link: https://wpruse.ru/r/donat/
    44Tags: woocommerce, mode catalog
    5 Requires at least: 4.8
    6 Tested up to: 5.6
    7 Stable tag: 2.4.3
    8 Requires PHP: 7.3
     5Requires at least: 5.5
     6Tested up to: 6.7
     7Stable tag: 3.1.0
     8Requires PHP: 7.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313Plugin 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).**
    1417
    1518The plugin provides three modes of operation:
     
    3437
    3538The 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
     40After 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.
    3641
    3742[Read more in the article](https://wpruse.ru/my-plugins/order-one-click/)
     
    6570* For the best documentation in Russian by WordPress [Site wp-kama.ru](https://wp-kama.ru/)
    6671
    67 = Bundled translations: =
    68 * Russian
    69 * English
    70 
    7172= Donate link: =
    7273<a href="https://www.paypal.me/artabr" target="_blank">PayPal</a>
     
    99100
    100101== 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* Рефакторинг и форматирование
    101138
    102139= 2.4.3 =
Note: See TracChangeset for help on using the changeset viewer.