Plugin Directory

Changeset 2670562


Ignore:
Timestamp:
02/01/2022 12:46:47 PM (3 years ago)
Author:
mechuram
Message:

Version 2.0.9

Location:
woo-price-per-unit/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • woo-price-per-unit/trunk/assets/CSS/woo-ppu-admin.css

    r2269779 r2670562  
    22    background-color: #eee;
    33}
    4 .admin-warn-cust-units,
    5 .admin-warn-no-weight{
     4#mcmp_ppu_options .admin-warn-cust-units,
     5#mcmp_ppu_options .admin-warn-no-weight{
    66    color: red;
    77}
  • woo-price-per-unit/trunk/assets/JS/woo-ppu-admin.js

    r2599970 r2670562  
    77jQuery(document).ready(function($){
    88    var inputWeight = $( '#shipping_product_data input#_weight' );
    9     var inputCustNumOfUnits = $( 'input#_mcmp_ppu_cust_num_of_units_override' );
    109    ShowNoWeightWarn();
    1110    inputWeight.on( "change",function(){ShowNoWeightWarn()});
    12     inputCustNumOfUnits.on( "change",function(){ShowNoWeightWarn()});
    1311    function ShowNoWeightWarn() {
    14         if ( inputWeight.val() == "" && inputCustNumOfUnits.val() == "") {
    15             $( ".admin-warn-no-weight" ).show();
     12        if ( inputWeight.val() == "" ) {
     13            $( "#mcmp_ppu_options .admin-warn-no-weight" ).show();
    1614        } else {
    17             $( ".admin-warn-no-weight" ).hide();
     15            $( "#mcmp_ppu_options .admin-warn-no-weight" ).hide();
    1816        }
    1917    }
  • woo-price-per-unit/trunk/includes/product-settings.php

    r2305604 r2670562  
    1212echo '<div id="mcmp_ppu_options" class="panel woocommerce_options_panel">';
    1313// mcmp_ppu fields will be created here.
     14    echo '<p class="admin-warn-no-weight mcmp-product-edit-warn">';
     15        echo '<span>'.esc_html__('Warning: This product has no weight set. The price per unit will not be shown unless the weight is set on Shipping tab. Please check it.', 'woo-price-per-unit') . '</span>';
     16    echo '</p>';
    1417    echo '<p>';
    1518        echo '<span class="section-heading">' . esc_html__('Settings for Price per unit plug-in', 'woo-price-per-unit') . '</span></br>';
  • woo-price-per-unit/trunk/languages/woo-price-per-unit-cs_CZ.po

    r2599972 r2670562  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WooCommerce Price Per Unit 2.0.8\n"
     3"Project-Id-Version: WooCommerce Price Per Unit 2.0.9\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2021-09-16 15:18+0200\n"
    6 "PO-Revision-Date: 2021-09-16 15:19+0200\n"
     5"POT-Creation-Date: 2022-02-01 13:28+0100\n"
     6"PO-Revision-Date: 2022-02-01 13:32+0100\n"
    77"Last-Translator: administrator <[email protected]>\n"
    88"Language-Team: Czech\n"
     
    319319
    320320#: includes/product-settings.php:15
     321msgid ""
     322"Warning: This product has no weight set. The price per unit will not be "
     323"shown unless the weight is set on Shipping tab. Please check it."
     324msgstr ""
     325"Varování: Tento produkt nemá nastavenou váhu. Cena za jednotku nebude "
     326"zobrazena, dokud nenastavíte váhu na záložce Doprava. Prosím o "
     327"překontrolování."
     328
     329#: includes/product-settings.php:18
    321330msgid "Settings for Price per unit plug-in"
    322331msgstr "Nastavení pro plug-in Price per Unit"
    323332
    324 #: includes/product-settings.php:17
     333#: includes/product-settings.php:20
    325334msgid "In PRO version you will find here settings for individual products"
    326335msgstr "Ve verzi PRO zde naleznete nastavení pro jednotlivé produkty"
    327336
    328 #: includes/product-settings.php:18
     337#: includes/product-settings.php:21
    329338msgid "You can buy the plug-in here "
    330339msgstr "Plug-in můžete zakoupit zde "
    331340
    332 #: includes/product-settings.php:20
     341#: includes/product-settings.php:23
    333342msgid "Price per Unit PRO"
    334343msgstr "Price Per Unit PRO"
    335344
    336 #: includes/product-settings.php:23
     345#: includes/product-settings.php:26
    337346msgid "Features you will find here:"
    338347msgstr "Možnosti, které zde naleznete:"
    339348
    340 #: includes/product-settings.php:24
     349#: includes/product-settings.php:27
    341350msgid "- Change of display for product page"
    342351msgstr "- Změna zobrazení na stránce produktu"
    343352
    344 #: includes/product-settings.php:25
     353#: includes/product-settings.php:28
    345354msgid "- Change of display for shop page"
    346355msgstr "- Změna zobrazení na stránce obchodu"
    347356
    348 #: includes/product-settings.php:26
     357#: includes/product-settings.php:29
    349358msgid "- Individual text for recalculated price"
    350359msgstr "- Individuální text pro přepočtenou cenu"
    351360
    352 #: includes/product-settings.php:27
     361#: includes/product-settings.php:30
    353362msgid ""
    354363"- Option to display price for different weight unit (kg,g,lbs,oz) from shop "
     
    359368"produkty v gramech"
    360369
    361 #: includes/product-settings.php:28
     370#: includes/product-settings.php:31
    362371msgid ""
    363372"- Option for entering weight, different from shipping weight. Example: use "
     
    367376"použijete váhu pro dopravu jako brutto a přepočet se provede na netto váze."
    368377
    369 #: includes/product-settings.php:29
     378#: includes/product-settings.php:32
    370379msgid ""
    371380"- Option for displaying recalculation for different number of units. "
     
    375384"zobrazit cenu za 5 kg"
    376385
    377 #: includes/product-settings.php:33
     386#: includes/product-settings.php:36
    378387msgid "New plug-in available - Sell by Weight PRO"
    379388msgstr "Nový plug-in k dispozici - Sell by Weight PRO"
    380389
    381 #: includes/product-settings.php:35
     390#: includes/product-settings.php:38
    382391msgid ""
    383392"This plug-in allows you to sell easily products, where you want to have "
     
    387396"na výběr z několika váhových možností při stejné ceně za kilogram."
    388397
    389 #: includes/product-settings.php:36
     398#: includes/product-settings.php:39
    390399msgid ""
    391400"It works in a similar way as Variable products, but it is easier to manage "
     
    397406"možnosti se vypočítají automaticky."
    398407
    399 #: includes/product-settings.php:37
     408#: includes/product-settings.php:40
    400409msgid "More information can be found here "
    401410msgstr "Více informací najdete zde "
    402411
    403 #: includes/product-settings.php:39
     412#: includes/product-settings.php:42
    404413msgid "Sell by Weight PRO"
    405414msgstr "Sell by Weight PRO"
    406415
    407 #: includes/product-settings.php:42
     416#: includes/product-settings.php:45
    408417msgid "Note for old version users:"
    409418msgstr "Poznámka pro uživaatele starší verze:"
    410419
    411 #: includes/product-settings.php:43
     420#: includes/product-settings.php:46
    412421msgid ""
    413422"All your settings from this page are still in database, if you upgrade to "
     
    417426"upgrade na PRO verzi vše bude opět přístupné."
    418427
    419 #: includes/product-settings.php:44
     428#: includes/product-settings.php:47
    420429msgid ""
    421430"If you are not interested in buying PRO version and still want to use the "
     
    425434"této stránky prosím proveďte downgrade na volnou verzi 1.9.3."
    426435
    427 #: includes/product-settings.php:46
     436#: includes/product-settings.php:49
    428437msgid "Download here."
    429438msgstr "Ke stažení zde."
  • woo-price-per-unit/trunk/languages/woo-price-per-unit.pot

    r2599972 r2670562  
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: WooCommerce Price Per Unit 2.0.8\n"
    7 "POT-Creation-Date: 2021-09-16 15:18+0200\n"
     6"Project-Id-Version: WooCommerce Price Per Unit 2.0.9\n"
     7"POT-Creation-Date: 2022-02-01 13:28+0100\n"
    88"PO-Revision-Date: 2017-04-06 16:00-0500\n"
    99"Last-Translator: Martin Mechura\n"
     
    254254
    255255#: includes/product-settings.php:15
     256msgid "Warning: This product has no weight set. The price per unit will not be shown unless the weight is set on Shipping tab. Please check it."
     257msgstr ""
     258
     259#: includes/product-settings.php:18
    256260msgid "Settings for Price per unit plug-in"
    257261msgstr ""
    258262
    259 #: includes/product-settings.php:17
     263#: includes/product-settings.php:20
    260264msgid "In PRO version you will find here settings for individual products"
    261265msgstr ""
    262266
    263 #: includes/product-settings.php:18
     267#: includes/product-settings.php:21
    264268msgid "You can buy the plug-in here "
    265269msgstr ""
    266270
    267 #: includes/product-settings.php:20
     271#: includes/product-settings.php:23
    268272msgid "Price per Unit PRO"
    269273msgstr ""
    270274
    271 #: includes/product-settings.php:23
     275#: includes/product-settings.php:26
    272276msgid "Features you will find here:"
    273277msgstr ""
    274278
    275 #: includes/product-settings.php:24
     279#: includes/product-settings.php:27
    276280msgid "- Change of display for product page"
    277281msgstr ""
    278282
    279 #: includes/product-settings.php:25
     283#: includes/product-settings.php:28
    280284msgid "- Change of display for shop page"
    281285msgstr ""
    282286
    283 #: includes/product-settings.php:26
     287#: includes/product-settings.php:29
    284288msgid "- Individual text for recalculated price"
    285289msgstr ""
    286290
    287 #: includes/product-settings.php:27
     291#: includes/product-settings.php:30
    288292msgid "- Option to display price for different weight unit (kg,g,lbs,oz) from shop default. Example: shop in kg and some products in grams"
    289293msgstr ""
    290294
    291 #: includes/product-settings.php:28
     295#: includes/product-settings.php:31
    292296msgid "- Option for entering weight, different from shipping weight. Example: use shipping weight as gross and recalculate per net weight."
    293297msgstr ""
    294298
    295 #: includes/product-settings.php:29
     299#: includes/product-settings.php:32
    296300msgid "- Option for displaying recalculation for different number of units. Example: You can display price per 5kg"
    297301msgstr ""
    298302
    299 #: includes/product-settings.php:33
     303#: includes/product-settings.php:36
    300304msgid "New plug-in available - Sell by Weight PRO"
    301305msgstr ""
    302306
    303 #: includes/product-settings.php:35
     307#: includes/product-settings.php:38
    304308msgid "This plug-in allows you to sell easily products, where you want to have several weight option to sell at the same price for kilogram."
    305309msgstr ""
    306310
    307 #: includes/product-settings.php:36
     311#: includes/product-settings.php:39
    308312msgid "It works in a similar way as Variable products, but it is easier to manage because you will enter the price only once and the options price is calculated automatically."
    309313msgstr ""
    310314
    311 #: includes/product-settings.php:37
     315#: includes/product-settings.php:40
    312316msgid "More information can be found here "
    313317msgstr ""
    314318
    315 #: includes/product-settings.php:39
     319#: includes/product-settings.php:42
    316320msgid "Sell by Weight PRO"
    317321msgstr ""
    318322
    319 #: includes/product-settings.php:42
     323#: includes/product-settings.php:45
    320324msgid "Note for old version users:"
    321325msgstr ""
    322326
    323 #: includes/product-settings.php:43
     327#: includes/product-settings.php:46
    324328msgid "All your settings from this page are still in database, if you upgrade to PRO version it will be available again."
    325329msgstr ""
    326330
    327 #: includes/product-settings.php:44
     331#: includes/product-settings.php:47
    328332msgid "If you are not interested in buying PRO version and still want to use the old features, please downgrade to free version 1.9.3."
    329333msgstr ""
    330334
    331 #: includes/product-settings.php:46
     335#: includes/product-settings.php:49
    332336msgid "Download here."
    333337msgstr ""
  • woo-price-per-unit/trunk/readme.txt

    r2599970 r2670562  
    22Contributors: mechuram
    33Tags: woocommerce, price, weight, price customization
    4 Stable tag: 2.0.8
     4Stable tag: 2.0.9
    55Requires PHP: 7.0
    6 Tested up to: 5.8.1
     6Tested up to: 5.9.0
    77Requires at least: 4.4
    88
     
    7979 
    8080**Changelog**
     81
     82**2.0.9**
     83- Improvement - Warning displayed when no weight is set
     84- Compatibility with WooCommerce 6.1.1
     85- Compatibility with Wordpress 5.9.0
    8186
    8287**2.0.8**
     
    215220== Changelog ==
    216221
     222= 2.0.9 =
     223- Improvement - Warning displayed when no weight is set
     224- Compatibility with WooCommerce 6.1.1
     225- Compatibility with Wordpress 5.9.0
     226
    217227= 2.0.8 =
    218228- Bug-fix - Do not display additional text on empty price
     
    314324
    315325== Upgrade Notice ==
     326
     327= 2.0.9 =
     328- Improvement - Warning displayed when no weight is set
     329- Compatibility with WooCommerce 6.1.1
     330- Compatibility with Wordpress 5.9.0
    316331
    317332= 2.0.8 =
  • woo-price-per-unit/trunk/woo-price-per-unit.php

    r2599970 r2670562  
    44Plugin URI: https://mechcomp.cz/price-per-unit-pro/
    55Description: WooCommerce Price Per Unit allows the user to show prices recalculated per units(weight) and do some customization to the look of the prices
    6 Version: 2.0.8
     6Version: 2.0.9
    77Author: Martin Mechura
    88Author URI: http://mechcomp.cz
    99Text Domain: woo-price-per-unit
    10 WC tested up to: 5.6.0
     10WC tested up to: 6.1.1
    1111WC requires at least: 3.0
    1212
Note: See TracChangeset for help on using the changeset viewer.