Plugin Directory

Changeset 3139025


Ignore:
Timestamp:
08/21/2024 11:44:13 AM (18 months ago)
Author:
makecommerce
Message:

Release 3.5.3

Location:
makecommerce/trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • makecommerce/trunk/README.txt

    r3107349 r3139025  
    33Tags: woocommerce, payment, maksekeskus, shipping, banklink, creditcard, estonia, latvia, lithuania, pangalink, kaardimaksed, omniva, smartPOST, WPML , eesti, swedbank, seb, lhv, citadele, nordea, pocopay
    44Requires at least: 5.6.1
    5 Tested up to: 6.5.3
    6 Stable tag: 3.5.2
     5Tested up to: 6.6.1
     6Stable tag: 3.5.3
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    8080
    8181== Changelog ==
     82
     83= 3.5.3 2024-08-21 =
     84* Tweak - Additional settings support for Blocks checkout
     85* Tweak - WordPress 6.6.1 support
     86* Tweak - Wording improvement in settings
     87* Tweak - Simplified the parcel machine selectbox size in checkout
     88* Fix - Fixed undefined array key warning
    8289
    8390= 3.5.2 2024-06-25 =
  • makecommerce/trunk/languages/wc_makecommerce_domain-et.po

    r3090713 r3139025  
    965965msgid "Request failed: invalid sender or destination data"
    966966msgstr "Päring ebaõnnestus: saatja või sihtkoha andmed on valed"
     967
     968msgid "Remove country selection and display all methods"
     969msgstr "Eemalda riigi valik ja kuva kõik meetodid"
  • makecommerce/trunk/languages/wc_makecommerce_domain-lt.po

    r3090713 r3139025  
    965965msgid "Request failed: invalid sender or destination data"
    966966msgstr "Užklausa nepavyko: neteisingi siuntėjo arba paskirties duomenys"
     967
     968msgid "Remove country selection and display all methods"
     969msgstr "Pašalinkite šalies pasirinkimą ir rodykite visus mokėjimo būdus"
  • makecommerce/trunk/languages/wc_makecommerce_domain-lv.po

    r3090713 r3139025  
    965965msgid "Request failed: invalid sender or destination data"
    966966msgstr "Pieprasījums neizdevās: nederīgi sūtītāja vai galamērķa dati"
     967
     968msgid "Remove country selection and display all methods"
     969msgstr "Noņemiet valsts izvēlni un parādiet visas metodes"
  • makecommerce/trunk/languages/wc_makecommerce_domain-ru.po

    r3090713 r3139025  
    967967msgid "Request failed: invalid sender or destination data"
    968968msgstr "Запрос не выполнен: неверные данные отправителя или места назначения."
     969
     970msgid "Remove country selection and display all methods"
     971msgstr "Удалить выбор страны и отобразить все методы"
  • makecommerce/trunk/languages/wc_makecommerce_domain.pot

    r3107349 r3139025  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-06-25T07:12:51+00:00\n"
     12"POT-Creation-Date: 2024-08-13T09:32:02+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.10.0\n"
     14"X-Generator: WP-CLI 2.9.0\n"
    1515"X-Domain: wc_makecommerce_domain\n"
    1616
    1717#. Plugin Name of the plugin
    18 #: makecommerce.php
    1918msgid "MakeCommerce"
    2019msgstr ""
     
    2221#. Plugin URI of the plugin
    2322#. Author URI of the plugin
    24 #: makecommerce.php
    2523msgid "https://makecommerce.net/"
    2624msgstr ""
    2725
    2826#. Description of the plugin
    29 #: makecommerce.php
    3027msgid "Adds MakeCommerce payment gateway and Itella/Omniva/DPD parcel machine shipping methods to WooCommerce checkout"
    3128msgstr ""
    3229
    3330#. Author of the plugin
    34 #: makecommerce.php
    3531msgid "Maksekeskus AS"
    3632msgstr ""
     
    336332msgstr ""
    337333
    338 #: payment/gateway/woocommerce/blocks/woocommerceblocks.php:112
    339 #: payment/gateway/woocommerce/woocommerce.php:181
    340 msgid "Pay with bank-links or credit card"
    341 msgstr ""
    342 
    343334#: payment/gateway/woocommerce/blocks/woocommerceblocks.php:115
    344 #: payment/gateway/woocommerce/woocommerce.php:411
     335#: payment/gateway/woocommerce/woocommerce.php:412
    345336msgid "Please select suitable payment option!"
    346337msgstr ""
     
    388379msgstr ""
    389380
    390 #: payment/gateway/woocommerce/woocommerce.php:131
     381#: payment/gateway/woocommerce/woocommerce.php:132
    391382msgid "Enable/Disable"
    392383msgstr ""
    393384
    394 #: payment/gateway/woocommerce/woocommerce.php:133
     385#: payment/gateway/woocommerce/woocommerce.php:134
    395386msgid "Enable MakeCommerce payments"
    396387msgstr ""
    397388
    398 #: payment/gateway/woocommerce/woocommerce.php:143
     389#: payment/gateway/woocommerce/woocommerce.php:144
    399390msgid "MakeCommerce API"
    400391msgstr ""
    401392
    402 #: payment/gateway/woocommerce/woocommerce.php:144
     393#: payment/gateway/woocommerce/woocommerce.php:145
    403394msgid "Go to <a href=\"%s\">API settings</a> to fill in the credentials"
    404395msgstr ""
    405396
    406 #: payment/gateway/woocommerce/woocommerce.php:149
     397#: payment/gateway/woocommerce/woocommerce.php:150
    407398msgid "User Interface"
    408399msgstr ""
    409400
    410 #: payment/gateway/woocommerce/woocommerce.php:155
     401#: payment/gateway/woocommerce/woocommerce.php:156
    411402msgid "Set as default selection"
    412403msgstr ""
    413404
    414 #: payment/gateway/woocommerce/woocommerce.php:156
     405#: payment/gateway/woocommerce/woocommerce.php:157
    415406msgid "MakeCommerce payments widget will be selected by default"
    416407msgstr ""
    417408
    418 #: payment/gateway/woocommerce/woocommerce.php:163
     409#: payment/gateway/woocommerce/woocommerce.php:164
    419410msgid "Display MC payment channels as"
    420411msgstr ""
    421412
    422 #: payment/gateway/woocommerce/woocommerce.php:167
     413#: payment/gateway/woocommerce/woocommerce.php:168
    423414msgid "List"
    424415msgstr ""
    425416
    426 #: payment/gateway/woocommerce/woocommerce.php:168
     417#: payment/gateway/woocommerce/woocommerce.php:169
    427418msgid "Grouped to widget"
    428419msgstr ""
    429420
    430 #: payment/gateway/woocommerce/woocommerce.php:178
    431 #: payment/gateway/woocommerce/woocommerce.php:188
     421#: payment/gateway/woocommerce/woocommerce.php:179
     422#: payment/gateway/woocommerce/woocommerce.php:189
    432423msgid "Payments widget title"
    433424msgstr ""
    434425
    435 #: payment/gateway/woocommerce/woocommerce.php:180
    436 #: payment/gateway/woocommerce/woocommerce.php:190
     426#: payment/gateway/woocommerce/woocommerce.php:181
     427#: payment/gateway/woocommerce/woocommerce.php:191
    437428msgid "Appropriate title may depend on the configuration you have made, i.e. 'pay with bank-link or credit card', 'pay with bank-links' or 'payment methods'"
    438429msgstr ""
    439430
    440 #: payment/gateway/woocommerce/woocommerce.php:198
     431#: payment/gateway/woocommerce/woocommerce.php:182
     432msgid "Pay with bank-links or credit card"
     433msgstr ""
     434
     435#: payment/gateway/woocommerce/woocommerce.php:199
    441436msgid "MC payment channels display style"
    442437msgstr ""
    443438
    444 #: payment/gateway/woocommerce/woocommerce.php:202
     439#: payment/gateway/woocommerce/woocommerce.php:203
    445440msgid "Logo"
    446441msgstr ""
    447442
    448 #: payment/gateway/woocommerce/woocommerce.php:203
     443#: payment/gateway/woocommerce/woocommerce.php:204
    449444msgid "Text & logo"
    450445msgstr ""
    451446
    452 #: payment/gateway/woocommerce/woocommerce.php:204
     447#: payment/gateway/woocommerce/woocommerce.php:205
    453448msgid "Text"
    454449msgstr ""
    455450
    456 #: payment/gateway/woocommerce/woocommerce.php:210
     451#: payment/gateway/woocommerce/woocommerce.php:211
    457452msgid "Size of payment channel logos"
    458453msgstr ""
    459454
    460 #: payment/gateway/woocommerce/woocommerce.php:214
     455#: payment/gateway/woocommerce/woocommerce.php:215
    461456msgid "Small"
    462457msgstr ""
    463458
    464 #: payment/gateway/woocommerce/woocommerce.php:215
     459#: payment/gateway/woocommerce/woocommerce.php:216
    465460msgid "Medium"
    466461msgstr ""
    467462
    468 #: payment/gateway/woocommerce/woocommerce.php:216
     463#: payment/gateway/woocommerce/woocommerce.php:217
    469464msgid "Large"
    470465msgstr ""
    471466
    472 #: payment/gateway/woocommerce/woocommerce.php:222
    473 msgid "Group bank-links by countries"
    474 msgstr ""
    475 
    476 #: payment/gateway/woocommerce/woocommerce.php:229
     467#: payment/gateway/woocommerce/woocommerce.php:223
     468msgid "Remove country selection and display all methods"
     469msgstr ""
     470
     471#: payment/gateway/woocommerce/woocommerce.php:230
    477472msgid "Hide country selector"
    478473msgstr ""
    479474
    480 #: payment/gateway/woocommerce/woocommerce.php:230
     475#: payment/gateway/woocommerce/woocommerce.php:231
    481476msgid "Do not display country selector (flags) at payment methods"
    482477msgstr ""
    483478
    484 #: payment/gateway/woocommerce/woocommerce.php:236
     479#: payment/gateway/woocommerce/woocommerce.php:237
    485480msgid "Country selector style"
    486481msgstr ""
    487482
    488 #: payment/gateway/woocommerce/woocommerce.php:240
     483#: payment/gateway/woocommerce/woocommerce.php:241
    489484msgid "Flag"
    490485msgstr ""
    491486
    492 #: payment/gateway/woocommerce/woocommerce.php:241
     487#: payment/gateway/woocommerce/woocommerce.php:242
    493488msgid "Dropdown"
    494489msgstr ""
    495490
    496 #: payment/gateway/woocommerce/woocommerce.php:247
     491#: payment/gateway/woocommerce/woocommerce.php:248
    497492msgid "Define custom order of payment countries"
    498493msgstr ""
    499494
    500 #: payment/gateway/woocommerce/woocommerce.php:249
     495#: payment/gateway/woocommerce/woocommerce.php:250
    501496msgid "If you want to change default order, insert a comma separated list of 2 char country codes. i.e. - ee, lv, lt, fi (international = other)"
    502497msgstr ""
    503498
    504 #: payment/gateway/woocommerce/woocommerce.php:254
     499#: payment/gateway/woocommerce/woocommerce.php:255
    505500msgid "Define custom order of payment channels"
    506501msgstr ""
    507502
    508 #: payment/gateway/woocommerce/woocommerce.php:256
     503#: payment/gateway/woocommerce/woocommerce.php:257
    509504msgid "If you want to change default order, put here comma separated list of channels. i,e, - seb,lhv,swedbank. see more on the module home page (link above)"
    510505msgstr ""
    511506
    512 #: payment/gateway/woocommerce/woocommerce.php:265
     507#: payment/gateway/woocommerce/woocommerce.php:266
    513508msgid "Credit Card Settings"
    514509msgstr ""
    515510
    516 #: payment/gateway/woocommerce/woocommerce.php:270
     511#: payment/gateway/woocommerce/woocommerce.php:271
    517512msgid "Prefill Credit Card form with customer data"
    518513msgstr ""
    519514
    520 #: payment/gateway/woocommerce/woocommerce.php:273
     515#: payment/gateway/woocommerce/woocommerce.php:274
    521516msgid "It will pass user Name and e-mail address to the Credit Card dialog to make the form filling easier"
    522517msgstr ""
    523518
    524 #: payment/gateway/woocommerce/woocommerce.php:277
     519#: payment/gateway/woocommerce/woocommerce.php:278
    525520msgid "Advanced Settings"
    526521msgstr ""
    527522
    528 #: payment/gateway/woocommerce/woocommerce.php:282
     523#: payment/gateway/woocommerce/woocommerce.php:283
    529524msgid "Disable automatic cancelled payment status update"
    530525msgstr ""
    531526
    532 #: payment/gateway/woocommerce/woocommerce.php:283
     527#: payment/gateway/woocommerce/woocommerce.php:284
    533528msgid "Disable automatic order status updates for cancelled payments by MakeCommerce"
    534529msgstr ""
    535530
    536 #: payment/gateway/woocommerce/woocommerce.php:286
     531#: payment/gateway/woocommerce/woocommerce.php:287
    537532msgid "Disable MakeCommerce from updating order statuses for cancelled payments and let WooCommerce handle the status change"
    538533msgstr ""
    539534
    540 #: payment/gateway/woocommerce/woocommerce.php:290
     535#: payment/gateway/woocommerce/woocommerce.php:291
    541536msgid "Disable automatic expired payment status update"
    542537msgstr ""
    543538
    544 #: payment/gateway/woocommerce/woocommerce.php:291
     539#: payment/gateway/woocommerce/woocommerce.php:292
    545540msgid "Disable automatic order status updates for expired payments by MakeCommerce"
    546541msgstr ""
    547542
    548 #: payment/gateway/woocommerce/woocommerce.php:294
     543#: payment/gateway/woocommerce/woocommerce.php:295
    549544msgid "Disable MakeCommerce from updating order statuses for expired payments and let WooCommerce handle the status change"
    550545msgstr ""
    551546
    552 #: payment/gateway/woocommerce/woocommerce.php:299
     547#: payment/gateway/woocommerce/woocommerce.php:300
    553548msgid "Update payment methods"
    554549msgstr ""
    555550
    556 #: payment/gateway/woocommerce/woocommerce.php:300
     551#: payment/gateway/woocommerce/woocommerce.php:301
    557552msgid "Update"
    558553msgstr ""
    559554
    560 #: payment/gateway/woocommerce/woocommerce.php:301
     555#: payment/gateway/woocommerce/woocommerce.php:302
    561556msgid "This will update shop configuration from MakeCommerce servers."
    562557msgstr ""
    563558
    564 #: payment/gateway/woocommerce/woocommerce.php:500
     559#: payment/gateway/woocommerce/woocommerce.php:501
    565560msgid "An error occured when trying to process payment!"
    566561msgstr ""
  • makecommerce/trunk/makecommerce.php

    r3107349 r3139025  
    1010 * Plugin URI:            https://makecommerce.net/
    1111 * Description:           Adds MakeCommerce payment gateway and Itella/Omniva/DPD parcel machine shipping methods to WooCommerce checkout
    12  * Version:               3.5.2
     12 * Version:               3.5.3
    1313 * Author:                Maksekeskus AS
    1414 * Author URI:            https://makecommerce.net/
     
    3232 * Start at version 3.0.0 and use SemVer - https://semver.org
    3333 */
    34 define( 'MAKECOMMERCE_VERSION', '3.5.2' );
     34define( 'MAKECOMMERCE_VERSION', '3.5.3' );
    3535define( 'MAKECOMMERCE_PLUGIN_ID', 'makecommerce' );
    3636
  • makecommerce/trunk/payment/gateway/woocommerce/blocks/js/mc_blocks_payment_block.js

    r3090713 r3139025  
    88const methods = settings.methods || [];
    99const manualRenewals = settings.manualRenewals || false;
     10const showSelector = settings.showSelector;
    1011
    1112const wpElement = window.wp.element;
     
    173174        'div',
    174175        {
    175             className: 'makecommerce_selector_widget'
     176            className: 'makecommerce_selector_widget',
     177            style: {
     178                display: showSelector ? 'block' : 'none'
     179            }
    176180        },
    177181        countrySelector
  • makecommerce/trunk/payment/gateway/woocommerce/blocks/woocommerceblocks.php

    r3090713 r3139025  
    110110        return [
    111111            'name' => $this->name,
    112             'label' => __( 'Pay with bank-links or credit card', 'wc_makecommerce_domain' ),
     112            'label' => $this->gateway->title,
    113113            'methods' => $this->gateway->get_methods(),
    114114            'path' => plugins_url( '../images/', __FILE__ ),
    115115            'paymentError' => __( 'Please select suitable payment option!', 'wc_makecommerce_domain' ),
    116             'manualRenewals' => $manual_renewals
     116            'manualRenewals' => $manual_renewals,
     117            'showSelector' => $this->show_country_selector()
    117118        ];
    118119    }
     
    202203        wp_send_json( [ 'html' => '' ] );
    203204    }
     205
     206    private function show_country_selector() {
     207        return !isset( $this->settings['ui_widget_countries_hidden'] ) || $this->settings['ui_widget_countries_hidden'] === 'no';
     208    }
    204209}
  • makecommerce/trunk/payment/gateway/woocommerce/methods.php

    r3107349 r3139025  
    277277     * @since 3.0.6
    278278     */
    279     private function sort_countries_list() {
     279    public function sort_countries_list() {
    280280
    281281        if ( isset( $this->settings['ui_payment_country_order'] ) ) {
  • makecommerce/trunk/payment/gateway/woocommerce/woocommerce.php

    r3107349 r3139025  
    1212
    1313    public $id = MAKECOMMERCE_PLUGIN_ID;
    14     public $version = '3.5.2';
     14    public $version = '3.5.3';
    1515   
    1616    public $payment_return_url;
     
    3030
    3131    public function get_methods() {
     32        $this->methods->sort_countries_list();
    3233        return $this->methods;
    3334    }
     
    220221
    221222        $this->form_fields['ui_widget_groupcountries'] = array(
    222             'title' => __( 'Group bank-links by countries', 'wc_makecommerce_domain' ),
     223            'title' => __( 'Remove country selection and display all methods', 'wc_makecommerce_domain' ),
    223224            'type' => 'checkbox',
    224225            'default' => 'no',
  • makecommerce/trunk/shipping/js/parcelmachine.js

    r2701810 r3139025  
    11jQuery(function(){
    2    
     2
    33    jQuery(document).on('updated_checkout', function() {
    44
     
    2121        adjust_select_box_width();
    2222    });
    23    
     23
    2424    function adjust_select_box_width() {
    2525        // Get widths of the content, parcel_machine_checkout row
     
    4343                jQuery('.parcel_machine_checkout > td').css('max-width', (content_width - 20) +'px');
    4444            }
    45             // If the size of the selectbox is bigger than X pixels and less than 2 times as small as the content, add a cell before it
    46             if (select_box_width > 500 && content_width / select_box_width < 2) {
    47                 // Unless there already exist 2 cells, add an empty one before select_box
    48                 if (parcel_row.find('.padding_cell').length < 1) {
    49                     parcel_row.prepend('<td class="padding_cell"></td>');
    50                 }
    51 
    52                 // Loop through children and change colspan of select_box cell to 1
    53                 parcel_row.children().each(function() {
    54                     if (typeof(jQuery(this).attr('colspan')) !== 'undefined') {
    55                         jQuery(this).attr('colspan', 1);
    56                     }
    57                 });
    58             } else if (content_width <= 500 && parcel_row.find('.padding_cell').length > 0) {
    59                 // If the row is smaller than the min amount and there's a padding cell, remove it
    60                 parcel_row.children().each(function() {
    61                     // Change colspan back to 2
    62                     if (typeof(jQuery(this).attr('colspan')) !== 'undefined') {
    63                         jQuery(this).attr('colspan', 2);
    64                     } else {
    65                         jQuery(this).remove();
    66                     }
    67                 });
    68             }
    6945        }
    7046    }
  • makecommerce/trunk/shipping/method/parcelmachine/parcelmachine.php

    r3107349 r3139025  
    159159        $placeholder = __( '-- select parcel machine --', 'wc_makecommerce_domain' );
    160160        $searchable_class = '';
    161         if ( $options['searchable_parcelmachines'] === 'yes' ) {
     161        if ( isset( $options['searchable_parcelmachines'] ) && $options['searchable_parcelmachines'] === 'yes' ) {
    162162            $searchable_class = ' parcel-machine-select-box-searchable';
    163163            $placeholder = '';
Note: See TracChangeset for help on using the changeset viewer.