Changeset 3249513
- Timestamp:
- 03/03/2025 08:56:24 AM (13 months ago)
- Location:
- mono-checkout
- Files:
-
- 8 added
- 6 edited
- 22 copied
-
tags/1.10.0 (copied) (copied from mono-checkout/trunk)
-
tags/1.10.0/css (copied) (copied from mono-checkout/trunk/css)
-
tags/1.10.0/css/admin-method.css (copied) (copied from mono-checkout/trunk/css/admin-method.css)
-
tags/1.10.0/css/mono-admin.css (copied) (copied from mono-checkout/trunk/css/mono-admin.css)
-
tags/1.10.0/css/mono-btn.css (copied) (copied from mono-checkout/trunk/css/mono-btn.css)
-
tags/1.10.0/images (copied) (copied from mono-checkout/trunk/images)
-
tags/1.10.0/includes (copied) (copied from mono-checkout/trunk/includes)
-
tags/1.10.0/includes/MonoApi.php (copied) (copied from mono-checkout/trunk/includes/MonoApi.php)
-
tags/1.10.0/includes/class.gateway.php (copied) (copied from mono-checkout/trunk/includes/class.gateway.php) (8 diffs)
-
tags/1.10.0/includes/class.mono.php (copied) (copied from mono-checkout/trunk/includes/class.mono.php)
-
tags/1.10.0/js (copied) (copied from mono-checkout/trunk/js)
-
tags/1.10.0/js/admin-handlers.js (copied) (copied from mono-checkout/trunk/js/admin-handlers.js)
-
tags/1.10.0/js/frontend-handlers.js (copied) (copied from mono-checkout/trunk/js/frontend-handlers.js)
-
tags/1.10.0/languages (copied) (copied from mono-checkout/trunk/languages)
-
tags/1.10.0/languages/mono-checkout-uk.mo (copied) (copied from mono-checkout/trunk/languages/mono-checkout-uk.mo)
-
tags/1.10.0/languages/mono-checkout-uk.po (copied) (copied from mono-checkout/trunk/languages/mono-checkout-uk.po) (25 diffs)
-
tags/1.10.0/languages/mono-checkout.pot (copied) (copied from mono-checkout/trunk/languages/mono-checkout.pot) (5 diffs)
-
tags/1.10.0/mono.php (copied) (copied from mono-checkout/trunk/mono.php) (2 diffs)
-
tags/1.10.0/readme.txt (copied) (copied from mono-checkout/trunk/readme.txt) (2 diffs)
-
tags/1.10.0/templates (copied) (copied from mono-checkout/trunk/templates)
-
tags/1.10.0/templates/base_button.php (copied) (copied from mono-checkout/trunk/templates/base_button.php)
-
tags/1.10.0/templates/button_error.php (copied) (copied from mono-checkout/trunk/templates/button_error.php)
-
tags/1.10.0/templates/wooommerce (added)
-
tags/1.10.0/templates/wooommerce/admin (added)
-
tags/1.10.0/templates/wooommerce/admin/product (added)
-
tags/1.10.0/templates/wooommerce/admin/product/html-product-data-monocheckout.php (added)
-
trunk/includes/class.gateway.php (modified) (8 diffs)
-
trunk/languages/mono-checkout-uk.mo (modified) (previous)
-
trunk/languages/mono-checkout-uk.po (modified) (25 diffs)
-
trunk/languages/mono-checkout.pot (modified) (5 diffs)
-
trunk/mono.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/wooommerce (added)
-
trunk/templates/wooommerce/admin (added)
-
trunk/templates/wooommerce/admin/product (added)
-
trunk/templates/wooommerce/admin/product/html-product-data-monocheckout.php (added)
Legend:
- Unmodified
- Added
- Removed
-
mono-checkout/tags/1.10.0/includes/class.gateway.php
r3242725 r3249513 43 43 44 44 add_action( 'admin_enqueue_scripts', [$this, 'admin_scripts'] ); 45 46 add_filter( 'woocommerce_product_data_tabs', [ $this, 'product_data_tabs' ]); 47 add_action( 'woocommerce_product_data_panels', [ $this, 'product_data_panels' ]); 48 add_action( 'woocommerce_process_product_meta', [ $this, 'product_data_save' ]); 45 49 } 46 50 } … … 221 225 } 222 226 227 public function product_data_tabs( $tabs ) { 228 $tabs['monocheckout'] = [ 229 'label' => __( 'mono checkout', 'mono-checkout' ), 230 'target' => 'monocheckout_product_data', 231 'class' => array( ), 232 'priority' => 80, 233 ]; 234 return $tabs; 235 } 236 237 public function product_data_panels() { 238 global $post, $thepostid, $product_object; 239 include __DIR__ . '/../templates/wooommerce/admin/product/html-product-data-monocheckout.php'; 240 } 241 242 public function product_data_save($post_id) { 243 // Custom Product Text Field 244 $payment_method = $_POST['_monocheckout_payment_method']; 245 update_post_meta($post_id, '_monocheckout_payment_method', esc_attr(implode(',', $payment_method))); 246 $shipping_method = $_POST['_monocheckout_shipping_method']; 247 update_post_meta($post_id, '_monocheckout_shipping_method', esc_attr(implode(',', $shipping_method))); 248 } 249 223 250 public function init_form_fields() 224 251 { … … 368 395 } 369 396 370 p rotectedfunction getShippingOptions()397 public function getShippingOptions() 371 398 { 372 399 return [ … … 378 405 } 379 406 380 p rotectedfunction getPaymentMethods()407 public function getPaymentMethods() 381 408 { 382 409 return [ … … 590 617 $products = []; 591 618 $hasShipping = false; 619 $individualPaymentMethods = array_keys($this->getPaymentMethods()); 620 $individualShippingMethods = array_keys($this->getShippingOptions()); 592 621 foreach ($order->get_items() as $item) { 593 622 $count+= $item->get_quantity(); … … 606 635 "product_img_src" => $this->get_product_image($product), 607 636 ]; 637 $parent = wp_get_post_parent_id($product->get_id()); 608 638 if (!$product->is_virtual()) { 609 639 $hasShipping = true; 610 } 640 $individualShippingMethods = array_intersect($individualShippingMethods, self::get_product_shipping_options($parent?:$product->get_id())); 641 } else { 642 $individualShippingMethods = []; 643 } 644 $individualPaymentMethods = array_intersect($individualPaymentMethods, self::get_product_payment_options($parent?:$product->get_id())); 611 645 } 612 646 } … … 619 653 } 620 654 621 $delivery_methods = $this->get_option('delivery_methods');655 $delivery_methods = array_values(array_unique(array_merge($this->get_option('delivery_methods'), $individualShippingMethods))); 622 656 $free_delivery_from = $this->get_option('free_delivery_from'); 623 $payment_methods = $this->get_option('payment_methods');657 $payment_methods = array_values(array_unique(array_merge($this->get_option('payment_methods'), $individualPaymentMethods))); 624 658 $payments_number = $this->get_option('payments_number'); 625 659 … … 957 991 $order->save(); 958 992 } 993 994 public static function get_product_shipping_options( $product_id ) { 995 return explode(',', get_post_meta($product_id, '_monocheckout_shipping_method', true) ?: ''); 996 } 997 998 public static function get_product_payment_options( $product_id ) { 999 return explode(',', get_post_meta($product_id, '_monocheckout_payment_method', true) ?: ''); 1000 } 959 1001 } -
mono-checkout/tags/1.10.0/languages/mono-checkout-uk.po
r3242725 r3249513 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "POT-Creation-Date: 2023-10-25T00:58:42+03:00\n" 13 "PO-Revision-Date: 2025-02- 18 07:51+0000\n"13 "PO-Revision-Date: 2025-02-28 07:55+0000\n" 14 14 "X-Generator: Loco https://localise.biz/\n" 15 15 "X-Domain: mono\n" … … 19 19 "X-Loco-Version: 2.6.6; wp-6.3.2" 20 20 21 #: includes/class.gateway.php:4 6921 #: includes/class.gateway.php:496 22 22 msgid "" 23 23 "<strong>Important:</strong> mono checkout does not support orders with " … … 25 25 msgstr "" 26 26 "<strong>Важливо:</strong> mono чекаут не підтримує замовлення з купонами." 27 28 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:17 29 msgid "Additional payment methods" 30 msgstr "Додаткові методи оплати" 31 32 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:29 33 msgid "Additional shipping methods" 34 msgstr "Додаткові методи доставки" 27 35 28 36 #: includes/class.mono.php:180 includes/class.mono.php:181 … … 30 38 msgstr "Відповідь API" 31 39 32 #: includes/class.gateway.php:2 3640 #: includes/class.gateway.php:263 33 41 #| msgid "" 34 42 #| "API token from monopay. Get your token at <a href=\"https://web.monobank." … … 41 49 "monobank.ua/\" target=\"_blank\">web.monobank.ua</a>" 42 50 43 #: includes/class.gateway.php:3 3451 #: includes/class.gateway.php:361 44 52 msgid "Automatically complete \"Cash on delivery\" orders" 45 53 msgstr "Автоматично закривати замовленням з оплатою при доставці" 46 54 47 #: includes/class.gateway.php:3 2755 #: includes/class.gateway.php:354 48 56 msgid "Automatically complete paid monocheckout orders" 49 57 msgstr "Автоматично ставити статус \"Виконано\" сплаченим замовленням" 50 58 51 #: includes/class.gateway.php:3 4159 #: includes/class.gateway.php:368 52 60 msgid "Automatically fail unpaid orders" 53 61 msgstr "Автоматично скасовувати несплачені замовлення" 54 62 55 #: includes/class.gateway.php:3 4863 #: includes/class.gateway.php:375 56 64 msgid "Base URL" 57 65 msgstr "Базовий URL" 58 66 59 #: includes/class.gateway.php:3 5067 #: includes/class.gateway.php:377 60 68 msgid "Base URL for mono checkout API." 61 69 msgstr "Базовий URL для API mono checkout" 62 70 63 #: includes/class.gateway.php: 29571 #: includes/class.gateway.php:322 64 72 msgid "Button style" 65 73 msgstr "Стиль кнопки" … … 69 77 msgstr "Оформити через mono checkout" 70 78 71 #: includes/class.gateway.php:9 379 #: includes/class.gateway.php:97 72 80 msgid "Call client" 73 81 msgstr "Передзвонити клієнту" 74 82 75 #: includes/class.gateway.php: 38383 #: includes/class.gateway.php:410 76 84 msgid "Card" 77 85 msgstr "Картка" 78 86 79 #: includes/class.gateway.php: 29187 #: includes/class.gateway.php:318 80 88 msgid "Cart button height (px)" 81 89 msgstr "Висота кнопки в кошику (px)" 82 90 83 #: includes/class.gateway.php: 28791 #: includes/class.gateway.php:314 84 92 msgid "Cart button width (px)" 85 93 msgstr "Ширина кнопки в кошику (px)" 86 94 87 #: includes/class.gateway.php: 488 includes/class.gateway.php:66695 #: includes/class.gateway.php:515 includes/class.gateway.php:698 88 96 msgid "Check your mono checkout Token." 89 97 msgstr "Будь-ласка, перевірте Токен чекауту для Вашого магазину." 90 98 91 #: includes/class.gateway.php:2 6399 #: includes/class.gateway.php:290 92 100 msgid "Checkout button height (px)" 93 101 msgstr "Висота кнопки на чекауті (px)" 94 102 95 #: includes/class.gateway.php:2 59103 #: includes/class.gateway.php:286 96 104 msgid "Checkout button width (px)" 97 105 msgstr "Ширина кнопки на чекауті (px)" 98 106 99 #: includes/class.gateway.php:2 48107 #: includes/class.gateway.php:275 100 108 msgid "Checkout description" 101 109 msgstr "Опис" 102 110 103 #: includes/class.gateway.php: 494 includes/class.gateway.php:689111 #: includes/class.gateway.php:521 includes/class.gateway.php:721 104 112 msgid "Checkout is disabled in your account." 105 113 msgstr "Чекаут відключений у Вашому аккаунті." 106 114 107 #: includes/class.gateway.php:11 2115 #: includes/class.gateway.php:116 108 116 msgid "City" 109 117 msgstr "Місто" 110 118 111 #: includes/class.gateway.php:10 0119 #: includes/class.gateway.php:104 112 120 msgid "Comments" 113 121 msgstr "Коментар" 114 122 115 #: includes/class.gateway.php:11 1 includes/class.gateway.php:113123 #: includes/class.gateway.php:115 includes/class.gateway.php:117 116 124 msgid "copy code" 117 125 msgstr "скопіювати код" 118 126 119 #: includes/class.gateway.php: 374127 #: includes/class.gateway.php:401 120 128 msgid "Courier" 121 129 msgstr "Кур'єр" 122 130 123 #: includes/class.gateway.php: 684131 #: includes/class.gateway.php:716 124 132 msgid "Delivery method \"%s\" is not available for your store." 125 133 msgstr "Спосіб доставки \"%s\" недоступний для Вашого магазину." 126 134 127 #: includes/class.gateway.php: 492135 #: includes/class.gateway.php:519 128 136 msgid "Delivery method X is not available for your store." 129 137 msgstr "Спосіб доставки X недоступний для Вашого магазину." 130 138 131 #: includes/class.gateway.php:3 01139 #: includes/class.gateway.php:328 132 140 msgid "Delivery options" 133 141 msgstr "Методи доставки" 134 142 135 #: includes/class.gateway.php: 281143 #: includes/class.gateway.php:308 136 144 msgid "Enable in cart" 137 145 msgstr "Відобразити в кошику" 138 146 139 #: includes/class.gateway.php:2 28147 #: includes/class.gateway.php:255 140 148 msgid "Enable module" 141 149 msgstr "Активувати модуль" 142 150 143 #: includes/class.gateway.php:2 53151 #: includes/class.gateway.php:280 144 152 msgid "Enable on checkout" 145 153 msgstr "Відобразити на чекауті" 146 154 147 #: includes/class.gateway.php:2 67155 #: includes/class.gateway.php:294 148 156 msgid "Enable on product details" 149 157 msgstr "Відобразити на деталях продукту" 150 158 151 #: includes/class.gateway.php: 486 includes/class.gateway.php:661159 #: includes/class.gateway.php:513 includes/class.gateway.php:693 152 160 msgid "Fill in your mono checkout Token." 153 161 msgstr "Будь-ласка, заповніть Токен чекауту для Вашого магазину." 154 162 155 #: includes/class.gateway.php:3 08163 #: includes/class.gateway.php:335 156 164 msgid "Free delivery from" 157 165 msgstr "Безкоштовна доставка від" 158 166 159 #: includes/class.gateway.php:3 11167 #: includes/class.gateway.php:338 160 168 msgid "Free delivery from this order subtotal. Empty for paid delivery." 161 169 msgstr "" … … 163 171 "доставки." 164 172 165 #: includes/class.gateway.php: 484173 #: includes/class.gateway.php:511 166 174 msgid "Frequent errors" 167 175 msgstr "Часті помилки" … … 171 179 msgstr "Загальна помилка" 172 180 173 #: includes/class.gateway.php:4 34181 #: includes/class.gateway.php:461 174 182 msgid "Get your monobank app now:" 175 183 msgstr "Скачайте додаток monobank" … … 192 200 193 201 #. Plugin Name of the plugin 202 #: includes/class.gateway.php:229 194 203 #| msgid "monobank checkout" 195 204 msgid "mono checkout" 196 205 msgstr "Оформлення через mono checkout" 197 206 198 #: includes/class.gateway.php:7 31207 #: includes/class.gateway.php:763 199 208 #| msgid "" 200 209 #| "monopay declined order: %1$s (code: %2$s)<br/><a class=\"mono-code-" … … 207 216 "code-toggle\">Відповідь API</a><pre class=\"mono-api-answer\">%3$s</pre>" 208 217 209 #: includes/class.gateway.php:7 14218 #: includes/class.gateway.php:746 210 219 #| msgid "" 211 220 #| "monopay declined order: %1$s<br/><a class=\"mono-code-toggle\">API " … … 222 231 msgstr "mono чекаут не підтримує замовлення з купонами" 223 232 224 #: includes/class.gateway.php:8 26233 #: includes/class.gateway.php:858 225 234 #| msgid "" 226 235 #| "monopay status update:<strong>%1$s</strong><br/><a class=\"mono-code-" … … 244 253 "cPanel</a>)" 245 254 246 #: includes/class.gateway.php:7 49255 #: includes/class.gateway.php:781 247 256 msgid "" 248 257 "mono ID: <strong>%1$s</strong><br/><a href=\"%2$s\" target=\"_blank\">" … … 254 263 "<pre class=\"mono-api-answer\">%3$s</pre>" 255 264 256 #: includes/class.gateway.php:3 45265 #: includes/class.gateway.php:372 257 266 msgid "" 258 267 "mono orders that haven't been paid in 30 minutes will become failed. The " … … 272 281 msgstr "monobank" 273 282 274 #: includes/class.gateway.php:4 29283 #: includes/class.gateway.php:456 275 284 msgid "" 276 285 "More details on <a href=\"https://www.monobank.ua/\" target=\"_blank\">" … … 280 289 "monobank.ua</a>" 281 290 282 #: includes/class.gateway.php:6 63 includes/class.gateway.php:668283 #: includes/class.gateway.php: 677 includes/class.gateway.php:686284 #: includes/class.gateway.php: 691291 #: includes/class.gateway.php:695 includes/class.gateway.php:700 292 #: includes/class.gateway.php:709 includes/class.gateway.php:718 293 #: includes/class.gateway.php:723 285 294 msgid "More info" 286 295 msgstr "Детальніше" 287 296 288 #: includes/class.gateway.php:4 25297 #: includes/class.gateway.php:452 289 298 msgid "Need help? Check out our FAQ or contact our support." 290 299 msgstr "Потрібна допомога? Подивіться наші ЧаПи або зверніться до підтримки." 291 300 292 #: includes/class.gateway.php:9 3301 #: includes/class.gateway.php:97 293 302 msgid "No" 294 303 msgstr "Ні" 295 304 296 #: includes/class.gateway.php:5 2 includes/class.gateway.php:83305 #: includes/class.gateway.php:56 includes/class.gateway.php:87 297 306 msgid "Not authorized" 298 307 msgstr "Не авторизоване" 299 308 300 #: includes/class.gateway.php: 57309 #: includes/class.gateway.php:61 301 310 msgid "Not authorized <span class=\"count\">(%s)</span>" 302 311 msgstr "Не авторизоване <span class=\"count\">(%s)</span>" 303 312 304 #: includes/class.gateway.php:6 0 includes/class.gateway.php:84313 #: includes/class.gateway.php:64 includes/class.gateway.php:88 305 314 msgid "Not confirmed" 306 315 msgstr "Не підтверджене" 307 316 308 #: includes/class.gateway.php:6 5317 #: includes/class.gateway.php:69 309 318 msgid "Not confirmed <span class=\"count\">(%s)</span>" 310 319 msgstr "Не підтверджене <span class=\"count\">(%s)</span>" 311 320 312 #: includes/class.gateway.php: 375321 #: includes/class.gateway.php:402 313 322 msgid "Nova Poshta" 314 323 msgstr "Нова Пошта" 315 324 316 #: includes/class.gateway.php: 376325 #: includes/class.gateway.php:403 317 326 msgid "NP Postbox" 318 327 msgstr "Поштомат НП" 319 328 320 #: includes/class.gateway.php:3 21329 #: includes/class.gateway.php:348 321 330 msgid "Number of payments" 322 331 msgstr "Кількість платежів" 323 332 324 #: includes/class.gateway.php:3 24333 #: includes/class.gateway.php:351 325 334 msgid "Number of payments for Purchase in parts." 326 335 msgstr "Кількість платежів в покупці частинами" 327 336 328 #: includes/class.gateway.php:2 41337 #: includes/class.gateway.php:268 329 338 msgid "Order prefix" 330 339 msgstr "Префікс замовлення" 331 340 332 #: includes/class.gateway.php:3 38341 #: includes/class.gateway.php:365 333 342 msgid "" 334 343 "Orders with payment type \"Cash on delivery\" will automatically be " … … 338 347 "\"Виконано\"." 339 348 340 #: includes/class.gateway.php:3 31349 #: includes/class.gateway.php:358 341 350 msgid "" 342 351 "Paid orders will automatically be transitioned to Completed status. However " … … 346 355 "Однак замовлення з оплатою при доставці не автоматично закриті." 347 356 348 #: includes/class.gateway.php: 694 includes/class.gateway.php:710349 #: includes/class.gateway.php:7 27357 #: includes/class.gateway.php:726 includes/class.gateway.php:742 358 #: includes/class.gateway.php:759 350 359 msgid "Payment error: %s" 351 360 msgstr "Помилка платежу: %s" 352 361 353 #: includes/class.gateway.php: 675362 #: includes/class.gateway.php:707 354 363 msgid "Payment method \"%s\" is not available for your store." 355 364 msgstr "Платіжний метод \"%s\" недоступний для Вашого магазину." 356 365 357 #: includes/class.gateway.php: 490366 #: includes/class.gateway.php:517 358 367 msgid "Payment method X is not available for your store." 359 368 msgstr "Платіжний метод X недоступний для Вашого магазину." 360 369 361 #: includes/class.gateway.php:3 14370 #: includes/class.gateway.php:341 362 371 msgid "Payment methods" 363 372 msgstr "Платіжні методи" 364 373 365 #: includes/class.gateway.php: 68 includes/class.gateway.php:85366 #: includes/class.gateway.php: 384374 #: includes/class.gateway.php:72 includes/class.gateway.php:89 375 #: includes/class.gateway.php:411 367 376 msgid "Payment on delivery" 368 377 msgstr "Оплата при отриманні" 369 378 370 #: includes/class.gateway.php:7 3379 #: includes/class.gateway.php:77 371 380 msgid "Payment on delivery <span class=\"count\">(%s)</span>" 372 381 msgstr "Оплата при отриманні <span class=\"count\">(%s)</span>" 373 382 374 #: includes/class.gateway.php:4 01383 #: includes/class.gateway.php:428 375 384 msgid "Pending payment" 376 385 msgstr "Очікування оплати" 377 386 378 #: includes/class.gateway.php: 373387 #: includes/class.gateway.php:400 379 388 msgid "Pickup" 380 389 msgstr "Самовивіз" 381 390 382 #: includes/class.gateway.php: 493391 #: includes/class.gateway.php:520 383 392 msgid "" 384 393 "Please, contact our support at <a href=\"https://web.monobank.ua\" " … … 392 401 "в налаштуваннях чекауту." 393 402 394 #: includes/class.gateway.php: 491403 #: includes/class.gateway.php:518 395 404 #| msgid "" 396 405 #| "Please, contact our support at <a href=\"https://web.monobank.ua\" " … … 407 416 "в налаштуваннях чекауту." 408 417 409 #: includes/class.gateway.php: 495418 #: includes/class.gateway.php:522 410 419 msgid "" 411 420 "Please, enable your checkout in your account at <a href=\"https://web." … … 415 424 "monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 416 425 417 #: includes/class.gateway.php: 487426 #: includes/class.gateway.php:514 418 427 msgid "" 419 428 "Please, get your token at <a href=\"https://web.monobank.ua\" " … … 423 432 "ua\" target=\"_blank\">web.monobank.ua</a>" 424 433 425 #: includes/class.gateway.php: 489434 #: includes/class.gateway.php:516 426 435 msgid "" 427 436 "Please, make sure you used correct token from <a href=\"https://web.monobank." … … 431 440 "href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 432 441 433 #: includes/class.gateway.php:2 43442 #: includes/class.gateway.php:270 434 443 msgid "Prepended to order numbers to distinguish between different stores." 435 444 msgstr "" 436 445 "Додається до номеру замовлення, щоб розрізняти замовлення з різних магазинів" 437 446 438 #: includes/class.gateway.php: 277447 #: includes/class.gateway.php:304 439 448 msgid "Product details button height (px)" 440 449 msgstr "Висота кнопки на деталях продукту (px)" 441 450 442 #: includes/class.gateway.php: 273451 #: includes/class.gateway.php:300 443 452 msgid "Product details button width (px)" 444 453 msgstr "Ширина кнопки на деталях продукту (px)" 445 454 446 #: includes/class.gateway.php: 385455 #: includes/class.gateway.php:412 447 456 msgid "Purchase in parts" 448 457 msgstr "Покупка частинами" 449 458 450 #: includes/class.gateway.php:11 0459 #: includes/class.gateway.php:114 451 460 msgid "Region" 452 461 msgstr "Область" 453 462 454 #: includes/class.gateway.php:473 463 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:19 464 msgid "" 465 "Select multiple payment methods that are allowed for this specific product " 466 "in addition to the global ones." 467 msgstr "" 468 "Оберіть платіжні методи для цього продукту, як доповнення до загальних " 469 "методів." 470 471 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:31 472 msgid "" 473 "Select multiple shipping methods that are allowed for this specific product " 474 "in addition to the global ones." 475 msgstr "" 476 "Оберіть методи доставки для цього продукту, як доповнення до загальних " 477 "методів." 478 479 #: includes/class.gateway.php:500 455 480 msgid "Settings" 456 481 msgstr "Налаштування" 457 482 458 #: includes/class.gateway.php:4 54483 #: includes/class.gateway.php:481 459 484 msgid "Statuses of mono checkout orders:" 460 485 msgstr "Статуси замовлень mono checkout:" 461 486 462 #: includes/class.gateway.php:1 39 includes/class.gateway.php:659487 #: includes/class.gateway.php:143 includes/class.gateway.php:691 463 488 msgid "Technical error" 464 489 msgstr "Технічна помилка" … … 468 493 msgstr "Цей платіжний метод не підтримує замовлення з купонами." 469 494 470 #: includes/class.gateway.php:4 28495 #: includes/class.gateway.php:455 471 496 msgid "" 472 497 "To get token, please, send request in your monobank app and then visit <a " … … 477 502 "web.monobank.ua</a>" 478 503 479 #: includes/class.gateway.php:2 34504 #: includes/class.gateway.php:261 480 505 msgid "Token" 481 506 msgstr "Токен" 482 507 483 #: includes/class.gateway.php:12 1 includes/class.gateway.php:171508 #: includes/class.gateway.php:125 includes/class.gateway.php:175 484 509 msgid "Update payment status" 485 510 msgstr "Оновити статус платежу" 486 511 487 #: includes/class.gateway.php:3 05 includes/class.gateway.php:318512 #: includes/class.gateway.php:332 includes/class.gateway.php:345 488 513 msgid "Use Ctrl for multiple choices" 489 514 msgstr "Натисніть Ctrl, щоб обрати декілька варіантів" 490 515 491 #: includes/class.gateway.php: 698516 #: includes/class.gateway.php:730 492 517 #| msgid "" 493 518 #| "Wrong answer from monopay.<br/><a class=\"mono-code-toggle\">API " … … 500 525 "Відповідь API</a><pre class=\"mono-api-answer\">%s</pre>" 501 526 502 #: includes/class.gateway.php:9 3527 #: includes/class.gateway.php:97 503 528 msgid "Yes" 504 529 msgstr "Так" 505 530 506 #: includes/class.gateway.php:4 30531 #: includes/class.gateway.php:457 507 532 msgid "Your callback URL: %s" 508 533 msgstr "Ваш URL колбеку: %s" 509 534 510 #: includes/class.gateway.php:4 31535 #: includes/class.gateway.php:458 511 536 msgid "Your return URL: %s" 512 537 msgstr "Ваш URL після успішної оплати (return URL): %s" -
mono-checkout/tags/1.10.0/languages/mono-checkout.pot
r3242725 r3249513 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: mono checkout 1. 9.0\n"5 "Project-Id-Version: mono checkout 1.10.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mono\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-02- 18T07:46:55+00:00\n"12 "POT-Creation-Date: 2025-02-28T07:53:27+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.1\n" … … 16 16 17 17 #. Plugin Name of the plugin 18 #: includes/class.gateway.php:229 18 19 msgid "mono checkout" 19 20 msgstr "" … … 39 40 msgstr "" 40 41 41 #: includes/class.gateway.php:5 242 #: includes/class.gateway.php:8 342 #: includes/class.gateway.php:56 43 #: includes/class.gateway.php:87 43 44 msgid "Not authorized" 44 45 msgstr "" 45 46 46 #: includes/class.gateway.php: 5747 #: includes/class.gateway.php:61 47 48 msgid "Not authorized <span class=\"count\">(%s)</span>" 48 49 msgstr "" 49 50 50 #: includes/class.gateway.php:6 051 #: includes/class.gateway.php:8 451 #: includes/class.gateway.php:64 52 #: includes/class.gateway.php:88 52 53 msgid "Not confirmed" 53 54 msgstr "" 54 55 55 #: includes/class.gateway.php:6 556 #: includes/class.gateway.php:69 56 57 msgid "Not confirmed <span class=\"count\">(%s)</span>" 57 58 msgstr "" 58 59 59 #: includes/class.gateway.php: 6860 #: includes/class.gateway.php:8 561 #: includes/class.gateway.php: 38460 #: includes/class.gateway.php:72 61 #: includes/class.gateway.php:89 62 #: includes/class.gateway.php:411 62 63 msgid "Payment on delivery" 63 64 msgstr "" 64 65 65 #: includes/class.gateway.php:7 366 #: includes/class.gateway.php:77 66 67 msgid "Payment on delivery <span class=\"count\">(%s)</span>" 67 68 msgstr "" 68 69 69 #: includes/class.gateway.php:9 370 #: includes/class.gateway.php:97 70 71 msgid "Call client" 71 72 msgstr "" 72 73 73 #: includes/class.gateway.php:9 374 #: includes/class.gateway.php:97 74 75 msgid "Yes" 75 76 msgstr "" 76 77 77 #: includes/class.gateway.php:9 378 #: includes/class.gateway.php:97 78 79 msgid "No" 79 80 msgstr "" 80 81 81 #: includes/class.gateway.php:10 082 #: includes/class.gateway.php:104 82 83 msgid "Comments" 83 84 msgstr "" 84 85 85 #: includes/class.gateway.php:11 086 #: includes/class.gateway.php:114 86 87 msgid "Region" 87 88 msgstr "" 88 89 89 #: includes/class.gateway.php:11 190 #: includes/class.gateway.php:11 390 #: includes/class.gateway.php:115 91 #: includes/class.gateway.php:117 91 92 msgid "copy code" 92 93 msgstr "" 93 94 94 #: includes/class.gateway.php:11 295 #: includes/class.gateway.php:116 95 96 msgid "City" 96 97 msgstr "" 97 98 98 #: includes/class.gateway.php:12 199 #: includes/class.gateway.php:17 199 #: includes/class.gateway.php:125 100 #: includes/class.gateway.php:175 100 101 msgid "Update payment status" 101 102 msgstr "" 102 103 103 #: includes/class.gateway.php:1 39104 #: includes/class.gateway.php:6 59104 #: includes/class.gateway.php:143 105 #: includes/class.gateway.php:691 105 106 msgid "Technical error" 106 107 msgstr "" 107 108 108 #: includes/class.gateway.php:2 28109 #: includes/class.gateway.php:255 109 110 msgid "Enable module" 110 111 msgstr "" 111 112 112 #: includes/class.gateway.php:2 34113 #: includes/class.gateway.php:261 113 114 msgid "Token" 114 115 msgstr "" 115 116 116 #: includes/class.gateway.php:2 36117 #: includes/class.gateway.php:263 117 118 msgid "API token from mono checkout. Get your token at <a href=\"https://web.monobank.ua/\" target=\"_blank\">web.monobank.ua</a>" 118 119 msgstr "" 119 120 120 #: includes/class.gateway.php:2 41121 #: includes/class.gateway.php:268 121 122 msgid "Order prefix" 122 123 msgstr "" 123 124 124 #: includes/class.gateway.php:2 43125 #: includes/class.gateway.php:270 125 126 msgid "Prepended to order numbers to distinguish between different stores." 126 127 msgstr "" 127 128 128 #: includes/class.gateway.php:2 48129 #: includes/class.gateway.php:275 129 130 msgid "Checkout description" 130 131 msgstr "" 131 132 132 #: includes/class.gateway.php:2 53133 #: includes/class.gateway.php:280 133 134 msgid "Enable on checkout" 134 135 msgstr "" 135 136 136 #: includes/class.gateway.php:2 59137 #: includes/class.gateway.php:286 137 138 msgid "Checkout button width (px)" 138 139 msgstr "" 139 140 140 #: includes/class.gateway.php:2 63141 #: includes/class.gateway.php:290 141 142 msgid "Checkout button height (px)" 142 143 msgstr "" 143 144 144 #: includes/class.gateway.php:2 67145 #: includes/class.gateway.php:294 145 146 msgid "Enable on product details" 146 147 msgstr "" 147 148 148 #: includes/class.gateway.php: 273149 #: includes/class.gateway.php:300 149 150 msgid "Product details button width (px)" 150 151 msgstr "" 151 152 152 #: includes/class.gateway.php: 277153 #: includes/class.gateway.php:304 153 154 msgid "Product details button height (px)" 154 155 msgstr "" 155 156 156 #: includes/class.gateway.php: 281157 #: includes/class.gateway.php:308 157 158 msgid "Enable in cart" 158 159 msgstr "" 159 160 160 #: includes/class.gateway.php: 287161 #: includes/class.gateway.php:314 161 162 msgid "Cart button width (px)" 162 163 msgstr "" 163 164 164 #: includes/class.gateway.php: 291165 #: includes/class.gateway.php:318 165 166 msgid "Cart button height (px)" 166 167 msgstr "" 167 168 168 #: includes/class.gateway.php: 295169 #: includes/class.gateway.php:322 169 170 msgid "Button style" 170 171 msgstr "" 171 172 172 #: includes/class.gateway.php:3 01173 #: includes/class.gateway.php:328 173 174 msgid "Delivery options" 174 175 msgstr "" 175 176 176 #: includes/class.gateway.php:3 05177 #: includes/class.gateway.php:3 18177 #: includes/class.gateway.php:332 178 #: includes/class.gateway.php:345 178 179 msgid "Use Ctrl for multiple choices" 179 180 msgstr "" 180 181 181 #: includes/class.gateway.php:3 08182 #: includes/class.gateway.php:335 182 183 msgid "Free delivery from" 183 184 msgstr "" 184 185 185 #: includes/class.gateway.php:3 11186 #: includes/class.gateway.php:338 186 187 msgid "Free delivery from this order subtotal. Empty for paid delivery." 187 188 msgstr "" 188 189 189 #: includes/class.gateway.php:3 14190 #: includes/class.gateway.php:341 190 191 msgid "Payment methods" 191 192 msgstr "" 192 193 193 #: includes/class.gateway.php:3 21194 #: includes/class.gateway.php:348 194 195 msgid "Number of payments" 195 196 msgstr "" 196 197 197 #: includes/class.gateway.php:3 24198 #: includes/class.gateway.php:351 198 199 msgid "Number of payments for Purchase in parts." 199 200 msgstr "" 200 201 201 #: includes/class.gateway.php:3 27202 #: includes/class.gateway.php:354 202 203 msgid "Automatically complete paid monocheckout orders" 203 204 msgstr "" 204 205 205 #: includes/class.gateway.php:3 31206 #: includes/class.gateway.php:358 206 207 msgid "Paid orders will automatically be transitioned to Completed status. However \"Cash on delivery\" orders will not be closed automatically." 207 208 msgstr "" 208 209 209 #: includes/class.gateway.php:3 34210 #: includes/class.gateway.php:361 210 211 msgid "Automatically complete \"Cash on delivery\" orders" 211 212 msgstr "" 212 213 213 #: includes/class.gateway.php:3 38214 #: includes/class.gateway.php:365 214 215 msgid "Orders with payment type \"Cash on delivery\" will automatically be transitioned to Completed status." 215 216 msgstr "" 216 217 217 #: includes/class.gateway.php:3 41218 #: includes/class.gateway.php:368 218 219 msgid "Automatically fail unpaid orders" 219 220 msgstr "" 220 221 221 #: includes/class.gateway.php:3 45222 #: includes/class.gateway.php:372 222 223 msgid "mono orders that haven't been paid in 30 minutes will become failed. The check is performed for orders placed in the last hour only." 223 224 msgstr "" 224 225 225 #: includes/class.gateway.php:3 48226 #: includes/class.gateway.php:375 226 227 msgid "Base URL" 227 228 msgstr "" 228 229 229 #: includes/class.gateway.php:3 50230 #: includes/class.gateway.php:377 230 231 msgid "Base URL for mono checkout API." 231 232 msgstr "" 232 233 233 #: includes/class.gateway.php: 373234 #: includes/class.gateway.php:400 234 235 msgid "Pickup" 235 236 msgstr "" 236 237 237 #: includes/class.gateway.php: 374238 #: includes/class.gateway.php:401 238 239 msgid "Courier" 239 240 msgstr "" 240 241 241 #: includes/class.gateway.php: 375242 #: includes/class.gateway.php:402 242 243 msgid "Nova Poshta" 243 244 msgstr "" 244 245 245 #: includes/class.gateway.php: 376246 #: includes/class.gateway.php:403 246 247 msgid "NP Postbox" 247 248 msgstr "" 248 249 249 #: includes/class.gateway.php: 383250 #: includes/class.gateway.php:410 250 251 msgid "Card" 251 252 msgstr "" 252 253 253 #: includes/class.gateway.php: 385254 #: includes/class.gateway.php:412 254 255 msgid "Purchase in parts" 255 256 msgstr "" 256 257 257 #: includes/class.gateway.php:4 01258 #: includes/class.gateway.php:428 258 259 msgid "Pending payment" 259 260 msgstr "" 260 261 261 #: includes/class.gateway.php:4 25262 #: includes/class.gateway.php:452 262 263 msgid "Need help? Check out our FAQ or contact our support." 263 264 msgstr "" 264 265 265 #: includes/class.gateway.php:4 28266 #: includes/class.gateway.php:455 266 267 msgid "To get token, please, send request in your monobank app and then visit <a href=\"https://web.monobank.ua/\" target=\"_blank\">web.monobank.ua</a>" 267 268 msgstr "" 268 269 269 #: includes/class.gateway.php:4 29270 #: includes/class.gateway.php:456 270 271 msgid "More details on <a href=\"https://www.monobank.ua/\" target=\"_blank\">monobank.ua</a>" 271 272 msgstr "" 272 273 273 #: includes/class.gateway.php:4 30274 #: includes/class.gateway.php:457 274 275 msgid "Your callback URL: %s" 275 276 msgstr "" 276 277 277 #: includes/class.gateway.php:4 31278 #: includes/class.gateway.php:458 278 279 msgid "Your return URL: %s" 279 280 msgstr "" 280 281 281 #: includes/class.gateway.php:4 34282 #: includes/class.gateway.php:461 282 283 msgid "Get your monobank app now:" 283 284 msgstr "" 284 285 285 #: includes/class.gateway.php:4 54286 #: includes/class.gateway.php:481 286 287 msgid "Statuses of mono checkout orders:" 287 288 msgstr "" 288 289 289 #: includes/class.gateway.php:4 69290 #: includes/class.gateway.php:496 290 291 msgid "<strong>Important:</strong> mono checkout does not support orders with coupons." 291 292 msgstr "" 292 293 293 #: includes/class.gateway.php: 473294 #: includes/class.gateway.php:500 294 295 msgid "Settings" 295 296 msgstr "" 296 297 297 #: includes/class.gateway.php: 484298 #: includes/class.gateway.php:511 298 299 msgid "Frequent errors" 299 300 msgstr "" 300 301 301 #: includes/class.gateway.php: 486302 #: includes/class.gateway.php:6 61302 #: includes/class.gateway.php:513 303 #: includes/class.gateway.php:693 303 304 msgid "Fill in your mono checkout Token." 304 305 msgstr "" 305 306 306 #: includes/class.gateway.php: 487307 #: includes/class.gateway.php:514 307 308 msgid "Please, get your token at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 308 309 msgstr "" 309 310 310 #: includes/class.gateway.php: 488311 #: includes/class.gateway.php:6 66311 #: includes/class.gateway.php:515 312 #: includes/class.gateway.php:698 312 313 msgid "Check your mono checkout Token." 313 314 msgstr "" 314 315 315 #: includes/class.gateway.php: 489316 #: includes/class.gateway.php:516 316 317 msgid "Please, make sure you used correct token from <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 317 318 msgstr "" 318 319 319 #: includes/class.gateway.php: 490320 #: includes/class.gateway.php:517 320 321 msgid "Payment method X is not available for your store." 321 322 msgstr "" 322 323 323 #: includes/class.gateway.php: 491324 #: includes/class.gateway.php:518 324 325 msgid "Please, contact our support at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a> to enable corresponding payment method for your account. You can disable it temporarily to keep using mono checkout." 325 326 msgstr "" 326 327 327 #: includes/class.gateway.php: 492328 #: includes/class.gateway.php:519 328 329 msgid "Delivery method X is not available for your store." 329 330 msgstr "" 330 331 331 #: includes/class.gateway.php: 493332 #: includes/class.gateway.php:520 332 333 msgid "Please, contact our support at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a> to enable corresponding delivery method for your account. You can disable it temporarily to keep using mono checkout." 333 334 msgstr "" 334 335 335 #: includes/class.gateway.php: 494336 #: includes/class.gateway.php: 689336 #: includes/class.gateway.php:521 337 #: includes/class.gateway.php:721 337 338 msgid "Checkout is disabled in your account." 338 339 msgstr "" 339 340 340 #: includes/class.gateway.php: 495341 #: includes/class.gateway.php:522 341 342 msgid "Please, enable your checkout in your account at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 342 343 msgstr "" 343 344 344 #: includes/class.gateway.php:6 63345 #: includes/class.gateway.php: 668346 #: includes/class.gateway.php: 677347 #: includes/class.gateway.php: 686348 #: includes/class.gateway.php: 691345 #: includes/class.gateway.php:695 346 #: includes/class.gateway.php:700 347 #: includes/class.gateway.php:709 348 #: includes/class.gateway.php:718 349 #: includes/class.gateway.php:723 349 350 msgid "More info" 350 351 msgstr "" 351 352 352 #: includes/class.gateway.php: 675353 #: includes/class.gateway.php:707 353 354 msgid "Payment method \"%s\" is not available for your store." 354 355 msgstr "" 355 356 356 #: includes/class.gateway.php: 684357 #: includes/class.gateway.php:716 357 358 msgid "Delivery method \"%s\" is not available for your store." 358 359 msgstr "" 359 360 360 #: includes/class.gateway.php: 694361 #: includes/class.gateway.php:7 10362 #: includes/class.gateway.php:7 27361 #: includes/class.gateway.php:726 362 #: includes/class.gateway.php:742 363 #: includes/class.gateway.php:759 363 364 msgid "Payment error: %s" 364 365 msgstr "" 365 366 366 #: includes/class.gateway.php: 698367 #: includes/class.gateway.php:730 367 368 msgid "Wrong answer from mono checkout.<br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%s</pre>" 368 369 msgstr "" 369 370 370 #: includes/class.gateway.php:7 14371 #: includes/class.gateway.php:746 371 372 msgid "mono checkout declined order: %1$s<br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%2$s</pre>" 372 373 msgstr "" 373 374 374 #: includes/class.gateway.php:7 31375 #: includes/class.gateway.php:763 375 376 msgid "mono checkout declined order: %1$s (code: %2$s)<br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%3$s</pre>" 376 377 msgstr "" 377 378 378 #: includes/class.gateway.php:7 49379 #: includes/class.gateway.php:781 379 380 msgid "mono ID: <strong>%1$s</strong><br/><a href=\"%2$s\" target=\"_blank\">Checkout link</a><br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%3$s</pre>" 380 381 msgstr "" 381 382 382 #: includes/class.gateway.php:8 26383 #: includes/class.gateway.php:858 383 384 msgid "mono checkout status update:<strong>%1$s</strong><br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%2$s</pre>" 384 385 msgstr "" … … 416 417 msgid "General error" 417 418 msgstr "" 419 420 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:17 421 msgid "Additional payment methods" 422 msgstr "" 423 424 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:19 425 msgid "Select multiple payment methods that are allowed for this specific product in addition to the global ones." 426 msgstr "" 427 428 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:29 429 msgid "Additional shipping methods" 430 msgstr "" 431 432 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:31 433 msgid "Select multiple shipping methods that are allowed for this specific product in addition to the global ones." 434 msgstr "" -
mono-checkout/tags/1.10.0/mono.php
r3242725 r3249513 7 7 Plugin URI: https://checkout.mono.bank/woocomerce 8 8 Description: модуль Чекауту від monobank це спосіб автоматизувати процес оформлення покупки на вашому сайті. Доступний функціонал: предзаповнення даних отримувача, рекомендації по доставці та оплаті, всі доступні способи оплати від monobank: еквайринг, Покупка частинами та оплата при отриманні. Має бути підключений інтернет-еквайринг від monobank 9 Version: 1. 9.19 Version: 1.10.0 10 10 Requires at least: 5.8 11 11 Requires PHP: 7.4 … … 18 18 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 19 19 20 define( 'MONO_VERSION', '1. 9.1' );20 define( 'MONO_VERSION', '1.10.0' ); 21 21 define( 'MONO__MINIMUM_WP_VERSION', '5.8' ); 22 22 define( 'MONO__PLUGIN_FILE', __FILE__ ); -
mono-checkout/tags/1.10.0/readme.txt
r3242725 r3249513 4 4 Requires at least: 5.8 5 5 Tested up to: 6.7.2 6 Stable tag: 1. 9.16 Stable tag: 1.10.0 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 54 54 55 55 == Changelog == 56 57 = 1.10.0 = 58 * Індивідуальні методи оплати та доставки для товарів 56 59 57 60 = 1.9.1 = -
mono-checkout/trunk/includes/class.gateway.php
r3242725 r3249513 43 43 44 44 add_action( 'admin_enqueue_scripts', [$this, 'admin_scripts'] ); 45 46 add_filter( 'woocommerce_product_data_tabs', [ $this, 'product_data_tabs' ]); 47 add_action( 'woocommerce_product_data_panels', [ $this, 'product_data_panels' ]); 48 add_action( 'woocommerce_process_product_meta', [ $this, 'product_data_save' ]); 45 49 } 46 50 } … … 221 225 } 222 226 227 public function product_data_tabs( $tabs ) { 228 $tabs['monocheckout'] = [ 229 'label' => __( 'mono checkout', 'mono-checkout' ), 230 'target' => 'monocheckout_product_data', 231 'class' => array( ), 232 'priority' => 80, 233 ]; 234 return $tabs; 235 } 236 237 public function product_data_panels() { 238 global $post, $thepostid, $product_object; 239 include __DIR__ . '/../templates/wooommerce/admin/product/html-product-data-monocheckout.php'; 240 } 241 242 public function product_data_save($post_id) { 243 // Custom Product Text Field 244 $payment_method = $_POST['_monocheckout_payment_method']; 245 update_post_meta($post_id, '_monocheckout_payment_method', esc_attr(implode(',', $payment_method))); 246 $shipping_method = $_POST['_monocheckout_shipping_method']; 247 update_post_meta($post_id, '_monocheckout_shipping_method', esc_attr(implode(',', $shipping_method))); 248 } 249 223 250 public function init_form_fields() 224 251 { … … 368 395 } 369 396 370 p rotectedfunction getShippingOptions()397 public function getShippingOptions() 371 398 { 372 399 return [ … … 378 405 } 379 406 380 p rotectedfunction getPaymentMethods()407 public function getPaymentMethods() 381 408 { 382 409 return [ … … 590 617 $products = []; 591 618 $hasShipping = false; 619 $individualPaymentMethods = array_keys($this->getPaymentMethods()); 620 $individualShippingMethods = array_keys($this->getShippingOptions()); 592 621 foreach ($order->get_items() as $item) { 593 622 $count+= $item->get_quantity(); … … 606 635 "product_img_src" => $this->get_product_image($product), 607 636 ]; 637 $parent = wp_get_post_parent_id($product->get_id()); 608 638 if (!$product->is_virtual()) { 609 639 $hasShipping = true; 610 } 640 $individualShippingMethods = array_intersect($individualShippingMethods, self::get_product_shipping_options($parent?:$product->get_id())); 641 } else { 642 $individualShippingMethods = []; 643 } 644 $individualPaymentMethods = array_intersect($individualPaymentMethods, self::get_product_payment_options($parent?:$product->get_id())); 611 645 } 612 646 } … … 619 653 } 620 654 621 $delivery_methods = $this->get_option('delivery_methods');655 $delivery_methods = array_values(array_unique(array_merge($this->get_option('delivery_methods'), $individualShippingMethods))); 622 656 $free_delivery_from = $this->get_option('free_delivery_from'); 623 $payment_methods = $this->get_option('payment_methods');657 $payment_methods = array_values(array_unique(array_merge($this->get_option('payment_methods'), $individualPaymentMethods))); 624 658 $payments_number = $this->get_option('payments_number'); 625 659 … … 957 991 $order->save(); 958 992 } 993 994 public static function get_product_shipping_options( $product_id ) { 995 return explode(',', get_post_meta($product_id, '_monocheckout_shipping_method', true) ?: ''); 996 } 997 998 public static function get_product_payment_options( $product_id ) { 999 return explode(',', get_post_meta($product_id, '_monocheckout_payment_method', true) ?: ''); 1000 } 959 1001 } -
mono-checkout/trunk/languages/mono-checkout-uk.po
r3242725 r3249513 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "POT-Creation-Date: 2023-10-25T00:58:42+03:00\n" 13 "PO-Revision-Date: 2025-02- 18 07:51+0000\n"13 "PO-Revision-Date: 2025-02-28 07:55+0000\n" 14 14 "X-Generator: Loco https://localise.biz/\n" 15 15 "X-Domain: mono\n" … … 19 19 "X-Loco-Version: 2.6.6; wp-6.3.2" 20 20 21 #: includes/class.gateway.php:4 6921 #: includes/class.gateway.php:496 22 22 msgid "" 23 23 "<strong>Important:</strong> mono checkout does not support orders with " … … 25 25 msgstr "" 26 26 "<strong>Важливо:</strong> mono чекаут не підтримує замовлення з купонами." 27 28 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:17 29 msgid "Additional payment methods" 30 msgstr "Додаткові методи оплати" 31 32 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:29 33 msgid "Additional shipping methods" 34 msgstr "Додаткові методи доставки" 27 35 28 36 #: includes/class.mono.php:180 includes/class.mono.php:181 … … 30 38 msgstr "Відповідь API" 31 39 32 #: includes/class.gateway.php:2 3640 #: includes/class.gateway.php:263 33 41 #| msgid "" 34 42 #| "API token from monopay. Get your token at <a href=\"https://web.monobank." … … 41 49 "monobank.ua/\" target=\"_blank\">web.monobank.ua</a>" 42 50 43 #: includes/class.gateway.php:3 3451 #: includes/class.gateway.php:361 44 52 msgid "Automatically complete \"Cash on delivery\" orders" 45 53 msgstr "Автоматично закривати замовленням з оплатою при доставці" 46 54 47 #: includes/class.gateway.php:3 2755 #: includes/class.gateway.php:354 48 56 msgid "Automatically complete paid monocheckout orders" 49 57 msgstr "Автоматично ставити статус \"Виконано\" сплаченим замовленням" 50 58 51 #: includes/class.gateway.php:3 4159 #: includes/class.gateway.php:368 52 60 msgid "Automatically fail unpaid orders" 53 61 msgstr "Автоматично скасовувати несплачені замовлення" 54 62 55 #: includes/class.gateway.php:3 4863 #: includes/class.gateway.php:375 56 64 msgid "Base URL" 57 65 msgstr "Базовий URL" 58 66 59 #: includes/class.gateway.php:3 5067 #: includes/class.gateway.php:377 60 68 msgid "Base URL for mono checkout API." 61 69 msgstr "Базовий URL для API mono checkout" 62 70 63 #: includes/class.gateway.php: 29571 #: includes/class.gateway.php:322 64 72 msgid "Button style" 65 73 msgstr "Стиль кнопки" … … 69 77 msgstr "Оформити через mono checkout" 70 78 71 #: includes/class.gateway.php:9 379 #: includes/class.gateway.php:97 72 80 msgid "Call client" 73 81 msgstr "Передзвонити клієнту" 74 82 75 #: includes/class.gateway.php: 38383 #: includes/class.gateway.php:410 76 84 msgid "Card" 77 85 msgstr "Картка" 78 86 79 #: includes/class.gateway.php: 29187 #: includes/class.gateway.php:318 80 88 msgid "Cart button height (px)" 81 89 msgstr "Висота кнопки в кошику (px)" 82 90 83 #: includes/class.gateway.php: 28791 #: includes/class.gateway.php:314 84 92 msgid "Cart button width (px)" 85 93 msgstr "Ширина кнопки в кошику (px)" 86 94 87 #: includes/class.gateway.php: 488 includes/class.gateway.php:66695 #: includes/class.gateway.php:515 includes/class.gateway.php:698 88 96 msgid "Check your mono checkout Token." 89 97 msgstr "Будь-ласка, перевірте Токен чекауту для Вашого магазину." 90 98 91 #: includes/class.gateway.php:2 6399 #: includes/class.gateway.php:290 92 100 msgid "Checkout button height (px)" 93 101 msgstr "Висота кнопки на чекауті (px)" 94 102 95 #: includes/class.gateway.php:2 59103 #: includes/class.gateway.php:286 96 104 msgid "Checkout button width (px)" 97 105 msgstr "Ширина кнопки на чекауті (px)" 98 106 99 #: includes/class.gateway.php:2 48107 #: includes/class.gateway.php:275 100 108 msgid "Checkout description" 101 109 msgstr "Опис" 102 110 103 #: includes/class.gateway.php: 494 includes/class.gateway.php:689111 #: includes/class.gateway.php:521 includes/class.gateway.php:721 104 112 msgid "Checkout is disabled in your account." 105 113 msgstr "Чекаут відключений у Вашому аккаунті." 106 114 107 #: includes/class.gateway.php:11 2115 #: includes/class.gateway.php:116 108 116 msgid "City" 109 117 msgstr "Місто" 110 118 111 #: includes/class.gateway.php:10 0119 #: includes/class.gateway.php:104 112 120 msgid "Comments" 113 121 msgstr "Коментар" 114 122 115 #: includes/class.gateway.php:11 1 includes/class.gateway.php:113123 #: includes/class.gateway.php:115 includes/class.gateway.php:117 116 124 msgid "copy code" 117 125 msgstr "скопіювати код" 118 126 119 #: includes/class.gateway.php: 374127 #: includes/class.gateway.php:401 120 128 msgid "Courier" 121 129 msgstr "Кур'єр" 122 130 123 #: includes/class.gateway.php: 684131 #: includes/class.gateway.php:716 124 132 msgid "Delivery method \"%s\" is not available for your store." 125 133 msgstr "Спосіб доставки \"%s\" недоступний для Вашого магазину." 126 134 127 #: includes/class.gateway.php: 492135 #: includes/class.gateway.php:519 128 136 msgid "Delivery method X is not available for your store." 129 137 msgstr "Спосіб доставки X недоступний для Вашого магазину." 130 138 131 #: includes/class.gateway.php:3 01139 #: includes/class.gateway.php:328 132 140 msgid "Delivery options" 133 141 msgstr "Методи доставки" 134 142 135 #: includes/class.gateway.php: 281143 #: includes/class.gateway.php:308 136 144 msgid "Enable in cart" 137 145 msgstr "Відобразити в кошику" 138 146 139 #: includes/class.gateway.php:2 28147 #: includes/class.gateway.php:255 140 148 msgid "Enable module" 141 149 msgstr "Активувати модуль" 142 150 143 #: includes/class.gateway.php:2 53151 #: includes/class.gateway.php:280 144 152 msgid "Enable on checkout" 145 153 msgstr "Відобразити на чекауті" 146 154 147 #: includes/class.gateway.php:2 67155 #: includes/class.gateway.php:294 148 156 msgid "Enable on product details" 149 157 msgstr "Відобразити на деталях продукту" 150 158 151 #: includes/class.gateway.php: 486 includes/class.gateway.php:661159 #: includes/class.gateway.php:513 includes/class.gateway.php:693 152 160 msgid "Fill in your mono checkout Token." 153 161 msgstr "Будь-ласка, заповніть Токен чекауту для Вашого магазину." 154 162 155 #: includes/class.gateway.php:3 08163 #: includes/class.gateway.php:335 156 164 msgid "Free delivery from" 157 165 msgstr "Безкоштовна доставка від" 158 166 159 #: includes/class.gateway.php:3 11167 #: includes/class.gateway.php:338 160 168 msgid "Free delivery from this order subtotal. Empty for paid delivery." 161 169 msgstr "" … … 163 171 "доставки." 164 172 165 #: includes/class.gateway.php: 484173 #: includes/class.gateway.php:511 166 174 msgid "Frequent errors" 167 175 msgstr "Часті помилки" … … 171 179 msgstr "Загальна помилка" 172 180 173 #: includes/class.gateway.php:4 34181 #: includes/class.gateway.php:461 174 182 msgid "Get your monobank app now:" 175 183 msgstr "Скачайте додаток monobank" … … 192 200 193 201 #. Plugin Name of the plugin 202 #: includes/class.gateway.php:229 194 203 #| msgid "monobank checkout" 195 204 msgid "mono checkout" 196 205 msgstr "Оформлення через mono checkout" 197 206 198 #: includes/class.gateway.php:7 31207 #: includes/class.gateway.php:763 199 208 #| msgid "" 200 209 #| "monopay declined order: %1$s (code: %2$s)<br/><a class=\"mono-code-" … … 207 216 "code-toggle\">Відповідь API</a><pre class=\"mono-api-answer\">%3$s</pre>" 208 217 209 #: includes/class.gateway.php:7 14218 #: includes/class.gateway.php:746 210 219 #| msgid "" 211 220 #| "monopay declined order: %1$s<br/><a class=\"mono-code-toggle\">API " … … 222 231 msgstr "mono чекаут не підтримує замовлення з купонами" 223 232 224 #: includes/class.gateway.php:8 26233 #: includes/class.gateway.php:858 225 234 #| msgid "" 226 235 #| "monopay status update:<strong>%1$s</strong><br/><a class=\"mono-code-" … … 244 253 "cPanel</a>)" 245 254 246 #: includes/class.gateway.php:7 49255 #: includes/class.gateway.php:781 247 256 msgid "" 248 257 "mono ID: <strong>%1$s</strong><br/><a href=\"%2$s\" target=\"_blank\">" … … 254 263 "<pre class=\"mono-api-answer\">%3$s</pre>" 255 264 256 #: includes/class.gateway.php:3 45265 #: includes/class.gateway.php:372 257 266 msgid "" 258 267 "mono orders that haven't been paid in 30 minutes will become failed. The " … … 272 281 msgstr "monobank" 273 282 274 #: includes/class.gateway.php:4 29283 #: includes/class.gateway.php:456 275 284 msgid "" 276 285 "More details on <a href=\"https://www.monobank.ua/\" target=\"_blank\">" … … 280 289 "monobank.ua</a>" 281 290 282 #: includes/class.gateway.php:6 63 includes/class.gateway.php:668283 #: includes/class.gateway.php: 677 includes/class.gateway.php:686284 #: includes/class.gateway.php: 691291 #: includes/class.gateway.php:695 includes/class.gateway.php:700 292 #: includes/class.gateway.php:709 includes/class.gateway.php:718 293 #: includes/class.gateway.php:723 285 294 msgid "More info" 286 295 msgstr "Детальніше" 287 296 288 #: includes/class.gateway.php:4 25297 #: includes/class.gateway.php:452 289 298 msgid "Need help? Check out our FAQ or contact our support." 290 299 msgstr "Потрібна допомога? Подивіться наші ЧаПи або зверніться до підтримки." 291 300 292 #: includes/class.gateway.php:9 3301 #: includes/class.gateway.php:97 293 302 msgid "No" 294 303 msgstr "Ні" 295 304 296 #: includes/class.gateway.php:5 2 includes/class.gateway.php:83305 #: includes/class.gateway.php:56 includes/class.gateway.php:87 297 306 msgid "Not authorized" 298 307 msgstr "Не авторизоване" 299 308 300 #: includes/class.gateway.php: 57309 #: includes/class.gateway.php:61 301 310 msgid "Not authorized <span class=\"count\">(%s)</span>" 302 311 msgstr "Не авторизоване <span class=\"count\">(%s)</span>" 303 312 304 #: includes/class.gateway.php:6 0 includes/class.gateway.php:84313 #: includes/class.gateway.php:64 includes/class.gateway.php:88 305 314 msgid "Not confirmed" 306 315 msgstr "Не підтверджене" 307 316 308 #: includes/class.gateway.php:6 5317 #: includes/class.gateway.php:69 309 318 msgid "Not confirmed <span class=\"count\">(%s)</span>" 310 319 msgstr "Не підтверджене <span class=\"count\">(%s)</span>" 311 320 312 #: includes/class.gateway.php: 375321 #: includes/class.gateway.php:402 313 322 msgid "Nova Poshta" 314 323 msgstr "Нова Пошта" 315 324 316 #: includes/class.gateway.php: 376325 #: includes/class.gateway.php:403 317 326 msgid "NP Postbox" 318 327 msgstr "Поштомат НП" 319 328 320 #: includes/class.gateway.php:3 21329 #: includes/class.gateway.php:348 321 330 msgid "Number of payments" 322 331 msgstr "Кількість платежів" 323 332 324 #: includes/class.gateway.php:3 24333 #: includes/class.gateway.php:351 325 334 msgid "Number of payments for Purchase in parts." 326 335 msgstr "Кількість платежів в покупці частинами" 327 336 328 #: includes/class.gateway.php:2 41337 #: includes/class.gateway.php:268 329 338 msgid "Order prefix" 330 339 msgstr "Префікс замовлення" 331 340 332 #: includes/class.gateway.php:3 38341 #: includes/class.gateway.php:365 333 342 msgid "" 334 343 "Orders with payment type \"Cash on delivery\" will automatically be " … … 338 347 "\"Виконано\"." 339 348 340 #: includes/class.gateway.php:3 31349 #: includes/class.gateway.php:358 341 350 msgid "" 342 351 "Paid orders will automatically be transitioned to Completed status. However " … … 346 355 "Однак замовлення з оплатою при доставці не автоматично закриті." 347 356 348 #: includes/class.gateway.php: 694 includes/class.gateway.php:710349 #: includes/class.gateway.php:7 27357 #: includes/class.gateway.php:726 includes/class.gateway.php:742 358 #: includes/class.gateway.php:759 350 359 msgid "Payment error: %s" 351 360 msgstr "Помилка платежу: %s" 352 361 353 #: includes/class.gateway.php: 675362 #: includes/class.gateway.php:707 354 363 msgid "Payment method \"%s\" is not available for your store." 355 364 msgstr "Платіжний метод \"%s\" недоступний для Вашого магазину." 356 365 357 #: includes/class.gateway.php: 490366 #: includes/class.gateway.php:517 358 367 msgid "Payment method X is not available for your store." 359 368 msgstr "Платіжний метод X недоступний для Вашого магазину." 360 369 361 #: includes/class.gateway.php:3 14370 #: includes/class.gateway.php:341 362 371 msgid "Payment methods" 363 372 msgstr "Платіжні методи" 364 373 365 #: includes/class.gateway.php: 68 includes/class.gateway.php:85366 #: includes/class.gateway.php: 384374 #: includes/class.gateway.php:72 includes/class.gateway.php:89 375 #: includes/class.gateway.php:411 367 376 msgid "Payment on delivery" 368 377 msgstr "Оплата при отриманні" 369 378 370 #: includes/class.gateway.php:7 3379 #: includes/class.gateway.php:77 371 380 msgid "Payment on delivery <span class=\"count\">(%s)</span>" 372 381 msgstr "Оплата при отриманні <span class=\"count\">(%s)</span>" 373 382 374 #: includes/class.gateway.php:4 01383 #: includes/class.gateway.php:428 375 384 msgid "Pending payment" 376 385 msgstr "Очікування оплати" 377 386 378 #: includes/class.gateway.php: 373387 #: includes/class.gateway.php:400 379 388 msgid "Pickup" 380 389 msgstr "Самовивіз" 381 390 382 #: includes/class.gateway.php: 493391 #: includes/class.gateway.php:520 383 392 msgid "" 384 393 "Please, contact our support at <a href=\"https://web.monobank.ua\" " … … 392 401 "в налаштуваннях чекауту." 393 402 394 #: includes/class.gateway.php: 491403 #: includes/class.gateway.php:518 395 404 #| msgid "" 396 405 #| "Please, contact our support at <a href=\"https://web.monobank.ua\" " … … 407 416 "в налаштуваннях чекауту." 408 417 409 #: includes/class.gateway.php: 495418 #: includes/class.gateway.php:522 410 419 msgid "" 411 420 "Please, enable your checkout in your account at <a href=\"https://web." … … 415 424 "monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 416 425 417 #: includes/class.gateway.php: 487426 #: includes/class.gateway.php:514 418 427 msgid "" 419 428 "Please, get your token at <a href=\"https://web.monobank.ua\" " … … 423 432 "ua\" target=\"_blank\">web.monobank.ua</a>" 424 433 425 #: includes/class.gateway.php: 489434 #: includes/class.gateway.php:516 426 435 msgid "" 427 436 "Please, make sure you used correct token from <a href=\"https://web.monobank." … … 431 440 "href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 432 441 433 #: includes/class.gateway.php:2 43442 #: includes/class.gateway.php:270 434 443 msgid "Prepended to order numbers to distinguish between different stores." 435 444 msgstr "" 436 445 "Додається до номеру замовлення, щоб розрізняти замовлення з різних магазинів" 437 446 438 #: includes/class.gateway.php: 277447 #: includes/class.gateway.php:304 439 448 msgid "Product details button height (px)" 440 449 msgstr "Висота кнопки на деталях продукту (px)" 441 450 442 #: includes/class.gateway.php: 273451 #: includes/class.gateway.php:300 443 452 msgid "Product details button width (px)" 444 453 msgstr "Ширина кнопки на деталях продукту (px)" 445 454 446 #: includes/class.gateway.php: 385455 #: includes/class.gateway.php:412 447 456 msgid "Purchase in parts" 448 457 msgstr "Покупка частинами" 449 458 450 #: includes/class.gateway.php:11 0459 #: includes/class.gateway.php:114 451 460 msgid "Region" 452 461 msgstr "Область" 453 462 454 #: includes/class.gateway.php:473 463 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:19 464 msgid "" 465 "Select multiple payment methods that are allowed for this specific product " 466 "in addition to the global ones." 467 msgstr "" 468 "Оберіть платіжні методи для цього продукту, як доповнення до загальних " 469 "методів." 470 471 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:31 472 msgid "" 473 "Select multiple shipping methods that are allowed for this specific product " 474 "in addition to the global ones." 475 msgstr "" 476 "Оберіть методи доставки для цього продукту, як доповнення до загальних " 477 "методів." 478 479 #: includes/class.gateway.php:500 455 480 msgid "Settings" 456 481 msgstr "Налаштування" 457 482 458 #: includes/class.gateway.php:4 54483 #: includes/class.gateway.php:481 459 484 msgid "Statuses of mono checkout orders:" 460 485 msgstr "Статуси замовлень mono checkout:" 461 486 462 #: includes/class.gateway.php:1 39 includes/class.gateway.php:659487 #: includes/class.gateway.php:143 includes/class.gateway.php:691 463 488 msgid "Technical error" 464 489 msgstr "Технічна помилка" … … 468 493 msgstr "Цей платіжний метод не підтримує замовлення з купонами." 469 494 470 #: includes/class.gateway.php:4 28495 #: includes/class.gateway.php:455 471 496 msgid "" 472 497 "To get token, please, send request in your monobank app and then visit <a " … … 477 502 "web.monobank.ua</a>" 478 503 479 #: includes/class.gateway.php:2 34504 #: includes/class.gateway.php:261 480 505 msgid "Token" 481 506 msgstr "Токен" 482 507 483 #: includes/class.gateway.php:12 1 includes/class.gateway.php:171508 #: includes/class.gateway.php:125 includes/class.gateway.php:175 484 509 msgid "Update payment status" 485 510 msgstr "Оновити статус платежу" 486 511 487 #: includes/class.gateway.php:3 05 includes/class.gateway.php:318512 #: includes/class.gateway.php:332 includes/class.gateway.php:345 488 513 msgid "Use Ctrl for multiple choices" 489 514 msgstr "Натисніть Ctrl, щоб обрати декілька варіантів" 490 515 491 #: includes/class.gateway.php: 698516 #: includes/class.gateway.php:730 492 517 #| msgid "" 493 518 #| "Wrong answer from monopay.<br/><a class=\"mono-code-toggle\">API " … … 500 525 "Відповідь API</a><pre class=\"mono-api-answer\">%s</pre>" 501 526 502 #: includes/class.gateway.php:9 3527 #: includes/class.gateway.php:97 503 528 msgid "Yes" 504 529 msgstr "Так" 505 530 506 #: includes/class.gateway.php:4 30531 #: includes/class.gateway.php:457 507 532 msgid "Your callback URL: %s" 508 533 msgstr "Ваш URL колбеку: %s" 509 534 510 #: includes/class.gateway.php:4 31535 #: includes/class.gateway.php:458 511 536 msgid "Your return URL: %s" 512 537 msgstr "Ваш URL після успішної оплати (return URL): %s" -
mono-checkout/trunk/languages/mono-checkout.pot
r3242725 r3249513 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: mono checkout 1. 9.0\n"5 "Project-Id-Version: mono checkout 1.10.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mono\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-02- 18T07:46:55+00:00\n"12 "POT-Creation-Date: 2025-02-28T07:53:27+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.1\n" … … 16 16 17 17 #. Plugin Name of the plugin 18 #: includes/class.gateway.php:229 18 19 msgid "mono checkout" 19 20 msgstr "" … … 39 40 msgstr "" 40 41 41 #: includes/class.gateway.php:5 242 #: includes/class.gateway.php:8 342 #: includes/class.gateway.php:56 43 #: includes/class.gateway.php:87 43 44 msgid "Not authorized" 44 45 msgstr "" 45 46 46 #: includes/class.gateway.php: 5747 #: includes/class.gateway.php:61 47 48 msgid "Not authorized <span class=\"count\">(%s)</span>" 48 49 msgstr "" 49 50 50 #: includes/class.gateway.php:6 051 #: includes/class.gateway.php:8 451 #: includes/class.gateway.php:64 52 #: includes/class.gateway.php:88 52 53 msgid "Not confirmed" 53 54 msgstr "" 54 55 55 #: includes/class.gateway.php:6 556 #: includes/class.gateway.php:69 56 57 msgid "Not confirmed <span class=\"count\">(%s)</span>" 57 58 msgstr "" 58 59 59 #: includes/class.gateway.php: 6860 #: includes/class.gateway.php:8 561 #: includes/class.gateway.php: 38460 #: includes/class.gateway.php:72 61 #: includes/class.gateway.php:89 62 #: includes/class.gateway.php:411 62 63 msgid "Payment on delivery" 63 64 msgstr "" 64 65 65 #: includes/class.gateway.php:7 366 #: includes/class.gateway.php:77 66 67 msgid "Payment on delivery <span class=\"count\">(%s)</span>" 67 68 msgstr "" 68 69 69 #: includes/class.gateway.php:9 370 #: includes/class.gateway.php:97 70 71 msgid "Call client" 71 72 msgstr "" 72 73 73 #: includes/class.gateway.php:9 374 #: includes/class.gateway.php:97 74 75 msgid "Yes" 75 76 msgstr "" 76 77 77 #: includes/class.gateway.php:9 378 #: includes/class.gateway.php:97 78 79 msgid "No" 79 80 msgstr "" 80 81 81 #: includes/class.gateway.php:10 082 #: includes/class.gateway.php:104 82 83 msgid "Comments" 83 84 msgstr "" 84 85 85 #: includes/class.gateway.php:11 086 #: includes/class.gateway.php:114 86 87 msgid "Region" 87 88 msgstr "" 88 89 89 #: includes/class.gateway.php:11 190 #: includes/class.gateway.php:11 390 #: includes/class.gateway.php:115 91 #: includes/class.gateway.php:117 91 92 msgid "copy code" 92 93 msgstr "" 93 94 94 #: includes/class.gateway.php:11 295 #: includes/class.gateway.php:116 95 96 msgid "City" 96 97 msgstr "" 97 98 98 #: includes/class.gateway.php:12 199 #: includes/class.gateway.php:17 199 #: includes/class.gateway.php:125 100 #: includes/class.gateway.php:175 100 101 msgid "Update payment status" 101 102 msgstr "" 102 103 103 #: includes/class.gateway.php:1 39104 #: includes/class.gateway.php:6 59104 #: includes/class.gateway.php:143 105 #: includes/class.gateway.php:691 105 106 msgid "Technical error" 106 107 msgstr "" 107 108 108 #: includes/class.gateway.php:2 28109 #: includes/class.gateway.php:255 109 110 msgid "Enable module" 110 111 msgstr "" 111 112 112 #: includes/class.gateway.php:2 34113 #: includes/class.gateway.php:261 113 114 msgid "Token" 114 115 msgstr "" 115 116 116 #: includes/class.gateway.php:2 36117 #: includes/class.gateway.php:263 117 118 msgid "API token from mono checkout. Get your token at <a href=\"https://web.monobank.ua/\" target=\"_blank\">web.monobank.ua</a>" 118 119 msgstr "" 119 120 120 #: includes/class.gateway.php:2 41121 #: includes/class.gateway.php:268 121 122 msgid "Order prefix" 122 123 msgstr "" 123 124 124 #: includes/class.gateway.php:2 43125 #: includes/class.gateway.php:270 125 126 msgid "Prepended to order numbers to distinguish between different stores." 126 127 msgstr "" 127 128 128 #: includes/class.gateway.php:2 48129 #: includes/class.gateway.php:275 129 130 msgid "Checkout description" 130 131 msgstr "" 131 132 132 #: includes/class.gateway.php:2 53133 #: includes/class.gateway.php:280 133 134 msgid "Enable on checkout" 134 135 msgstr "" 135 136 136 #: includes/class.gateway.php:2 59137 #: includes/class.gateway.php:286 137 138 msgid "Checkout button width (px)" 138 139 msgstr "" 139 140 140 #: includes/class.gateway.php:2 63141 #: includes/class.gateway.php:290 141 142 msgid "Checkout button height (px)" 142 143 msgstr "" 143 144 144 #: includes/class.gateway.php:2 67145 #: includes/class.gateway.php:294 145 146 msgid "Enable on product details" 146 147 msgstr "" 147 148 148 #: includes/class.gateway.php: 273149 #: includes/class.gateway.php:300 149 150 msgid "Product details button width (px)" 150 151 msgstr "" 151 152 152 #: includes/class.gateway.php: 277153 #: includes/class.gateway.php:304 153 154 msgid "Product details button height (px)" 154 155 msgstr "" 155 156 156 #: includes/class.gateway.php: 281157 #: includes/class.gateway.php:308 157 158 msgid "Enable in cart" 158 159 msgstr "" 159 160 160 #: includes/class.gateway.php: 287161 #: includes/class.gateway.php:314 161 162 msgid "Cart button width (px)" 162 163 msgstr "" 163 164 164 #: includes/class.gateway.php: 291165 #: includes/class.gateway.php:318 165 166 msgid "Cart button height (px)" 166 167 msgstr "" 167 168 168 #: includes/class.gateway.php: 295169 #: includes/class.gateway.php:322 169 170 msgid "Button style" 170 171 msgstr "" 171 172 172 #: includes/class.gateway.php:3 01173 #: includes/class.gateway.php:328 173 174 msgid "Delivery options" 174 175 msgstr "" 175 176 176 #: includes/class.gateway.php:3 05177 #: includes/class.gateway.php:3 18177 #: includes/class.gateway.php:332 178 #: includes/class.gateway.php:345 178 179 msgid "Use Ctrl for multiple choices" 179 180 msgstr "" 180 181 181 #: includes/class.gateway.php:3 08182 #: includes/class.gateway.php:335 182 183 msgid "Free delivery from" 183 184 msgstr "" 184 185 185 #: includes/class.gateway.php:3 11186 #: includes/class.gateway.php:338 186 187 msgid "Free delivery from this order subtotal. Empty for paid delivery." 187 188 msgstr "" 188 189 189 #: includes/class.gateway.php:3 14190 #: includes/class.gateway.php:341 190 191 msgid "Payment methods" 191 192 msgstr "" 192 193 193 #: includes/class.gateway.php:3 21194 #: includes/class.gateway.php:348 194 195 msgid "Number of payments" 195 196 msgstr "" 196 197 197 #: includes/class.gateway.php:3 24198 #: includes/class.gateway.php:351 198 199 msgid "Number of payments for Purchase in parts." 199 200 msgstr "" 200 201 201 #: includes/class.gateway.php:3 27202 #: includes/class.gateway.php:354 202 203 msgid "Automatically complete paid monocheckout orders" 203 204 msgstr "" 204 205 205 #: includes/class.gateway.php:3 31206 #: includes/class.gateway.php:358 206 207 msgid "Paid orders will automatically be transitioned to Completed status. However \"Cash on delivery\" orders will not be closed automatically." 207 208 msgstr "" 208 209 209 #: includes/class.gateway.php:3 34210 #: includes/class.gateway.php:361 210 211 msgid "Automatically complete \"Cash on delivery\" orders" 211 212 msgstr "" 212 213 213 #: includes/class.gateway.php:3 38214 #: includes/class.gateway.php:365 214 215 msgid "Orders with payment type \"Cash on delivery\" will automatically be transitioned to Completed status." 215 216 msgstr "" 216 217 217 #: includes/class.gateway.php:3 41218 #: includes/class.gateway.php:368 218 219 msgid "Automatically fail unpaid orders" 219 220 msgstr "" 220 221 221 #: includes/class.gateway.php:3 45222 #: includes/class.gateway.php:372 222 223 msgid "mono orders that haven't been paid in 30 minutes will become failed. The check is performed for orders placed in the last hour only." 223 224 msgstr "" 224 225 225 #: includes/class.gateway.php:3 48226 #: includes/class.gateway.php:375 226 227 msgid "Base URL" 227 228 msgstr "" 228 229 229 #: includes/class.gateway.php:3 50230 #: includes/class.gateway.php:377 230 231 msgid "Base URL for mono checkout API." 231 232 msgstr "" 232 233 233 #: includes/class.gateway.php: 373234 #: includes/class.gateway.php:400 234 235 msgid "Pickup" 235 236 msgstr "" 236 237 237 #: includes/class.gateway.php: 374238 #: includes/class.gateway.php:401 238 239 msgid "Courier" 239 240 msgstr "" 240 241 241 #: includes/class.gateway.php: 375242 #: includes/class.gateway.php:402 242 243 msgid "Nova Poshta" 243 244 msgstr "" 244 245 245 #: includes/class.gateway.php: 376246 #: includes/class.gateway.php:403 246 247 msgid "NP Postbox" 247 248 msgstr "" 248 249 249 #: includes/class.gateway.php: 383250 #: includes/class.gateway.php:410 250 251 msgid "Card" 251 252 msgstr "" 252 253 253 #: includes/class.gateway.php: 385254 #: includes/class.gateway.php:412 254 255 msgid "Purchase in parts" 255 256 msgstr "" 256 257 257 #: includes/class.gateway.php:4 01258 #: includes/class.gateway.php:428 258 259 msgid "Pending payment" 259 260 msgstr "" 260 261 261 #: includes/class.gateway.php:4 25262 #: includes/class.gateway.php:452 262 263 msgid "Need help? Check out our FAQ or contact our support." 263 264 msgstr "" 264 265 265 #: includes/class.gateway.php:4 28266 #: includes/class.gateway.php:455 266 267 msgid "To get token, please, send request in your monobank app and then visit <a href=\"https://web.monobank.ua/\" target=\"_blank\">web.monobank.ua</a>" 267 268 msgstr "" 268 269 269 #: includes/class.gateway.php:4 29270 #: includes/class.gateway.php:456 270 271 msgid "More details on <a href=\"https://www.monobank.ua/\" target=\"_blank\">monobank.ua</a>" 271 272 msgstr "" 272 273 273 #: includes/class.gateway.php:4 30274 #: includes/class.gateway.php:457 274 275 msgid "Your callback URL: %s" 275 276 msgstr "" 276 277 277 #: includes/class.gateway.php:4 31278 #: includes/class.gateway.php:458 278 279 msgid "Your return URL: %s" 279 280 msgstr "" 280 281 281 #: includes/class.gateway.php:4 34282 #: includes/class.gateway.php:461 282 283 msgid "Get your monobank app now:" 283 284 msgstr "" 284 285 285 #: includes/class.gateway.php:4 54286 #: includes/class.gateway.php:481 286 287 msgid "Statuses of mono checkout orders:" 287 288 msgstr "" 288 289 289 #: includes/class.gateway.php:4 69290 #: includes/class.gateway.php:496 290 291 msgid "<strong>Important:</strong> mono checkout does not support orders with coupons." 291 292 msgstr "" 292 293 293 #: includes/class.gateway.php: 473294 #: includes/class.gateway.php:500 294 295 msgid "Settings" 295 296 msgstr "" 296 297 297 #: includes/class.gateway.php: 484298 #: includes/class.gateway.php:511 298 299 msgid "Frequent errors" 299 300 msgstr "" 300 301 301 #: includes/class.gateway.php: 486302 #: includes/class.gateway.php:6 61302 #: includes/class.gateway.php:513 303 #: includes/class.gateway.php:693 303 304 msgid "Fill in your mono checkout Token." 304 305 msgstr "" 305 306 306 #: includes/class.gateway.php: 487307 #: includes/class.gateway.php:514 307 308 msgid "Please, get your token at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 308 309 msgstr "" 309 310 310 #: includes/class.gateway.php: 488311 #: includes/class.gateway.php:6 66311 #: includes/class.gateway.php:515 312 #: includes/class.gateway.php:698 312 313 msgid "Check your mono checkout Token." 313 314 msgstr "" 314 315 315 #: includes/class.gateway.php: 489316 #: includes/class.gateway.php:516 316 317 msgid "Please, make sure you used correct token from <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 317 318 msgstr "" 318 319 319 #: includes/class.gateway.php: 490320 #: includes/class.gateway.php:517 320 321 msgid "Payment method X is not available for your store." 321 322 msgstr "" 322 323 323 #: includes/class.gateway.php: 491324 #: includes/class.gateway.php:518 324 325 msgid "Please, contact our support at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a> to enable corresponding payment method for your account. You can disable it temporarily to keep using mono checkout." 325 326 msgstr "" 326 327 327 #: includes/class.gateway.php: 492328 #: includes/class.gateway.php:519 328 329 msgid "Delivery method X is not available for your store." 329 330 msgstr "" 330 331 331 #: includes/class.gateway.php: 493332 #: includes/class.gateway.php:520 332 333 msgid "Please, contact our support at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a> to enable corresponding delivery method for your account. You can disable it temporarily to keep using mono checkout." 333 334 msgstr "" 334 335 335 #: includes/class.gateway.php: 494336 #: includes/class.gateway.php: 689336 #: includes/class.gateway.php:521 337 #: includes/class.gateway.php:721 337 338 msgid "Checkout is disabled in your account." 338 339 msgstr "" 339 340 340 #: includes/class.gateway.php: 495341 #: includes/class.gateway.php:522 341 342 msgid "Please, enable your checkout in your account at <a href=\"https://web.monobank.ua\" target=\"_blank\">web.monobank.ua</a>" 342 343 msgstr "" 343 344 344 #: includes/class.gateway.php:6 63345 #: includes/class.gateway.php: 668346 #: includes/class.gateway.php: 677347 #: includes/class.gateway.php: 686348 #: includes/class.gateway.php: 691345 #: includes/class.gateway.php:695 346 #: includes/class.gateway.php:700 347 #: includes/class.gateway.php:709 348 #: includes/class.gateway.php:718 349 #: includes/class.gateway.php:723 349 350 msgid "More info" 350 351 msgstr "" 351 352 352 #: includes/class.gateway.php: 675353 #: includes/class.gateway.php:707 353 354 msgid "Payment method \"%s\" is not available for your store." 354 355 msgstr "" 355 356 356 #: includes/class.gateway.php: 684357 #: includes/class.gateway.php:716 357 358 msgid "Delivery method \"%s\" is not available for your store." 358 359 msgstr "" 359 360 360 #: includes/class.gateway.php: 694361 #: includes/class.gateway.php:7 10362 #: includes/class.gateway.php:7 27361 #: includes/class.gateway.php:726 362 #: includes/class.gateway.php:742 363 #: includes/class.gateway.php:759 363 364 msgid "Payment error: %s" 364 365 msgstr "" 365 366 366 #: includes/class.gateway.php: 698367 #: includes/class.gateway.php:730 367 368 msgid "Wrong answer from mono checkout.<br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%s</pre>" 368 369 msgstr "" 369 370 370 #: includes/class.gateway.php:7 14371 #: includes/class.gateway.php:746 371 372 msgid "mono checkout declined order: %1$s<br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%2$s</pre>" 372 373 msgstr "" 373 374 374 #: includes/class.gateway.php:7 31375 #: includes/class.gateway.php:763 375 376 msgid "mono checkout declined order: %1$s (code: %2$s)<br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%3$s</pre>" 376 377 msgstr "" 377 378 378 #: includes/class.gateway.php:7 49379 #: includes/class.gateway.php:781 379 380 msgid "mono ID: <strong>%1$s</strong><br/><a href=\"%2$s\" target=\"_blank\">Checkout link</a><br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%3$s</pre>" 380 381 msgstr "" 381 382 382 #: includes/class.gateway.php:8 26383 #: includes/class.gateway.php:858 383 384 msgid "mono checkout status update:<strong>%1$s</strong><br/><a class=\"mono-code-toggle\">API answer</a><pre class=\"mono-api-answer\">%2$s</pre>" 384 385 msgstr "" … … 416 417 msgid "General error" 417 418 msgstr "" 419 420 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:17 421 msgid "Additional payment methods" 422 msgstr "" 423 424 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:19 425 msgid "Select multiple payment methods that are allowed for this specific product in addition to the global ones." 426 msgstr "" 427 428 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:29 429 msgid "Additional shipping methods" 430 msgstr "" 431 432 #: templates/wooommerce/admin/product/html-product-data-monocheckout.php:31 433 msgid "Select multiple shipping methods that are allowed for this specific product in addition to the global ones." 434 msgstr "" -
mono-checkout/trunk/mono.php
r3242725 r3249513 7 7 Plugin URI: https://checkout.mono.bank/woocomerce 8 8 Description: модуль Чекауту від monobank це спосіб автоматизувати процес оформлення покупки на вашому сайті. Доступний функціонал: предзаповнення даних отримувача, рекомендації по доставці та оплаті, всі доступні способи оплати від monobank: еквайринг, Покупка частинами та оплата при отриманні. Має бути підключений інтернет-еквайринг від monobank 9 Version: 1. 9.19 Version: 1.10.0 10 10 Requires at least: 5.8 11 11 Requires PHP: 7.4 … … 18 18 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 19 19 20 define( 'MONO_VERSION', '1. 9.1' );20 define( 'MONO_VERSION', '1.10.0' ); 21 21 define( 'MONO__MINIMUM_WP_VERSION', '5.8' ); 22 22 define( 'MONO__PLUGIN_FILE', __FILE__ ); -
mono-checkout/trunk/readme.txt
r3242725 r3249513 4 4 Requires at least: 5.8 5 5 Tested up to: 6.7.2 6 Stable tag: 1. 9.16 Stable tag: 1.10.0 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 54 54 55 55 == Changelog == 56 57 = 1.10.0 = 58 * Індивідуальні методи оплати та доставки для товарів 56 59 57 60 = 1.9.1 =
Note: See TracChangeset
for help on using the changeset viewer.