Changeset 2670562
- Timestamp:
- 02/01/2022 12:46:47 PM (3 years ago)
- 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 2 2 background-color: #eee; 3 3 } 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{ 6 6 color: red; 7 7 } -
woo-price-per-unit/trunk/assets/JS/woo-ppu-admin.js
r2599970 r2670562 7 7 jQuery(document).ready(function($){ 8 8 var inputWeight = $( '#shipping_product_data input#_weight' ); 9 var inputCustNumOfUnits = $( 'input#_mcmp_ppu_cust_num_of_units_override' );10 9 ShowNoWeightWarn(); 11 10 inputWeight.on( "change",function(){ShowNoWeightWarn()}); 12 inputCustNumOfUnits.on( "change",function(){ShowNoWeightWarn()});13 11 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(); 16 14 } else { 17 $( " .admin-warn-no-weight" ).hide();15 $( "#mcmp_ppu_options .admin-warn-no-weight" ).hide(); 18 16 } 19 17 } -
woo-price-per-unit/trunk/includes/product-settings.php
r2305604 r2670562 12 12 echo '<div id="mcmp_ppu_options" class="panel woocommerce_options_panel">'; 13 13 // 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>'; 14 17 echo '<p>'; 15 18 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 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: WooCommerce Price Per Unit 2.0. 8\n"3 "Project-Id-Version: WooCommerce Price Per Unit 2.0.9\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 202 1-09-16 15:18+0200\n"6 "PO-Revision-Date: 202 1-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" 7 7 "Last-Translator: administrator <[email protected]>\n" 8 8 "Language-Team: Czech\n" … … 319 319 320 320 #: includes/product-settings.php:15 321 msgid "" 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." 324 msgstr "" 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 321 330 msgid "Settings for Price per unit plug-in" 322 331 msgstr "Nastavení pro plug-in Price per Unit" 323 332 324 #: includes/product-settings.php: 17333 #: includes/product-settings.php:20 325 334 msgid "In PRO version you will find here settings for individual products" 326 335 msgstr "Ve verzi PRO zde naleznete nastavení pro jednotlivé produkty" 327 336 328 #: includes/product-settings.php: 18337 #: includes/product-settings.php:21 329 338 msgid "You can buy the plug-in here " 330 339 msgstr "Plug-in můžete zakoupit zde " 331 340 332 #: includes/product-settings.php:2 0341 #: includes/product-settings.php:23 333 342 msgid "Price per Unit PRO" 334 343 msgstr "Price Per Unit PRO" 335 344 336 #: includes/product-settings.php:2 3345 #: includes/product-settings.php:26 337 346 msgid "Features you will find here:" 338 347 msgstr "Možnosti, které zde naleznete:" 339 348 340 #: includes/product-settings.php:2 4349 #: includes/product-settings.php:27 341 350 msgid "- Change of display for product page" 342 351 msgstr "- Změna zobrazení na stránce produktu" 343 352 344 #: includes/product-settings.php:2 5353 #: includes/product-settings.php:28 345 354 msgid "- Change of display for shop page" 346 355 msgstr "- Změna zobrazení na stránce obchodu" 347 356 348 #: includes/product-settings.php:2 6357 #: includes/product-settings.php:29 349 358 msgid "- Individual text for recalculated price" 350 359 msgstr "- Individuální text pro přepočtenou cenu" 351 360 352 #: includes/product-settings.php: 27361 #: includes/product-settings.php:30 353 362 msgid "" 354 363 "- Option to display price for different weight unit (kg,g,lbs,oz) from shop " … … 359 368 "produkty v gramech" 360 369 361 #: includes/product-settings.php: 28370 #: includes/product-settings.php:31 362 371 msgid "" 363 372 "- Option for entering weight, different from shipping weight. Example: use " … … 367 376 "použijete váhu pro dopravu jako brutto a přepočet se provede na netto váze." 368 377 369 #: includes/product-settings.php: 29378 #: includes/product-settings.php:32 370 379 msgid "" 371 380 "- Option for displaying recalculation for different number of units. " … … 375 384 "zobrazit cenu za 5 kg" 376 385 377 #: includes/product-settings.php:3 3386 #: includes/product-settings.php:36 378 387 msgid "New plug-in available - Sell by Weight PRO" 379 388 msgstr "Nový plug-in k dispozici - Sell by Weight PRO" 380 389 381 #: includes/product-settings.php:3 5390 #: includes/product-settings.php:38 382 391 msgid "" 383 392 "This plug-in allows you to sell easily products, where you want to have " … … 387 396 "na výběr z několika váhových možností při stejné ceně za kilogram." 388 397 389 #: includes/product-settings.php:3 6398 #: includes/product-settings.php:39 390 399 msgid "" 391 400 "It works in a similar way as Variable products, but it is easier to manage " … … 397 406 "možnosti se vypočítají automaticky." 398 407 399 #: includes/product-settings.php: 37408 #: includes/product-settings.php:40 400 409 msgid "More information can be found here " 401 410 msgstr "Více informací najdete zde " 402 411 403 #: includes/product-settings.php: 39412 #: includes/product-settings.php:42 404 413 msgid "Sell by Weight PRO" 405 414 msgstr "Sell by Weight PRO" 406 415 407 #: includes/product-settings.php:4 2416 #: includes/product-settings.php:45 408 417 msgid "Note for old version users:" 409 418 msgstr "Poznámka pro uživaatele starší verze:" 410 419 411 #: includes/product-settings.php:4 3420 #: includes/product-settings.php:46 412 421 msgid "" 413 422 "All your settings from this page are still in database, if you upgrade to " … … 417 426 "upgrade na PRO verzi vše bude opět přístupné." 418 427 419 #: includes/product-settings.php:4 4428 #: includes/product-settings.php:47 420 429 msgid "" 421 430 "If you are not interested in buying PRO version and still want to use the " … … 425 434 "této stránky prosím proveďte downgrade na volnou verzi 1.9.3." 426 435 427 #: includes/product-settings.php:4 6436 #: includes/product-settings.php:49 428 437 msgid "Download here." 429 438 msgstr "Ke stažení zde." -
woo-price-per-unit/trunk/languages/woo-price-per-unit.pot
r2599972 r2670562 4 4 msgid "" 5 5 msgstr "" 6 "Project-Id-Version: WooCommerce Price Per Unit 2.0. 8\n"7 "POT-Creation-Date: 202 1-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" 8 8 "PO-Revision-Date: 2017-04-06 16:00-0500\n" 9 9 "Last-Translator: Martin Mechura\n" … … 254 254 255 255 #: includes/product-settings.php:15 256 msgid "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." 257 msgstr "" 258 259 #: includes/product-settings.php:18 256 260 msgid "Settings for Price per unit plug-in" 257 261 msgstr "" 258 262 259 #: includes/product-settings.php: 17263 #: includes/product-settings.php:20 260 264 msgid "In PRO version you will find here settings for individual products" 261 265 msgstr "" 262 266 263 #: includes/product-settings.php: 18267 #: includes/product-settings.php:21 264 268 msgid "You can buy the plug-in here " 265 269 msgstr "" 266 270 267 #: includes/product-settings.php:2 0271 #: includes/product-settings.php:23 268 272 msgid "Price per Unit PRO" 269 273 msgstr "" 270 274 271 #: includes/product-settings.php:2 3275 #: includes/product-settings.php:26 272 276 msgid "Features you will find here:" 273 277 msgstr "" 274 278 275 #: includes/product-settings.php:2 4279 #: includes/product-settings.php:27 276 280 msgid "- Change of display for product page" 277 281 msgstr "" 278 282 279 #: includes/product-settings.php:2 5283 #: includes/product-settings.php:28 280 284 msgid "- Change of display for shop page" 281 285 msgstr "" 282 286 283 #: includes/product-settings.php:2 6287 #: includes/product-settings.php:29 284 288 msgid "- Individual text for recalculated price" 285 289 msgstr "" 286 290 287 #: includes/product-settings.php: 27291 #: includes/product-settings.php:30 288 292 msgid "- Option to display price for different weight unit (kg,g,lbs,oz) from shop default. Example: shop in kg and some products in grams" 289 293 msgstr "" 290 294 291 #: includes/product-settings.php: 28295 #: includes/product-settings.php:31 292 296 msgid "- Option for entering weight, different from shipping weight. Example: use shipping weight as gross and recalculate per net weight." 293 297 msgstr "" 294 298 295 #: includes/product-settings.php: 29299 #: includes/product-settings.php:32 296 300 msgid "- Option for displaying recalculation for different number of units. Example: You can display price per 5kg" 297 301 msgstr "" 298 302 299 #: includes/product-settings.php:3 3303 #: includes/product-settings.php:36 300 304 msgid "New plug-in available - Sell by Weight PRO" 301 305 msgstr "" 302 306 303 #: includes/product-settings.php:3 5307 #: includes/product-settings.php:38 304 308 msgid "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." 305 309 msgstr "" 306 310 307 #: includes/product-settings.php:3 6311 #: includes/product-settings.php:39 308 312 msgid "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." 309 313 msgstr "" 310 314 311 #: includes/product-settings.php: 37315 #: includes/product-settings.php:40 312 316 msgid "More information can be found here " 313 317 msgstr "" 314 318 315 #: includes/product-settings.php: 39319 #: includes/product-settings.php:42 316 320 msgid "Sell by Weight PRO" 317 321 msgstr "" 318 322 319 #: includes/product-settings.php:4 2323 #: includes/product-settings.php:45 320 324 msgid "Note for old version users:" 321 325 msgstr "" 322 326 323 #: includes/product-settings.php:4 3327 #: includes/product-settings.php:46 324 328 msgid "All your settings from this page are still in database, if you upgrade to PRO version it will be available again." 325 329 msgstr "" 326 330 327 #: includes/product-settings.php:4 4331 #: includes/product-settings.php:47 328 332 msgid "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." 329 333 msgstr "" 330 334 331 #: includes/product-settings.php:4 6335 #: includes/product-settings.php:49 332 336 msgid "Download here." 333 337 msgstr "" -
woo-price-per-unit/trunk/readme.txt
r2599970 r2670562 2 2 Contributors: mechuram 3 3 Tags: woocommerce, price, weight, price customization 4 Stable tag: 2.0. 84 Stable tag: 2.0.9 5 5 Requires PHP: 7.0 6 Tested up to: 5. 8.16 Tested up to: 5.9.0 7 7 Requires at least: 4.4 8 8 … … 79 79 80 80 **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 81 86 82 87 **2.0.8** … … 215 220 == Changelog == 216 221 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 217 227 = 2.0.8 = 218 228 - Bug-fix - Do not display additional text on empty price … … 314 324 315 325 == 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 316 331 317 332 = 2.0.8 = -
woo-price-per-unit/trunk/woo-price-per-unit.php
r2599970 r2670562 4 4 Plugin URI: https://mechcomp.cz/price-per-unit-pro/ 5 5 Description: 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. 86 Version: 2.0.9 7 7 Author: Martin Mechura 8 8 Author URI: http://mechcomp.cz 9 9 Text Domain: woo-price-per-unit 10 WC tested up to: 5.6.010 WC tested up to: 6.1.1 11 11 WC requires at least: 3.0 12 12
Note: See TracChangeset
for help on using the changeset viewer.