Changeset 3750789
- Timestamp:
- 10/16/2026 04:27:11 PM (5 weeks ago)
- Location:
- totals-report-for-woocommerce/trunk
- Files:
-
- 63 added
- 12 deleted
- 6 edited
-
README.md (deleted)
-
assets/css/admin.css (added)
-
assets/css/index.php (deleted)
-
assets/css/trwctotals-admin.css (deleted)
-
assets/fonts (added)
-
assets/fonts/OFL.txt (added)
-
assets/fonts/ibm-plex-sans-greek-400-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-greek-500-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-greek-600-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-latin-400-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-latin-500-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-latin-600-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 (added)
-
assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 (added)
-
assets/index.php (deleted)
-
assets/js/admin.js (added)
-
assets/js/index.php (deleted)
-
assets/js/trwctotals-admin.js (deleted)
-
includes/Admin (added)
-
includes/Admin/AdminPage.php (added)
-
includes/Admin/DashboardWidget.php (added)
-
includes/Admin/Format.php (added)
-
includes/Admin/PluginsScreen.php (added)
-
includes/Admin/ReportView.php (added)
-
includes/Admin/SettingsController.php (added)
-
includes/Admin/SettingsView.php (added)
-
includes/Admin/SnapshotsView.php (added)
-
includes/Admin/views (added)
-
includes/Admin/views/missing-cost.php (added)
-
includes/Admin/views/report-table.php (added)
-
includes/Admin/views/report.php (added)
-
includes/Admin/views/settings.php (added)
-
includes/Admin/views/snapshots.php (added)
-
includes/Admin/views/widget.php (added)
-
includes/Capability.php (added)
-
includes/Data (added)
-
includes/Data/Aggregator.php (added)
-
includes/Data/Cogs.php (added)
-
includes/Data/Filters.php (added)
-
includes/Data/ReportBuilder.php (added)
-
includes/Data/StockQuery.php (added)
-
includes/Data/StockRules.php (added)
-
includes/Data/Terms.php (added)
-
includes/Email (added)
-
includes/Email/EmailReport.php (added)
-
includes/Email/views (added)
-
includes/Email/views/email-html.php (added)
-
includes/Export (added)
-
includes/Export/CsvWriter.php (added)
-
includes/Export/ExportController.php (added)
-
includes/Export/InventoryList.php (added)
-
includes/Export/Summary.php (added)
-
includes/Export/XmlWriter.php (added)
-
includes/Install.php (added)
-
includes/Notices.php (added)
-
includes/Plugin.php (added)
-
includes/Settings.php (added)
-
includes/Snapshots (added)
-
includes/Snapshots/Repository.php (added)
-
includes/Snapshots/Runner.php (added)
-
includes/Snapshots/Scheduler.php (added)
-
includes/Snapshots/SnapshotSource.php (added)
-
includes/Snapshots/SnapshotsController.php (added)
-
includes/Upgrade.php (added)
-
includes/class-trwc-report-admin.php (deleted)
-
includes/class-trwc-report-export.php (deleted)
-
includes/class-trwc-report.php (deleted)
-
includes/index.php (deleted)
-
index.php (modified) (1 diff)
-
languages/index.php (modified) (1 diff)
-
languages/totals-report-for-woocommerce-el-f98be19bec7bc848ce3ed383c60037c1.json (added)
-
languages/totals-report-for-woocommerce-el.l10n.php (added)
-
languages/totals-report-for-woocommerce-el.mo (added)
-
languages/totals-report-for-woocommerce-el.po (added)
-
languages/totals-report-for-woocommerce-el_GR.mo (deleted)
-
languages/totals-report-for-woocommerce-el_GR.po (deleted)
-
languages/totals-report-for-woocommerce.pot (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
totals-report-for-woocommerce.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
totals-report-for-woocommerce/trunk/index.php
r3279294 r3750789 1 1 <?php 2 // Silence is golden. 2 /** 3 * Silence is golden. 4 * 5 * @package BigDrop\TotalsReport 6 */ -
totals-report-for-woocommerce/trunk/languages/index.php
r3279294 r3750789 1 1 <?php 2 // Silence is golden. 2 /** 3 * Silence is golden. 4 * 5 * @package BigDrop\TotalsReport 6 */ -
totals-report-for-woocommerce/trunk/languages/totals-report-for-woocommerce.pot
r3279294 r3750789 1 # Copyright (C) 202 4BigDrop.gr1 # Copyright (C) 2026 BigDrop.gr 2 2 # This file is distributed under the GPL-2.0-or-later. 3 3 msgid "" 4 4 msgstr "" 5 "Project- Version: 1.0.2\n"6 "Report-Msgid-Bugs-To: https:// bigdrop.gr/support\n"7 "Last-Translator: BigDrop Team <support@bigdrop.gr>\n"8 "Language-Team: Greek <support@bigdrop.gr>\n"5 "Project-Id-Version: Totals Report for WooCommerce 2.0.0\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/totals-report-for-woocommerce/\n" 7 "Last-Translator: BigDrop.gr\n" 8 "Language-Team: BigDrop.gr\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 4-04-10T12:00:00+00:00\n"13 "PO-Revision-Date: 2024-04-10T12:00:00+00:00\n"14 "X-Generator: Poedit\n"12 "POT-Creation-Date: 2026-10-16T14:23:44+02:00\n" 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: totals-report-for-woocommerce\n" 16 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 17 18 # Admin Menu 16 17 #. Plugin Name of the plugin 18 #: totals-report-for-woocommerce.php 19 msgid "Totals Report for WooCommerce" 20 msgstr "" 21 22 #. Plugin URI of the plugin 23 #: totals-report-for-woocommerce.php 24 msgid "https://bigdrop.gr/totals-report-for-woocommerce" 25 msgstr "" 26 27 #. Description of the plugin 28 #: totals-report-for-woocommerce.php 29 msgid "Stock totals and stock value by category or tag, year-end inventory snapshots, and exports your accountant can open in Excel." 30 msgstr "" 31 32 #. Author of the plugin 33 #: totals-report-for-woocommerce.php 34 msgid "BigDrop.gr" 35 msgstr "" 36 37 #. Author URI of the plugin 38 #: totals-report-for-woocommerce.php 39 msgid "https://bigdrop.gr" 40 msgstr "" 41 42 #: includes/Admin/AdminPage.php:42 43 #: includes/Admin/AdminPage.php:43 44 #: includes/Admin/views/report.php:42 45 #: includes/Admin/views/settings.php:27 46 #: includes/Admin/views/snapshots.php:35 19 47 msgid "Totals Report" 20 48 msgstr "" 21 49 22 # Page Titles 23 msgid "Totals Report for WooCommerce" 24 msgstr "" 25 26 # Report Sections 27 msgid "Inventory Totals" 28 msgstr "" 29 30 msgid "Product Types" 31 msgstr "" 32 33 msgid "Product Categories" 34 msgstr "" 35 36 # Export Buttons 37 msgid "Export Report" 38 msgstr "" 39 40 msgid "Export as CSV" 41 msgstr "" 42 43 msgid "Export as JSON" 44 msgstr "" 45 46 msgid "Export as XML" 47 msgstr "" 48 49 # Metric Labels 50 msgid "Total Products" 51 msgstr "" 52 53 msgid "In Stock Products" 54 msgstr "" 55 56 msgid "Out of Stock Products" 57 msgstr "" 58 59 msgid "Low Stock Products" 60 msgstr "" 61 62 msgid "On Backorder Products" 63 msgstr "" 64 65 msgid "Variable Products" 66 msgstr "" 67 68 msgid "Total Variations" 69 msgstr "" 70 71 msgid "Total Stock Quantity" 72 msgstr "" 73 74 # Column Headers 75 msgid "Metric" 76 msgstr "" 77 78 msgid "Value" 79 msgstr "" 80 81 msgid "Product Type" 82 msgstr "" 83 84 msgid "Count" 85 msgstr "" 86 50 #: includes/Admin/AdminPage.php:138 51 #: includes/Admin/PluginsScreen.php:38 52 msgid "Report" 53 msgstr "" 54 55 #: includes/Admin/AdminPage.php:139 56 #: includes/Admin/views/snapshots.php:119 57 msgid "Snapshots" 58 msgstr "" 59 60 #: includes/Admin/AdminPage.php:140 61 #: includes/Admin/PluginsScreen.php:39 62 msgid "Settings" 63 msgstr "" 64 65 #: includes/Admin/AdminPage.php:142 66 msgid "Totals Report sections" 67 msgstr "" 68 69 #: includes/Admin/DashboardWidget.php:131 70 msgid "Stock at a glance" 71 msgstr "" 72 73 #. translators: %s: technical error message 74 #: includes/Admin/DashboardWidget.php:156 75 #: includes/Admin/ReportView.php:54 76 #, php-format 77 msgid "The report could not be calculated: %s" 78 msgstr "" 79 80 #. translators: %s: a number 81 #: includes/Admin/Format.php:107 82 #: includes/Admin/Format.php:118 83 #, php-format 84 msgid "%s%%" 85 msgstr "" 86 87 #. translators: date and time format for snapshots, see https://www.php.net/manual/datetime.format.php 88 #: includes/Admin/Format.php:129 89 msgid "j M Y, H:i" 90 msgstr "" 91 92 #. translators: long date and time format, see https://www.php.net/manual/datetime.format.php 93 #: includes/Admin/Format.php:140 94 msgid "j F Y \\a\\t H:i" 95 msgstr "" 96 97 #: includes/Admin/Format.php:150 98 msgid "In stock" 99 msgstr "" 100 101 #: includes/Admin/Format.php:151 102 msgid "Low stock" 103 msgstr "" 104 105 #: includes/Admin/Format.php:152 106 msgid "On backorder" 107 msgstr "" 108 109 #: includes/Admin/Format.php:153 110 msgid "Out of stock" 111 msgstr "" 112 113 #: includes/Admin/Format.php:154 114 msgid "Not managed" 115 msgstr "" 116 117 #: includes/Admin/PluginsScreen.php:56 118 msgid "Support" 119 msgstr "" 120 121 #: includes/Admin/PluginsScreen.php:57 122 msgid "Documentation" 123 msgstr "" 124 125 #: includes/Admin/ReportView.php:43 126 #: includes/Export/ExportController.php:80 127 msgid "This snapshot does not exist or is not complete yet." 128 msgstr "" 129 130 #: includes/Admin/ReportView.php:188 131 msgid "At or below their low-stock threshold" 132 msgstr "" 133 134 #: includes/Admin/ReportView.php:190 135 msgid "Above their low-stock threshold" 136 msgstr "" 137 138 #. translators: %s: number of stock items 139 #: includes/Admin/ReportView.php:194 140 #, php-format 141 msgid "Ordered beyond stock · %s item below zero" 142 msgid_plural "Ordered beyond stock · %s items below zero" 143 msgstr[0] "" 144 msgstr[1] "" 145 146 #: includes/Admin/ReportView.php:198 147 msgid "Nothing left to sell" 148 msgstr "" 149 150 #: includes/Admin/ReportView.php:200 151 msgid "Stock not tracked, so units count as 0" 152 msgstr "" 153 154 #. translators: %s: number of products 155 #: includes/Admin/ReportView.php:205 156 #, php-format 157 msgid "%s grouped or external product left out" 158 msgid_plural "%s grouped and external products left out" 159 msgstr[0] "" 160 msgstr[1] "" 161 162 #: includes/Admin/ReportView.php:209 163 msgid "A variable product counts once" 164 msgstr "" 165 166 #. translators: %s: average number of units 167 #: includes/Admin/ReportView.php:225 168 #, php-format 169 msgid "About %s unit per product" 170 msgid_plural "About %s units per product" 171 msgstr[0] "" 172 msgstr[1] "" 173 174 #. translators: %s: number of products 175 #: includes/Admin/ReportView.php:231 176 #, php-format 177 msgid "Across %s product with managed stock" 178 msgid_plural "Across %s products with managed stock" 179 msgstr[0] "" 180 msgstr[1] "" 181 182 #: includes/Admin/ReportView.php:243 183 #: includes/Admin/views/report.php:185 184 msgid "All products" 185 msgstr "" 186 187 #. translators: 1: minimum units, 2: maximum units 188 #: includes/Admin/ReportView.php:259 189 #, php-format 190 msgid "%1$s–%2$s unit" 191 msgid_plural "%1$s–%2$s units" 192 msgstr[0] "" 193 msgstr[1] "" 194 195 #. translators: %s: minimum units 196 #: includes/Admin/ReportView.php:263 197 #, php-format 198 msgid "at least %s unit" 199 msgid_plural "at least %s units" 200 msgstr[0] "" 201 msgstr[1] "" 202 203 #. translators: %s: maximum units 204 #: includes/Admin/ReportView.php:266 205 #, php-format 206 msgid "up to %s unit" 207 msgid_plural "up to %s units" 208 msgstr[0] "" 209 msgstr[1] "" 210 211 #: includes/Admin/SettingsController.php:41 212 msgid "Settings saved, except:" 213 msgstr "" 214 215 #: includes/Admin/SettingsController.php:43 216 msgid "Settings saved." 217 msgstr "" 218 219 #. translators: %s: time 220 #: includes/Admin/SnapshotsView.php:62 221 #, php-format 222 msgid "Today, %s" 223 msgstr "" 224 225 #: includes/Admin/SnapshotsView.php:75 226 msgid "Scheduled" 227 msgstr "" 228 229 #: includes/Admin/SnapshotsView.php:78 230 msgid "Unknown user" 231 msgstr "" 232 233 #: includes/Admin/SnapshotsView.php:90 234 msgid "Year-end inventory count." 235 msgstr "" 236 237 #: includes/Admin/SnapshotsView.php:94 238 msgid "Also taken at the end of each month." 239 msgstr "" 240 241 #: includes/Admin/SnapshotsView.php:94 242 msgid "Taken at the end of each month." 243 msgstr "" 244 245 #: includes/Admin/SnapshotsView.php:96 246 msgid "Also taken at the end of each quarter." 247 msgstr "" 248 249 #: includes/Admin/SnapshotsView.php:96 250 msgid "Taken at the end of each quarter." 251 msgstr "" 252 253 #. translators: %s: timezone name, e.g. Athens 254 #: includes/Admin/SnapshotsView.php:99 255 #, php-format 256 msgid "Times follow the site timezone (%s)." 257 msgstr "" 258 259 #. translators: %s: number of stock items 260 #: includes/Admin/SnapshotsView.php:111 261 #, php-format 262 msgid "Running… %s item so far" 263 msgid_plural "Running… %s items so far" 264 msgstr[0] "" 265 msgstr[1] "" 266 267 #. translators: %s: number of snapshots 268 #: includes/Admin/SnapshotsView.php:145 269 #, php-format 270 msgid "%s kept" 271 msgid_plural "%s kept" 272 msgstr[0] "" 273 msgstr[1] "" 274 275 #. translators: short date format, see https://www.php.net/manual/datetime.format.php 276 #: includes/Admin/SnapshotsView.php:149 277 #: includes/Admin/views/settings.php:193 278 msgid "j M Y" 279 msgstr "" 280 281 #. translators: %s: date 282 #: includes/Admin/SnapshotsView.php:151 283 #, php-format 284 msgid "oldest %s" 285 msgstr "" 286 287 #: includes/Admin/SnapshotsView.php:155 288 msgid "kept until you delete them" 289 msgstr "" 290 291 #. translators: %s: number of years 292 #: includes/Admin/SnapshotsView.php:157 293 #, php-format 294 msgid "kept for %s year" 295 msgid_plural "kept for %s years" 296 msgstr[0] "" 297 msgstr[1] "" 298 299 #: includes/Admin/views/missing-cost.php:29 300 msgid "Products without cost" 301 msgstr "" 302 303 #: includes/Admin/views/missing-cost.php:30 304 msgid "These products have units in stock but no cost in WooCommerce, so they are left out of the value at cost." 305 msgstr "" 306 307 #: includes/Admin/views/missing-cost.php:35 308 msgid "Back to the report" 309 msgstr "" 310 311 #. translators: %s: snapshot date and time 312 #: includes/Admin/views/missing-cost.php:48 313 #: includes/Admin/views/report.php:125 314 #, php-format 315 msgid "You are viewing the snapshot of %s" 316 msgstr "" 317 318 #: includes/Admin/views/missing-cost.php:50 319 msgid "Edit opens the product as it is today." 320 msgstr "" 321 322 #: includes/Admin/views/missing-cost.php:52 323 #: includes/Admin/views/report.php:130 324 msgid "Back to live report" 325 msgstr "" 326 327 #. translators: %s: number of products 328 #: includes/Admin/views/missing-cost.php:63 329 #, php-format 330 msgid "%s product without cost" 331 msgid_plural "%s products without cost" 332 msgstr[0] "" 333 msgstr[1] "" 334 335 #: includes/Admin/views/missing-cost.php:66 336 msgid "Sorted by units, high to low" 337 msgstr "" 338 339 #: includes/Admin/views/missing-cost.php:71 340 #: includes/Admin/views/report.php:217 341 msgid "Every product with units in stock has a cost." 342 msgstr "" 343 344 #: includes/Admin/views/missing-cost.php:78 345 #: includes/Export/InventoryList.php:89 346 msgid "Product" 347 msgstr "" 348 349 #: includes/Admin/views/missing-cost.php:79 350 #: includes/Export/InventoryList.php:88 351 msgid "SKU" 352 msgstr "" 353 354 #: includes/Admin/views/missing-cost.php:80 355 msgid "Type" 356 msgstr "" 357 358 #: includes/Admin/views/missing-cost.php:81 359 #: includes/Admin/views/report-table.php:35 360 #: includes/Admin/views/report-table.php:67 361 #: includes/Admin/views/snapshots.php:137 362 #: includes/Export/ExportController.php:221 363 #: includes/Export/InventoryList.php:96 364 msgid "Units" 365 msgstr "" 366 367 #: includes/Admin/views/missing-cost.php:82 368 #: includes/Admin/views/snapshots.php:140 369 msgid "Actions" 370 msgstr "" 371 372 #: includes/Admin/views/missing-cost.php:91 373 msgid "Shared stock" 374 msgstr "" 375 376 #: includes/Admin/views/missing-cost.php:100 377 msgid "Edit" 378 msgstr "" 379 380 #: includes/Admin/views/missing-cost.php:111 381 msgid "Pages" 382 msgstr "" 383 384 #: includes/Admin/views/missing-cost.php:120 385 msgid "Previous" 386 msgstr "" 387 388 #: includes/Admin/views/missing-cost.php:121 389 msgid "Next" 390 msgstr "" 391 392 #: includes/Admin/views/report-table.php:33 393 #: includes/Admin/views/report-table.php:63 394 #: includes/Export/ExportController.php:217 395 msgid "Tag" 396 msgstr "" 397 398 #: includes/Admin/views/report-table.php:33 399 #: includes/Admin/views/report-table.php:62 400 #: includes/Email/views/email-html.php:47 401 #: includes/Export/ExportController.php:217 87 402 msgid "Category" 88 403 msgstr "" 89 404 90 msgid "Product Count" 91 msgstr "" 92 93 msgid "In Stock" 94 msgstr "" 95 96 msgid "Out of Stock" 97 msgstr "" 98 99 msgid "Low Stock" 100 msgstr "" 101 102 msgid "On Backorder" 103 msgstr "" 104 105 # Pagination 106 msgid "Number of items per page:" 107 msgstr "" 108 405 #: includes/Admin/views/report-table.php:34 406 #: includes/Admin/views/report.php:199 407 #: includes/Admin/views/snapshots.php:136 408 #: includes/Admin/views/widget.php:26 409 #: includes/Email/EmailReport.php:271 410 #: includes/Export/ExportController.php:220 411 msgid "Products" 412 msgstr "" 413 414 #: includes/Admin/views/report-table.php:36 415 #: includes/Email/EmailReport.php:302 416 #: includes/Email/views/email-html.php:36 417 #: includes/Export/InventoryList.php:94 418 msgid "Stock status" 419 msgstr "" 420 421 #: includes/Admin/views/report-table.php:37 422 #: includes/Admin/views/snapshots.php:138 423 #: includes/Admin/views/widget.php:35 424 #: includes/Export/ExportController.php:227 425 #: includes/Export/InventoryList.php:100 426 msgid "Value at cost" 427 msgstr "" 428 429 #: includes/Admin/views/report-table.php:38 430 #: includes/Admin/views/snapshots.php:139 431 #: includes/Admin/views/widget.php:40 432 #: includes/Email/views/email-html.php:48 433 #: includes/Export/ExportController.php:230 434 #: includes/Export/InventoryList.php:103 435 msgid "Value at retail" 436 msgstr "" 437 438 #: includes/Admin/views/report-table.php:39 439 #: includes/Email/views/email-html.php:49 440 msgid "Share" 441 msgstr "" 442 443 #: includes/Admin/views/report-table.php:45 444 msgid "Products without a tag are in No tag · Sorted by value at retail" 445 msgstr "" 446 447 #: includes/Admin/views/report-table.php:45 448 msgid "Totals include subcategories · Sorted by value at retail" 449 msgstr "" 450 451 #. translators: %s: stock status such as "Low stock" 452 #: includes/Admin/views/report-table.php:47 453 #, php-format 454 msgid "%s products only · Totals include subcategories" 455 msgstr "" 456 457 #. translators: %s: stock status such as "Low stock" 458 #: includes/Admin/views/report-table.php:50 459 #, php-format 460 msgid "%s products only" 461 msgstr "" 462 463 #: includes/Admin/views/report-table.php:56 464 msgid "By tag" 465 msgstr "" 466 467 #: includes/Admin/views/report-table.php:56 468 msgid "By category" 469 msgstr "" 470 471 #: includes/Admin/views/report-table.php:60 472 msgid "Group rows by" 473 msgstr "" 474 475 #: includes/Admin/views/report-table.php:65 476 #: includes/Admin/views/report.php:204 477 #: includes/Admin/views/widget.php:30 478 #: includes/Email/EmailReport.php:272 479 msgid "Units in stock" 480 msgstr "" 481 482 #: includes/Admin/views/report-table.php:68 483 msgid "min" 484 msgstr "" 485 486 #: includes/Admin/views/report-table.php:70 487 msgid "Units up to" 488 msgstr "" 489 490 #: includes/Admin/views/report-table.php:71 491 msgid "max" 492 msgstr "" 493 494 #: includes/Admin/views/report-table.php:72 109 495 msgid "Apply" 110 496 msgstr "" 111 497 112 msgid "%s items" 113 msgstr "" 114 115 msgid "«" 116 msgstr "" 117 118 msgid "»" 119 msgstr "" 120 121 # Error Messages 122 msgid "You do not have sufficient permissions to export reports." 123 msgstr "" 124 125 msgid "Export Error" 126 msgstr "" 127 128 msgid "Invalid export format." 129 msgstr "" 130 131 # Plugin Notices 132 msgid "Totals Report for WooCommerce cannot be activated because it requires the WooCommerce plugin to be installed and active." 133 msgstr "" 134 135 msgid "This plugin cannot be activated because required plugins are missing or inactive." 136 msgstr "" 137 138 msgid "Totals Report for WooCommerce: Unable to load required classes. Please check your plugin installation." 139 msgstr "" 140 141 msgid "Totals Report for WooCommerce requires WooCommerce to be installed and active. Please install and activate WooCommerce first, then activate this plugin." 142 msgstr "" 143 144 msgid "Requires:" 145 msgstr "" 498 #: includes/Admin/views/report-table.php:76 499 #: includes/Admin/views/report-table.php:77 500 msgid "Search tags" 501 msgstr "" 502 503 #: includes/Admin/views/report-table.php:76 504 #: includes/Admin/views/report-table.php:77 505 msgid "Search categories" 506 msgstr "" 507 508 #: includes/Admin/views/report-table.php:84 509 msgid "No products match this filter" 510 msgstr "" 511 512 #: includes/Admin/views/report-table.php:85 513 msgid "Clear filter" 514 msgstr "" 515 516 #: includes/Admin/views/report-table.php:112 517 #: includes/Export/ExportController.php:170 518 msgid "No tag" 519 msgstr "" 520 521 #: includes/Admin/views/report-table.php:112 522 #: includes/Export/ExportController.php:170 523 msgid "No category" 524 msgstr "" 525 526 #. translators: %s: category name 527 #: includes/Admin/views/report-table.php:130 528 #, php-format 529 msgid "Collapse %s" 530 msgstr "" 531 532 #. translators: %s: category name 533 #: includes/Admin/views/report-table.php:130 534 #, php-format 535 msgid "Expand %s" 536 msgstr "" 537 538 #. translators: %s: number of products 539 #: includes/Admin/views/report-table.php:152 540 #, php-format 541 msgid "%s without cost" 542 msgid_plural "%s without cost" 543 msgstr[0] "" 544 msgstr[1] "" 545 546 #: includes/Admin/views/report-table.php:165 547 msgid "No rows match your search." 548 msgstr "" 549 550 #. translators: %s: number of tags 551 #: includes/Admin/views/report-table.php:175 552 #, php-format 553 msgid "%s tag" 554 msgid_plural "%s tags" 555 msgstr[0] "" 556 msgstr[1] "" 557 558 #. translators: 1: number of top-level categories, 2: number of all categories 559 #: includes/Admin/views/report-table.php:181 560 #, php-format 561 msgid "%1$s top-level category · %2$s in total" 562 msgid_plural "%1$s top-level categories · %2$s in total" 563 msgstr[0] "" 564 msgstr[1] "" 565 566 #: includes/Admin/views/report-table.php:192 567 msgid "Names are not linked here: the WooCommerce product list shows today’s stock, not this snapshot. Download its inventory list from the Snapshots tab." 568 msgstr "" 569 570 #: includes/Admin/views/report-table.php:194 571 msgid "Select a tag to open those products in WooCommerce." 572 msgstr "" 573 574 #: includes/Admin/views/report-table.php:196 575 msgid "Select a category to open those products in WooCommerce." 576 msgstr "" 577 578 #: includes/Admin/views/report-table.php:200 579 msgid "WooCommerce has no filter for this status, so the list shows all its in-stock products." 580 msgstr "" 581 582 #: includes/Admin/views/report.php:45 583 msgid "Stock totals by tag" 584 msgstr "" 585 586 #: includes/Admin/views/report.php:45 587 msgid "Stock totals by category" 588 msgstr "" 589 590 #. translators: 1: "Stock totals by category", 2: snapshot date and time 591 #: includes/Admin/views/report.php:48 592 #, php-format 593 msgid "%1$s · Snapshot of %2$s" 594 msgstr "" 595 596 #. translators: 1: "Stock totals by category", 2: time, 3: seconds 597 #: includes/Admin/views/report.php:53 598 #, php-format 599 msgid "%1$s · Calculated today at %2$s in %3$s s" 600 msgstr "" 601 602 #: includes/Admin/views/report.php:67 603 msgid "Refresh" 604 msgstr "" 605 606 #: includes/Admin/views/report.php:74 607 msgid "Export" 608 msgstr "" 609 610 #: includes/Admin/views/report.php:77 611 msgid "Export format" 612 msgstr "" 613 614 #: includes/Admin/views/report.php:80 615 msgid "Spreadsheet" 616 msgstr "" 617 618 #: includes/Admin/views/report.php:80 619 msgid "Opens in Excel, Greek text included" 620 msgstr "" 621 622 #: includes/Admin/views/report.php:81 623 msgid "Data file" 624 msgstr "" 625 626 #: includes/Admin/views/report.php:81 627 msgid "For scripts and integrations" 628 msgstr "" 629 630 #: includes/Admin/views/report.php:82 631 msgid "Structured file" 632 msgstr "" 633 634 #: includes/Admin/views/report.php:82 635 msgid "For ERP and accounting imports" 636 msgstr "" 637 638 #: includes/Admin/views/report.php:91 639 msgid "Per product" 640 msgstr "" 641 642 #: includes/Admin/views/report.php:94 643 #: includes/Admin/views/snapshots.php:184 644 msgid "Inventory list" 645 msgstr "" 646 647 #: includes/Admin/views/report.php:94 648 msgid "Every product with SKU, units and unit cost" 649 msgstr "" 650 651 #. translators: 1: view name such as "Low stock", 2: number of products 652 #: includes/Admin/views/report.php:101 653 #, php-format 654 msgid "Exports what you see now: %1$s · %2$s product" 655 msgid_plural "Exports what you see now: %1$s · %2$s products" 656 msgstr[0] "" 657 msgstr[1] "" 658 659 #: includes/Admin/views/report.php:108 660 msgid "The inventory list always covers all products." 661 msgstr "" 662 663 #: includes/Admin/views/report.php:138 664 msgid "Stock management is turned off in WooCommerce, so only Not managed, Out of stock and On backorder can appear, and units count as 0." 665 msgstr "" 666 667 #. translators: %s: number of products and variations 668 #: includes/Admin/views/report.php:151 669 #, php-format 670 msgid "%s product or variation is missing from the WooCommerce product lookup table, so it was read more slowly." 671 msgid_plural "%s products and variations are missing from the WooCommerce product lookup table, so they were read more slowly." 672 msgstr[0] "" 673 msgstr[1] "" 674 675 #: includes/Admin/views/report.php:156 676 msgid "The WooCommerce product lookup table looks out of date, so some totals may be off." 677 msgstr "" 678 679 #: includes/Admin/views/report.php:159 680 msgid "Regenerate the product lookup tables in WooCommerce › Status › Tools" 681 msgstr "" 682 683 #: includes/Admin/views/report.php:166 684 msgid "No products yet" 685 msgstr "" 686 687 #: includes/Admin/views/report.php:167 688 msgid "Add products in WooCommerce to see totals here." 689 msgstr "" 690 691 #: includes/Admin/views/report.php:169 692 msgid "Grouped and external products are left out because they hold no stock of their own." 693 msgstr "" 694 695 #: includes/Admin/views/report.php:172 696 msgid "Add a product" 697 msgstr "" 698 699 #: includes/Admin/views/report.php:183 700 msgid "Show" 701 msgstr "" 702 703 #: includes/Admin/views/report.php:210 704 #: includes/Admin/views/report.php:233 705 #: includes/Email/EmailReport.php:275 706 msgid "Stock value at cost" 707 msgstr "" 708 709 #: includes/Admin/views/report.php:215 710 msgid "No products with units in stock." 711 msgstr "" 712 713 #. translators: %s: percentage 714 #: includes/Admin/views/report.php:220 715 #, php-format 716 msgid "%s of products have a cost." 717 msgstr "" 718 719 #. translators: %s: number of products 720 #: includes/Admin/views/report.php:225 721 #, php-format 722 msgid "Review %s product without cost" 723 msgid_plural "Review %s products without cost" 724 msgstr[0] "" 725 msgstr[1] "" 726 727 #: includes/Admin/views/report.php:235 728 msgid "Turn on Cost of Goods Sold in WooCommerce to see what your stock cost you, per category." 729 msgstr "" 730 731 #: includes/Admin/views/report.php:236 732 msgid "Open WooCommerce settings" 733 msgstr "" 734 735 #: includes/Admin/views/report.php:238 736 msgid "Update WooCommerce to use Cost of Goods Sold and see what your stock cost you, per category." 737 msgstr "" 738 739 #: includes/Admin/views/report.php:243 740 #: includes/Email/EmailReport.php:277 741 msgid "Stock value at retail" 742 msgstr "" 743 744 #: includes/Admin/views/report.php:245 745 msgid "Regular price × units in stock" 746 msgstr "" 747 748 #: includes/Admin/views/report.php:245 749 msgid "Current price × units in stock" 750 msgstr "" 751 752 #: includes/Admin/views/report.php:251 753 msgid "Stock status across the store" 754 msgstr "" 755 756 #. translators: %s: number of products 757 #: includes/Admin/views/report.php:255 758 #, php-format 759 msgid "Each product counts once, so the five add up to %s" 760 msgid_plural "Each product counts once, so the five add up to %s" 761 msgstr[0] "" 762 msgstr[1] "" 763 764 #. translators: %s: number of stock items 765 #: includes/Admin/views/report.php:271 766 #, php-format 767 msgid "%s item below zero" 768 msgid_plural "%s items below zero" 769 msgstr[0] "" 770 msgstr[1] "" 771 772 #: includes/Admin/views/report.php:285 773 msgid "Products with more than one tag count in each, so tag rows can add up to more than the store total. Products without a tag are in the No tag row." 774 msgstr "" 775 776 #: includes/Admin/views/report.php:287 777 msgid "Products in more than one category count in each, so category rows can add up to more than the store total. Parent categories include their subcategories without counting a product twice." 778 msgstr "" 779 780 #: includes/Admin/views/report.php:290 781 msgid "Grouped and external products are left out because they hold no stock of their own. Variations count one by one towards units and value; variations that share the stock of their product count once." 782 msgstr "" 783 784 #: includes/Admin/views/report.php:293 785 msgid "Only published products are counted." 786 msgstr "" 787 788 #: includes/Admin/views/settings.php:28 789 msgid "Schedules, email report, how stock is valued and how files are exported" 790 msgstr "" 791 792 #: includes/Admin/views/settings.php:41 793 msgid "Inventory snapshots" 794 msgstr "" 795 796 #: includes/Admin/views/settings.php:42 797 msgid "Freeze units, costs and prices at set moments, so your year-end count matches what the shop held that night." 798 msgstr "" 799 800 #: includes/Admin/views/settings.php:46 801 msgid "Take a snapshot automatically" 802 msgstr "" 803 804 #: includes/Admin/views/settings.php:47 805 msgid "At year end — 31 December, 23:59" 806 msgstr "" 807 808 #: includes/Admin/views/settings.php:48 809 msgid "At the end of each quarter" 810 msgstr "" 811 812 #: includes/Admin/views/settings.php:49 813 msgid "At the end of each month" 814 msgstr "" 815 816 #. translators: %s: timezone, e.g. Europe/Athens 817 #: includes/Admin/views/settings.php:54 818 #, php-format 819 msgid "Times follow the site timezone: %s." 820 msgstr "" 821 822 #: includes/Admin/views/settings.php:58 823 #: includes/Settings.php:138 824 msgid "Keep snapshots" 825 msgstr "" 826 827 #: includes/Admin/views/settings.php:70 828 msgid "Email report" 829 msgstr "" 830 831 #: includes/Admin/views/settings.php:71 832 msgid "A short summary of stock and value, sent on a schedule to you or your accountant." 833 msgstr "" 834 835 #: includes/Admin/views/settings.php:74 836 msgid "Send the stock report by email" 837 msgstr "" 838 839 #: includes/Admin/views/settings.php:78 840 #: includes/Settings.php:139 841 msgid "How often" 842 msgstr "" 843 844 #: includes/Admin/views/settings.php:80 845 msgid "Weekly" 846 msgstr "" 847 848 #: includes/Admin/views/settings.php:81 849 msgid "Monthly" 850 msgstr "" 851 852 #: includes/Admin/views/settings.php:85 853 msgid "Day" 854 msgstr "" 855 856 #: includes/Admin/views/settings.php:91 857 msgid "Weekly reports only. Monthly reports go out on the 1st." 858 msgstr "" 859 860 #: includes/Admin/views/settings.php:94 861 msgid "Time" 862 msgstr "" 863 864 #: includes/Admin/views/settings.php:99 865 msgid "Send to" 866 msgstr "" 867 868 #: includes/Admin/views/settings.php:101 869 msgid "Separate addresses with commas." 870 msgstr "" 871 872 #: includes/Admin/views/settings.php:103 873 msgid "Attach the inventory list (CSV)" 874 msgstr "" 875 876 #: includes/Admin/views/settings.php:105 877 msgid "Send a test email now" 878 msgstr "" 879 880 #: includes/Admin/views/settings.php:114 881 msgid "Stock value" 882 msgstr "" 883 884 #: includes/Admin/views/settings.php:115 885 msgid "How the report puts a value on your stock." 886 msgstr "" 887 888 #: includes/Admin/views/settings.php:119 889 #: includes/Settings.php:140 890 msgid "Value at retail uses" 891 msgstr "" 892 893 #: includes/Admin/views/settings.php:120 894 msgid "The current price — the sale price while a sale runs" 895 msgstr "" 896 897 #: includes/Admin/views/settings.php:121 898 msgid "The regular price" 899 msgstr "" 900 901 #: includes/Admin/views/settings.php:124 902 #: includes/Settings.php:141 903 msgid "Products counted" 904 msgstr "" 905 906 #: includes/Admin/views/settings.php:125 907 msgid "All products except those in the trash — drafts, pending, private and scheduled too" 908 msgstr "" 909 910 #: includes/Admin/views/settings.php:126 911 msgid "Published products only" 912 msgstr "" 913 914 #: includes/Admin/views/settings.php:127 915 msgid "Physical stock exists whether or not a product is published, so the inventory count includes drafts by default. Grouped and external products are never counted." 916 msgstr "" 917 918 #: includes/Admin/views/settings.php:131 919 msgid "Cost of Goods Sold is on" 920 msgstr "" 921 922 #. translators: 1: products with a cost, 2: products with units in stock 923 #: includes/Admin/views/settings.php:136 924 #, php-format 925 msgid "%1$s of %2$s product with units in stock has a cost." 926 msgid_plural "%1$s of %2$s products with units in stock have a cost." 927 msgstr[0] "" 928 msgstr[1] "" 929 930 #. translators: %s: number of products 931 #: includes/Admin/views/settings.php:143 932 #, php-format 933 msgid "Show the %s product without cost" 934 msgid_plural "Show the %s products without cost" 935 msgstr[0] "" 936 msgstr[1] "" 937 938 #: includes/Admin/views/settings.php:149 939 msgid "Cost of Goods Sold is off" 940 msgstr "" 941 942 #: includes/Admin/views/settings.php:151 943 msgid "Turn it on in WooCommerce › Settings › Advanced › Features" 944 msgstr "" 945 946 #: includes/Admin/views/settings.php:153 947 msgid "This WooCommerce version does not have Cost of Goods Sold yet." 948 msgstr "" 949 950 #: includes/Admin/views/settings.php:162 951 msgid "Exports" 952 msgstr "" 953 954 #: includes/Admin/views/settings.php:163 955 msgid "Make CSV files open correctly in Excel in your language." 956 msgstr "" 957 958 #: includes/Admin/views/settings.php:166 959 #: includes/Settings.php:142 960 msgid "CSV column separator" 961 msgstr "" 962 963 #: includes/Admin/views/settings.php:168 964 msgid "Automatic — semicolon where the decimal mark is a comma (Greek, German…)" 965 msgstr "" 966 967 #: includes/Admin/views/settings.php:169 968 msgid "Comma" 969 msgstr "" 970 971 #: includes/Admin/views/settings.php:170 972 msgid "Semicolon" 973 msgstr "" 974 975 #: includes/Admin/views/settings.php:172 976 msgid "Files are saved as UTF-8 so Greek product names show correctly." 977 msgstr "" 978 979 #: includes/Admin/views/settings.php:178 980 msgid "Dashboard and data" 981 msgstr "" 982 983 #: includes/Admin/views/settings.php:179 984 msgid "Where the report shows up, and what happens to your data if you remove the plugin." 985 msgstr "" 986 987 #: includes/Admin/views/settings.php:182 988 msgid "Show the stock widget on the WordPress Dashboard" 989 msgstr "" 990 991 #: includes/Admin/views/settings.php:183 992 msgid "Delete snapshots and settings when the plugin is deleted" 993 msgstr "" 994 995 #: includes/Admin/views/settings.php:183 996 msgid "Leave this off if you may need past snapshots for your accountant." 997 msgstr "" 998 999 #: includes/Admin/views/settings.php:188 1000 msgid "Save changes" 1001 msgstr "" 1002 1003 #. translators: %s: date 1004 #: includes/Admin/views/settings.php:195 1005 #, php-format 1006 msgid "Last saved %s" 1007 msgstr "" 1008 1009 #: includes/Admin/views/snapshots.php:36 1010 msgid "Frozen copies of your stock, quantities and values for inventory counts" 1011 msgstr "" 1012 1013 #: includes/Admin/views/snapshots.php:41 1014 msgid "Label for the snapshot (optional)" 1015 msgstr "" 1016 1017 #: includes/Admin/views/snapshots.php:42 1018 msgid "Label (optional)" 1019 msgstr "" 1020 1021 #: includes/Admin/views/snapshots.php:45 1022 msgid "Take snapshot now" 1023 msgstr "" 1024 1025 #. translators: 1: number of products with its word, 2: number of units with its word 1026 #: includes/Admin/views/snapshots.php:61 1027 #, php-format 1028 msgid "Snapshot taken: %1$s, %2$s. It will not change when your stock does." 1029 msgstr "" 1030 1031 #. translators: %s: number of products 1032 #: includes/Admin/views/snapshots.php:63 1033 #, php-format 1034 msgid "%s product" 1035 msgid_plural "%s products" 1036 msgstr[0] "" 1037 msgstr[1] "" 1038 1039 #. translators: %s: number of units 1040 #: includes/Admin/views/snapshots.php:65 1041 #, php-format 1042 msgid "%s unit" 1043 msgid_plural "%s units" 1044 msgstr[0] "" 1045 msgstr[1] "" 1046 1047 #: includes/Admin/views/snapshots.php:74 1048 msgid "Taking the snapshot. Large stores take a few minutes; it continues in the background and this page updates by itself." 1049 msgstr "" 1050 1051 #. translators: %s: snapshot date 1052 #: includes/Admin/views/snapshots.php:87 1053 #: includes/Admin/views/snapshots.php:217 1054 #, php-format 1055 msgid "Delete the snapshot of %s? This cannot be undone." 1056 msgstr "" 1057 1058 #: includes/Admin/views/snapshots.php:90 1059 msgid "Delete snapshot" 1060 msgstr "" 1061 1062 #: includes/Admin/views/snapshots.php:91 1063 #: includes/Admin/views/snapshots.php:234 1064 msgid "Cancel" 1065 msgstr "" 1066 1067 #. translators: %s: date and time 1068 #: includes/Admin/views/snapshots.php:103 1069 #, php-format 1070 msgid "Next automatic snapshot: %s" 1071 msgstr "" 1072 1073 #: includes/Admin/views/snapshots.php:108 1074 msgid "No automatic snapshots are scheduled" 1075 msgstr "" 1076 1077 #: includes/Admin/views/snapshots.php:109 1078 msgid "Turn on the year-end snapshot in Settings so your inventory count is taken on 31 December at 23:59." 1079 msgstr "" 1080 1081 #: includes/Admin/views/snapshots.php:113 1082 msgid "Change schedule" 1083 msgstr "" 1084 1085 #: includes/Admin/views/snapshots.php:125 1086 msgid "No snapshots yet" 1087 msgstr "" 1088 1089 #: includes/Admin/views/snapshots.php:126 1090 msgid "Take your first snapshot or wait for the year-end one on 31 December." 1091 msgstr "" 1092 1093 #: includes/Admin/views/snapshots.php:133 1094 msgid "Taken" 1095 msgstr "" 1096 1097 #: includes/Admin/views/snapshots.php:134 1098 msgid "Label" 1099 msgstr "" 1100 1101 #: includes/Admin/views/snapshots.php:135 1102 msgid "By" 1103 msgstr "" 1104 1105 #: includes/Admin/views/snapshots.php:154 1106 msgid "Year-end" 1107 msgstr "" 1108 1109 #: includes/Admin/views/snapshots.php:157 1110 msgid "New" 1111 msgstr "" 1112 1113 #: includes/Admin/views/snapshots.php:166 1114 msgid "Failed" 1115 msgstr "" 1116 1117 #: includes/Admin/views/snapshots.php:183 1118 msgid "View" 1119 msgstr "" 1120 1121 #. translators: %s: snapshot date 1122 #: includes/Admin/views/snapshots.php:189 1123 #, php-format 1124 msgid "More actions for snapshot of %s" 1125 msgstr "" 1126 1127 #: includes/Admin/views/snapshots.php:192 1128 msgid "Snapshot actions" 1129 msgstr "" 1130 1131 #: includes/Admin/views/snapshots.php:194 1132 msgid "Rename" 1133 msgstr "" 1134 1135 #. translators: %s: file format 1136 #: includes/Admin/views/snapshots.php:205 1137 #, php-format 1138 msgid "Download summary (%s)" 1139 msgstr "" 1140 1141 #: includes/Admin/views/snapshots.php:219 1142 msgid "Delete" 1143 msgstr "" 1144 1145 #: includes/Admin/views/snapshots.php:231 1146 msgid "New label" 1147 msgstr "" 1148 1149 #: includes/Admin/views/snapshots.php:233 1150 msgid "Save" 1151 msgstr "" 1152 1153 #: includes/Admin/views/snapshots.php:244 1154 msgid "Each snapshot stores every product's units, unit cost and price at that moment, so later sales or price changes do not alter it. Snapshots help with your inventory count; your accountant keeps the official inventory records." 1155 msgstr "" 1156 1157 #: includes/Admin/views/widget.php:22 1158 msgid "Add products in WooCommerce to see stock totals here." 1159 msgstr "" 1160 1161 #. translators: %s: number of products 1162 #: includes/Admin/views/widget.php:55 1163 #, php-format 1164 msgid "%s low stock" 1165 msgid_plural "%s low stock" 1166 msgstr[0] "" 1167 msgstr[1] "" 1168 1169 #. translators: %s: number of products 1170 #: includes/Admin/views/widget.php:61 1171 #, php-format 1172 msgid "%s out of stock" 1173 msgid_plural "%s out of stock" 1174 msgstr[0] "" 1175 msgstr[1] "" 1176 1177 #. translators: short date and time format, see https://www.php.net/manual/datetime.format.php 1178 #: includes/Admin/views/widget.php:71 1179 msgid "j M, H:i" 1180 msgstr "" 1181 1182 #. translators: %s: date and time 1183 #: includes/Admin/views/widget.php:73 1184 #, php-format 1185 msgid "Next snapshot: %s" 1186 msgstr "" 1187 1188 #: includes/Admin/views/widget.php:75 1189 msgid "No snapshot scheduled" 1190 msgstr "" 1191 1192 #: includes/Admin/views/widget.php:79 1193 msgid "Open Totals Report" 1194 msgstr "" 1195 1196 #: includes/Capability.php:49 1197 msgid "Sorry, you are not allowed to access the Totals Report." 1198 msgstr "" 1199 1200 #: includes/Capability.php:50 1201 msgid "Not allowed" 1202 msgstr "" 1203 1204 #. translators: 1: site name, 2: date 1205 #: includes/Email/EmailReport.php:263 1206 #, php-format 1207 msgid "[%1$s] Stock report, %2$s" 1208 msgstr "" 1209 1210 #. translators: %s: subject 1211 #: includes/Email/EmailReport.php:266 1212 #, php-format 1213 msgid "Test: %s" 1214 msgstr "" 1215 1216 #: includes/Email/EmailReport.php:268 1217 msgid "Stock report" 1218 msgstr "" 1219 1220 #. translators: %s: number of products 1221 #: includes/Email/EmailReport.php:283 1222 #, php-format 1223 msgid "%s product is low on stock." 1224 msgid_plural "%s products are low on stock." 1225 msgstr[0] "" 1226 msgstr[1] "" 1227 1228 #. translators: %s: number of products 1229 #: includes/Email/EmailReport.php:287 1230 #, php-format 1231 msgid "%s product is out of stock." 1232 msgid_plural "%s products are out of stock." 1233 msgstr[0] "" 1234 msgstr[1] "" 1235 1236 #: includes/Email/EmailReport.php:310 1237 #: includes/Email/views/email-html.php:44 1238 msgid "Top categories by value at retail" 1239 msgstr "" 1240 1241 #: includes/Email/EmailReport.php:316 1242 #: includes/Email/views/email-html.php:60 1243 msgid "Open the report" 1244 msgstr "" 1245 1246 #: includes/Email/EmailReport.php:318 1247 #: includes/Email/views/email-html.php:61 1248 msgid "Snapshots help with your inventory count; your accountant keeps the official inventory records." 1249 msgstr "" 1250 1251 #: includes/Email/EmailReport.php:334 1252 msgid "Sorry, you are not allowed to do that." 1253 msgstr "" 1254 1255 #: includes/Email/EmailReport.php:337 1256 msgid "A test email was sent less than a minute ago. Try again in a minute." 1257 msgstr "" 1258 1259 #. translators: %s: comma-separated invalid addresses 1260 #: includes/Email/EmailReport.php:343 1261 #, php-format 1262 msgid "These email addresses are not valid: %s" 1263 msgstr "" 1264 1265 #: includes/Email/EmailReport.php:346 1266 msgid "Add at least one email address." 1267 msgstr "" 1268 1269 #: includes/Email/EmailReport.php:356 1270 msgid "The test email could not be sent. Check that this site can send email." 1271 msgstr "" 1272 1273 #. translators: %s: number of addresses 1274 #: includes/Email/EmailReport.php:361 1275 #, php-format 1276 msgid "Test email sent to %s address." 1277 msgid_plural "Test email sent to %s addresses." 1278 msgstr[0] "" 1279 msgstr[1] "" 1280 1281 #. translators: 1: site name, 2: date 1282 #: includes/Email/views/email-html.php:28 1283 #, php-format 1284 msgid "Stock totals for %1$s on %2$s." 1285 msgstr "" 1286 1287 #: includes/Export/ExportController.php:73 1288 msgid "This export format is not available." 1289 msgstr "" 1290 1291 #. translators: %s: technical error message 1292 #: includes/Export/ExportController.php:93 1293 #, php-format 1294 msgid "The export failed: %s" 1295 msgstr "" 1296 1297 #: includes/Export/ExportController.php:212 1298 #: includes/Export/InventoryList.php:122 1299 msgid "yes" 1300 msgstr "" 1301 1302 #: includes/Export/ExportController.php:213 1303 #: includes/Export/InventoryList.php:123 1304 msgid "no" 1305 msgstr "" 1306 1307 #: includes/Export/ExportController.php:216 1308 msgid "ID" 1309 msgstr "" 1310 1311 #: includes/Export/ExportController.php:218 1312 msgid "Path" 1313 msgstr "" 1314 1315 #: includes/Export/ExportController.php:219 1316 msgid "Parent ID" 1317 msgstr "" 1318 1319 #: includes/Export/ExportController.php:228 1320 msgid "Without cost" 1321 msgstr "" 1322 1323 #: includes/Export/ExportController.php:231 1324 msgid "Share %" 1325 msgstr "" 1326 1327 #: includes/Export/ExportController.php:232 1328 #: includes/Export/InventoryList.php:104 1329 msgid "Currency" 1330 msgstr "" 1331 1332 #: includes/Export/ExportController.php:233 1333 #: includes/Export/InventoryList.php:105 1334 msgid "Prices include tax" 1335 msgstr "" 1336 1337 #: includes/Export/ExportController.php:253 1338 msgid "Totals (each product once)" 1339 msgstr "" 1340 1341 #. translators: %s: variation names 1342 #: includes/Export/InventoryList.php:40 1343 #: includes/Snapshots/Runner.php:290 1344 #, php-format 1345 msgid "Shared stock: %s" 1346 msgstr "" 1347 1348 #: includes/Export/InventoryList.php:90 1349 msgid "Variation" 1350 msgstr "" 1351 1352 #: includes/Export/InventoryList.php:91 1353 msgid "Parent SKU" 1354 msgstr "" 1355 1356 #: includes/Export/InventoryList.php:92 1357 msgid "Categories" 1358 msgstr "" 1359 1360 #: includes/Export/InventoryList.php:93 1361 msgid "Product status" 1362 msgstr "" 1363 1364 #: includes/Export/InventoryList.php:95 1365 msgid "Managed" 1366 msgstr "" 1367 1368 #: includes/Export/InventoryList.php:99 1369 msgid "Unit cost" 1370 msgstr "" 1371 1372 #: includes/Export/InventoryList.php:102 1373 msgid "Unit price" 1374 msgstr "" 1375 1376 #: includes/Export/InventoryList.php:106 1377 msgid "Valuation note" 1378 msgstr "" 1379 1380 #: includes/Export/InventoryList.php:174 1381 msgid "Totals" 1382 msgstr "" 1383 1384 #: includes/Export/InventoryList.php:194 1385 msgid "Shared stock: valued at the lowest variation price/cost" 1386 msgstr "" 1387 1388 #: includes/Notices.php:77 1389 msgid "Totals Report 2.0:" 1390 msgstr "" 1391 1392 #: includes/Notices.php:78 1393 msgid "stock value, inventory snapshots and exports." 1394 msgstr "" 1395 1396 #: includes/Notices.php:80 1397 msgid "Open report" 1398 msgstr "" 1399 1400 #: includes/Notices.php:82 1401 msgid "Dismiss" 1402 msgstr "" 1403 1404 #: includes/Plugin.php:73 1405 msgid "Totals Report for WooCommerce needs WooCommerce to be installed and active." 1406 msgstr "" 1407 1408 #: includes/Settings.php:103 1409 msgid "Until I delete them" 1410 msgstr "" 1411 1412 #: includes/Settings.php:104 1413 msgid "For 10 years" 1414 msgstr "" 1415 1416 #: includes/Settings.php:105 1417 msgid "For 5 years" 1418 msgstr "" 1419 1420 #: includes/Settings.php:106 1421 msgid "For 1 year" 1422 msgstr "" 1423 1424 #. translators: %s: name of a setting 1425 #: includes/Settings.php:153 1426 #, php-format 1427 msgid "The choice for “%s” was not valid and was not saved." 1428 msgstr "" 1429 1430 #: includes/Settings.php:162 1431 msgid "The day of the email report was not valid and was not saved." 1432 msgstr "" 1433 1434 #: includes/Settings.php:171 1435 msgid "The time of the email report must look like 08:00. It was not saved." 1436 msgstr "" 1437 1438 #. translators: %s: comma-separated list of invalid email addresses 1439 #: includes/Settings.php:180 1440 #, php-format 1441 msgid "These email addresses are not valid, so the recipients were not changed: %s" 1442 msgstr "" 1443 1444 #: includes/Settings.php:188 1445 msgid "The email report was turned off because it has no recipients. Add at least one email address to turn it on." 1446 msgstr "" 1447 1448 #: includes/Snapshots/Runner.php:69 1449 msgid "A snapshot is already being taken. Wait until it is complete." 1450 msgstr "" 1451 1452 #: includes/Snapshots/Runner.php:98 1453 msgid "The snapshot could not be saved in the database." 1454 msgstr "" 1455 1456 #: includes/Snapshots/Runner.php:418 1457 #: includes/Snapshots/Runner.php:429 1458 msgid "The snapshot stopped making progress and was cancelled." 1459 msgstr "" 1460 1461 #. translators: %s: year 1462 #: includes/Snapshots/Scheduler.php:181 1463 #, php-format 1464 msgid "Year-end %s" 1465 msgstr "" 1466 1467 #. translators: 1: quarter number (1-4), 2: year 1468 #: includes/Snapshots/Scheduler.php:185 1469 #, php-format 1470 msgid "Quarter end Q%1$d %2$s" 1471 msgstr "" 1472 1473 #. translators: 1: month name (genitive case where the language has one), 2: year 1474 #: includes/Snapshots/Scheduler.php:191 1475 #, php-format 1476 msgid "Month end %1$s %2$s" 1477 msgstr "" 1478 1479 #: includes/Snapshots/SnapshotsController.php:55 1480 msgid "Manual snapshot" 1481 msgstr "" 1482 1483 #. translators: %s: reason 1484 #: includes/Snapshots/SnapshotsController.php:68 1485 #, php-format 1486 msgid "The snapshot failed: %s" 1487 msgstr "" 1488 1489 #: includes/Snapshots/SnapshotsController.php:86 1490 msgid "Snapshot renamed." 1491 msgstr "" 1492 1493 #: includes/Snapshots/SnapshotsController.php:107 1494 msgid "Deleted while running." 1495 msgstr "" 1496 1497 #: includes/Snapshots/SnapshotsController.php:110 1498 msgid "Snapshot deleted." 1499 msgstr "" 1500 1501 #: assets/js/admin.js:357 1502 msgid "Delete this snapshot?" 1503 msgstr "" 1504 1505 #: assets/js/admin.js:484 1506 msgid "Sending…" 1507 msgstr "" 1508 1509 #: assets/js/admin.js:491 1510 #: assets/js/admin.js:495 1511 msgid "The test email could not be sent." 1512 msgstr "" -
totals-report-for-woocommerce/trunk/readme.txt
r3279294 r3750789 1 1 === Totals Report for WooCommerce === 2 2 Contributors: bigdropgr, aivazidis 3 Tags: inventory, report, stock, products, woocommerce report 4 Requires at least: 5.0 5 Tested up to: 6.7 6 Stable tag: 1.0.2 7 Requires PHP: 7.2 3 Tags: inventory, stock report, stock value, inventory count, stocktake 4 Requires at least: 6.5 5 Tested up to: 7.1 6 Requires PHP: 7.4 7 Requires Plugins: woocommerce 8 Stable tag: 2.0.0 8 9 License: GPLv2 or later 9 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 Comprehensive product inventory reporting tool with detailed insights into your WooCommerce product catalog.12 Stock totals and stock value by category, year-end inventory snapshots, and exports your accountant can open in Excel. 12 13 13 14 == Description == 14 15 15 Totals Report for WooCommerce provides a powerful, easy-to-use interface for tracking and analyzing your WooCommerce product inventory. With a single click, store managers can access critical insights about their product catalog. 16 **Totals Report for WooCommerce** answers three questions in one screen: 16 17 17 = Key Features = 18 * Total product count 19 * In-stock and out-of-stock product tracking 20 * Low stock and backorder monitoring 21 * Detailed variation analysis 22 * Stock quantity overview 23 * Category-specific inventory data 24 * Performance optimized 25 * Multisite compatible 26 * Translation ready 18 * How many products and units do I have in stock, per category? 19 * What is my stock worth, at cost and at retail price? 20 * What did I hold on 31 December, for the year-end inventory count? 27 21 28 = Performance and Compatibility = 29 * WordPress 5.0+ compatible 30 * WooCommerce 5.0.0+ support 31 * High-Performance Order Storage (HPOS) compatible 32 * PHP 7.2+ required 22 WooCommerce Analytics lists stock product by product. Totals Report adds up stock **per category or tag**, puts a **value** on it, and keeps **inventory snapshots** you can hand to your accountant. 33 23 34 = Use Cases = 35 * Quickly assess overall inventory health 36 * Track product availability 37 * Identify low stock items 38 * Monitor backorder products 39 * Understand product type distribution 40 * Monitor category-specific product metrics 24 = Stock totals at a glance = 25 26 * Products, units in stock, stock value at cost and stock value at retail 27 * Five clear stock states that always add up: in stock, low stock, on backorder, out of stock, stock not managed 28 * Totals per category (with subcategories) or per tag 29 * Filter by stock status and by units in stock, search, and sort the table by name or by any figure 30 * Click a category or tag to open its products in WooCommerce, filtered by stock status where WooCommerce supports it 31 32 = Stock valuation = 33 34 * Value at cost uses the native WooCommerce **Cost of Goods Sold** field 35 * Value at retail uses the current price or the regular price, your choice 36 * Shows which products have no cost yet, so the valuation is never silently incomplete 37 38 = Year-end inventory count (stocktake) = 39 40 * **Inventory snapshots** freeze units, unit costs and prices at a moment in time 41 * Automatic snapshot at year end (scheduled for 31 December, 23:59, in your site's timezone), and optionally at the end of each quarter or month 42 * Take a snapshot any time, give it a label, and view its frozen figures later 43 * **Inventory list** export: every product and variation with SKU, units, unit cost and value (variations that share their parent's stock are one row), ready for your accountant 44 45 = Exports that open correctly = 46 47 * CSV, JSON and XML summaries of what you see on screen 48 * CSV files open in Excel with Greek and other non-Latin characters intact, with the right separator for your site language (you can change it in Settings) 49 * Spreadsheet formula injection is neutralised in every CSV 50 51 = Also included = 52 53 * Weekly or monthly stock report by email, with the inventory list attached if you want 54 * "Stock at a glance" widget on the WordPress Dashboard 55 * Fast on large catalogues: built on WooCommerce's product lookup table, no slow product-by-product loops 56 * Fully translated into Greek; translation-ready for every language 57 * No external requests, no tracking, no ads 41 58 42 59 == Installation == 43 60 44 1. Upload the plugin files to the `/wp-content/plugins/totals-report-for-woocommerce` directory 45 2. Activate the plugin through the 'Plugins' menu in WordPress 46 3. Navigate to WooCommerce > Totals Report to view your product insights 61 1. Install and activate WooCommerce. 62 2. Install Totals Report for WooCommerce from Plugins › Add New, or upload the plugin folder to `/wp-content/plugins/`. 63 3. Activate it and open **WooCommerce › Totals Report**. 64 4. Optional: turn on **Cost of Goods Sold** in WooCommerce › Settings › Advanced › Features to see stock value at cost. 47 65 48 66 == Frequently Asked Questions == 49 67 50 = How does this plugin improve WooCommerce inventory management? =68 = Does this plugin change my products or stock? = 51 69 52 Totals Report for WooCommerce provides a comprehensive overview of your entire product catalog in one centralized dashboard. This allows you to quickly assess inventory status, identify out-of-stock products, and understand product distribution across categories and types without having to navigate through multiple WooCommerce screens.70 No. It only reads your catalogue. It writes only its own data: settings and a few bookkeeping options (its version and next run times), the snapshots you take or schedule, its scheduled tasks (in WooCommerce's Action Scheduler), a 10-minute cache for the Dashboard widget, short-lived notices and locks, a per-user flag when you dismiss the upgrade notice, and, when the email report attaches the inventory list, a temporary file in your uploads folder that is deleted right after sending. 53 71 54 = Will this plugin slow down my WooCommerce store? =72 = How is "value at cost" calculated? = 55 73 56 No, the plugin is designed with performance in mind. It uses efficient database queries and implements caching mechanisms to ensure minimal impact on your store's performance, even with large product catalogs. The report data is generated only when needed and cached for future use.74 Units in stock multiplied by each product's cost from the WooCommerce Cost of Goods Sold field. Variations use their own cost, or the cost set on their parent product (or both added together, when the variation is set to add its cost to the parent's). Products with units in stock but without a cost are listed separately and are not counted in the value at cost. WooCommerce stores a cost of 0 on a simple or variable product as "no cost", so such products show up in that list. 57 75 58 = Does the plugin work with variable products and product variations? =76 = How is "value at retail" calculated? = 59 77 60 Yes, Totals Report for WooCommerce fully supports variable products and their variations. The report provides detailed information about total variations across your store and intelligently tracks stock status for variable products based on the availability of their variations.78 Units in stock multiplied by the current price (the sale price while a sale is running) or by the regular price, depending on your setting. Prices are used as stored in WooCommerce, with or without tax according to your store settings. Every export states the currency and whether prices include tax. 61 79 62 = Can I export the inventory reports? =80 = Why can category rows add up to more than the store total? = 63 81 64 A bsolutely! The plugin offers multiple export formats including CSV, JSON, and XML. This makes it easy to share inventory data with team members or import it into external systems for further analysis.82 A product that belongs to two categories is counted in both. Parent categories include their subcategories without counting a product twice. 65 83 66 = Is the plugin compatible with custom product types? =84 = Which products are counted? = 67 85 68 Yes, the plugin works with all standard WooCommerce product types and provides a flexible framework that supports custom product types. It will track and categorize any product type registered in your WooCommerce store.86 All products except those in the trash (you can limit this to published products only). Grouped and external products are left out because they hold no stock of their own. A variable product counts as one product; its units and value come from its variations, including disabled ones. When variations share the stock of their parent product, that stock is counted once (shown as "Shared stock"), valued at the lowest price among those variations that have a price, and at the lowest cost among them; if any of them has no cost, that stock is listed as without cost. Disabled variations are left out of this choice unless all of them are disabled; if none of the variations taken into account has a price, that stock is valued at 0 at retail. In the inventory list these lines carry a valuation note. 69 87 70 = Does this plugin work with multilingual stores? =88 = What do the five stock states mean? = 71 89 72 Yes, Totals Report for WooCommerce is fully translation-ready and supports internationalization. The plugin includes translation files and can be easily translated into any language using standard WordPress translation tools.90 In stock, low stock (at or below the low-stock threshold of the product, of its parent product, or of your store, in that order), on backorder, out of stock, and stock not managed (available, but the quantity is not tracked). Every product is in exactly one state, so the five always add up to the total. A variable product is low on stock when any of its available variations is. Negative stock (from backorders) counts as 0 units. 73 91 74 = Is this plugin compatible with the latest versions of WordPress and WooCommerce? =92 = Can I use the snapshots for my year-end inventory? = 75 93 76 Yes, we regularly test and update the plugin to ensure compatibility with the latest versions of both WordPress and WooCommerce. The plugin supports WordPress 5.0+ and WooCommerce 5.0.0+, including the new High-Performance Order Storage (HPOS) system.94 Snapshots record what your shop held at the time the snapshot runs (large shops are read in batches, so a sale made meanwhile can show up), and the inventory list gives your accountant every item with its quantity and cost. They help with your inventory count; your accountant keeps the official inventory records. 77 95 78 = Do es the plugin require any special server requirements? =96 = Do snapshots change if I edit products later? = 79 97 80 Totals Report for WooCommerce has minimal server requirements beyond what WordPress and WooCommerce already need. It requires PHP 7.2 or higher and a properly configured WordPress installation with WooCommerce active. 98 No. A snapshot is stored separately and its numbers never change. You can rename or delete it, and the "Keep snapshots" setting can delete old ones automatically. 99 100 = When exactly is the year-end snapshot taken? = 101 102 It is scheduled for 31 December at 23:59 in your site's timezone and runs through WooCommerce's Action Scheduler, which needs WP-Cron. WP-Cron runs when someone visits the site, so on a quiet shop the snapshot can be taken a little later. For an exact year-end count, set up a real server cron for WP-Cron, or take a snapshot yourself before the first sale of the new year. 103 104 = Does it work with large catalogues? = 105 106 Yes. The report reads WooCommerce's product lookup table with a few database queries, and exports and snapshots run in batches. When it finds products missing from the lookup table, or recently changed products that disagree with it, it tells you how to regenerate the table. 107 108 = Does it support multiple warehouses or stock locations? = 109 110 No. It reports the single stock quantity WooCommerce keeps for each product or variation. 111 112 = Is my data deleted when I remove the plugin? = 113 114 Only if you choose so in Settings › Dashboard and data. Otherwise your snapshots and settings stay in the database in case you need them later. Scheduled tasks are always removed. 81 115 82 116 == Screenshots == 83 117 84 1. Totals Report Overview - Shows the main dashboard with key inventory metrics 85 2. Product Type Distribution - Displays the breakdown of different product types in your store 86 3. Product Categories - Detailed view of products by category with availability, stock status, and variation data 118 1. Stock totals and value per category, with the five stock states. 119 2. Low stock filter and the export menu. 120 3. Inventory snapshots for the year-end count. 121 4. Settings: snapshot schedule, email report, stock value and exports. 122 5. Stock at a glance widget on the WordPress Dashboard. 123 6. The report on a phone. 87 124 88 125 == Changelog == 89 126 127 = 2.0.0 = 128 * Complete rewrite. 129 * New: stock value at cost (WooCommerce Cost of Goods Sold) and at retail, per category and per tag. 130 * New: inventory snapshots, manual and scheduled (year end, quarter end, month end). 131 * New: inventory list export per product and variation for the year-end count. 132 * New: filters by stock status and units, grouping by category or tag, search and sorting. 133 * New: email report and Dashboard widget. 134 * New: five mutually exclusive stock states that always add up to the total. 135 * Fixed: XML export now produces valid XML. 136 * Fixed: categories with the same name under different parents are no longer merged. 137 * Faster on large catalogues. 138 * Complete Greek translation. 139 90 140 = 1.0.2 = 91 * Changed terminology from "Available" to "In Stock" to match WooCommerce standards 92 * Added Low Stock and On Backorder tracking for products 93 * Added pagination to the Category Reports for easier navigation with large catalogs 94 * Added "rows per page" option to customize the number of categories displayed 95 * Redesigned the report interface to be wider and left-aligned 96 * Moved export buttons to the bottom of the page 97 * Improved category report with new columns: 98 * Low Stock Products - Shows the number of products with low stock levels in each category 99 * On Backorder Products - Shows the number of backorder products in each category 100 * Enhanced export functionality to include the new low stock and backorder data 141 * Changed terminology from "Available" to "In Stock". 142 * Added low stock and on backorder tracking, pagination and rows per page in the category report. 101 143 102 144 = 1.0.1 = 103 * Fixed display of category names in reports (previously showing slugs) 104 * Added new columns to the Product Categories report: 105 * Available Products - Shows the number of in-stock products for each category 106 * Out of Stock Products - Shows the number of out-of-stock products for each category 107 * Variable Products - Shows the number of variable products for each category 108 * Improved export functionality to include the new category data 109 * Fixed plugin code to meet WordPress.org guidelines 110 * Added formal WooCommerce dependency declaration 111 * Improved code organization and namespacing 145 * Fixed category names in reports, added in-stock, out-of-stock and variable product columns. 112 146 113 147 = 1.0.0 = 114 * Initial public release 115 * Added comprehensive product reporting 116 * Included export functionality (CSV, JSON, XML) 117 * Added multilingual support 118 * Implemented performance optimization with caching 148 * Initial release. 119 149 120 150 == Upgrade Notice == 121 151 122 = 1.0.2 = 123 This update adds Low Stock and Backorder tracking, improves the interface with pagination, and enhances category reporting with more detailed metrics. 124 125 = 1.0.1 = 126 This update fixes category name display in reports and adds new category detail columns (available, out-of-stock, and variable products). Highly recommended for all users. 127 128 = 1.0.0 = 129 Initial release of Totals Report for WooCommerce. 130 131 == Additional Information == 132 133 For more information, visit [BigDrop.gr](https://bigdrop.gr) 152 = 2.0.0 = 153 Complete rewrite with stock value, inventory snapshots for the year-end count, and new exports. Review the new Settings tab after updating. -
totals-report-for-woocommerce/trunk/totals-report-for-woocommerce.php
r3279294 r3750789 1 1 <?php 2 2 /** 3 * Totals Report for WooCommerce Plugin4 *5 * @package TotalsReportForWooCommerce6 * @author BigDrop.gr7 * @copyright 2024 BigDrop.gr8 * @license GPL-2.0-or-later9 *10 * @wordpress-plugin11 3 * Plugin Name: Totals Report for WooCommerce 12 4 * Plugin URI: https://bigdrop.gr/totals-report-for-woocommerce 13 * Description: Adds a comprehensive Totals page under the WooCommerce admin menu to display product counts, stock information, and export capabilities.14 * Version: 1.0.215 * Requires at least: 5.016 * Requires PHP: 7. 25 * Description: Stock totals and stock value by category or tag, year-end inventory snapshots, and exports your accountant can open in Excel. 6 * Version: 2.0.0 7 * Requires at least: 6.5 8 * Requires PHP: 7.4 17 9 * Requires Plugins: woocommerce 18 10 * Author: BigDrop.gr 19 11 * Author URI: https://bigdrop.gr 12 * License: GPL-2.0-or-later 13 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 20 14 * Text Domain: totals-report-for-woocommerce 21 15 * Domain Path: /languages 22 * License: GPL-2.0-or-later 23 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 24 * WC requires at least: 5.0.0 25 * WC tested up to: 9.7.1 26 * WooCommerce HPOS Compatible: true 16 * WC requires at least: 8.0 17 * WC tested up to: 11.2 18 * 19 * @package BigDrop\TotalsReport 27 20 */ 28 21 29 // Prevent direct file access. 30 if ( ! defined( 'ABSPATH' ) ) { 31 exit; 32 } 22 defined( 'ABSPATH' ) || exit; 33 23 34 // Define plugin constants. 35 define( 'TRWC_ VERSION', '1.0.2');36 define( 'TRWC_ PLUGIN_DIR', plugin_dir_path( __FILE__ ) );37 define( 'TRWC_ PLUGIN_URL', plugin_dir_url( __FILE__ ) );24 define( 'TRWC_VERSION', '2.0.0' ); 25 define( 'TRWC_FILE', __FILE__ ); 26 define( 'TRWC_DIR', plugin_dir_path( __FILE__ ) ); 27 define( 'TRWC_URL', plugin_dir_url( __FILE__ ) ); 38 28 define( 'TRWC_BASENAME', plugin_basename( __FILE__ ) ); 29 // Documentation page on bigdrop.gr (placeholder until the article is published). 30 define( 'TRWC_DOCS_URL', 'https://bigdrop.gr/totals-report-for-woocommerce' ); 31 define( 'TRWC_SUPPORT_URL', 'https://wordpress.org/support/plugin/totals-report-for-woocommerce/' ); 39 32 40 /** 41 * Check if WooCommerce is active 42 */ 43 function trwc_is_woocommerce_active() { 44 $active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); 45 46 // Check for single site 47 if ( in_array( 'woocommerce/woocommerce.php', $active_plugins, true ) ) { 48 return true; 49 } 50 51 // Check for multisite 52 if ( is_multisite() ) { 53 $network_active_plugins = array_keys( get_site_option( 'active_sitewide_plugins', [] ) ); 54 if ( in_array( 'woocommerce/woocommerce.php', $network_active_plugins, true ) ) { 55 return true; 56 } 57 } 58 59 return false; 60 } 33 spl_autoload_register( 34 static function ( $class_name ) { 35 $prefix = 'BigDrop\\TotalsReport\\'; 36 if ( 0 !== strpos( $class_name, $prefix ) ) { 37 return; 38 } 39 $relative = str_replace( '\\', '/', substr( $class_name, strlen( $prefix ) ) ); 40 $file = TRWC_DIR . 'includes/' . $relative . '.php'; 41 if ( is_readable( $file ) ) { 42 require $file; 43 } 44 } 45 ); 61 46 62 /** 63 * Add global admin notice at the top of the page 64 */ 65 function trwc_admin_notice() { 66 global $pagenow; 67 68 // Only show on the plugins page 69 if ( $pagenow !== 'plugins.php' ) { 70 return; 71 } 72 73 // Only show if WooCommerce is not active 74 if ( trwc_is_woocommerce_active() ) { 75 return; 76 } 77 78 // Use the same format as in the screenshot with red left border 79 echo '<div class="notice notice-error" style="border-left-color: #dc3232;">'; 80 echo '<p>' . esc_html__( 'Totals Report for WooCommerce cannot be activated because it requires the WooCommerce plugin to be installed and active.', 'totals-report-for-woocommerce' ) . '</p>'; 81 echo '</div>'; 82 } 83 add_action( 'admin_notices', 'trwc_admin_notice' ); 47 add_action( 48 'before_woocommerce_init', 49 static function () { 50 if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { 51 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', TRWC_FILE, true ); 52 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', TRWC_FILE, true ); 53 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cost_of_goods_sold', TRWC_FILE, true ); 54 } 55 } 56 ); 84 57 85 /** 86 * Add notice below plugin in the list 87 */ 88 function trwc_after_plugin_row( $plugin_file, $plugin_data, $status ) { 89 if ( trwc_is_woocommerce_active() ) { 90 return; 91 } 92 93 $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' ); 94 $colspan = $wp_list_table->get_column_count(); 95 96 echo '<tr class="plugin-update-tr active">'; 97 echo '<td colspan="' . esc_attr( $colspan ) . '" class="plugin-update colspanchange">'; 98 echo '<div class="update-message notice inline notice-error notice-alt">'; 99 echo '<p>' . esc_html__( 'This plugin cannot be activated because required plugins are missing or inactive.', 'totals-report-for-woocommerce' ) . '</p>'; 100 echo '</div>'; 101 echo '</td>'; 102 echo '</tr>'; 103 } 104 add_action( 'after_plugin_row_' . plugin_basename( __FILE__ ), 'trwc_after_plugin_row', 10, 3 ); 58 register_activation_hook( TRWC_FILE, array( '\BigDrop\TotalsReport\Install', 'activate' ) ); 59 register_deactivation_hook( TRWC_FILE, array( '\BigDrop\TotalsReport\Install', 'deactivate' ) ); 105 60 106 /** 107 * Modify plugin description to add "Requires: WooCommerce" 108 */ 109 function trwc_modify_plugin_description( $plugin_meta, $plugin_file, $plugin_data, $status ) { 110 if ( $plugin_file === plugin_basename( __FILE__ ) ) { 111 // Add "Requires: WooCommerce" text 112 echo '<br>'; 113 echo esc_html__( 'Requires:', 'totals-report-for-woocommerce' ) . ' <a href="' . esc_url( admin_url( 'plugin-install.php?s=woocommerce&tab=search&type=term' ) ) . '">WooCommerce</a>'; 114 } 115 116 return $plugin_meta; 117 } 118 add_action( 'plugin_row_meta', 'trwc_modify_plugin_description', 10, 4 ); 119 120 /** 121 * Prevent plugin activation when dependencies are not met 122 */ 123 function trwc_check_dependencies() { 124 if ( ! trwc_is_woocommerce_active() ) { 125 // Make sure Totals Report for WooCommerce is not active 126 if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) { 127 deactivate_plugins( plugin_basename( __FILE__ ) ); 128 129 // Prevent WordPress from redirecting to the activation page 130 if ( isset( $_GET['activate'] ) && ! isset( $_REQUEST['_wpnonce'] ) ) { 131 // Check if this is an admin request 132 if ( is_admin() ) { 133 wp_verify_nonce( null ); 134 } 135 unset( $_GET['activate'] ); 136 } 137 } 138 } 139 } 140 add_action( 'admin_init', 'trwc_check_dependencies' ); 141 142 /** 143 * Activation hook 144 */ 145 register_activation_hook( __FILE__, 'trwc_activate' ); 146 147 function trwc_activate() { 148 // Check if WooCommerce is active 149 if ( ! trwc_is_woocommerce_active() ) { 150 // Deactivate our plugin 151 deactivate_plugins( plugin_basename( __FILE__ ) ); 152 153 // Stop activation and show error 154 wp_die( esc_html__( 'Totals Report for WooCommerce requires WooCommerce to be installed and active. Please install and activate WooCommerce first, then activate this plugin.', 'totals-report-for-woocommerce' ) ); 155 } 156 157 // Normal activation tasks 158 $current_version = get_option( 'trwc_version' ); 159 160 // First-time installation 161 if ( ! $current_version ) { 162 update_option( 'trwc_version', TRWC_VERSION ); 163 } 164 165 // Version update logic 166 if ( version_compare( $current_version, TRWC_VERSION, '<' ) ) { 167 update_option( 'trwc_version', TRWC_VERSION ); 168 } 169 } 170 171 // Only proceed if WooCommerce is active 172 if ( ! trwc_is_woocommerce_active() ) { 173 return; 174 } 175 176 // Include necessary files. 177 require_once TRWC_PLUGIN_DIR . 'includes/class-trwc-report.php'; 178 require_once TRWC_PLUGIN_DIR . 'includes/class-trwc-report-export.php'; 179 require_once TRWC_PLUGIN_DIR . 'includes/class-trwc-report-admin.php'; 180 181 // Initialize the plugin. 182 function trwc_init() { 183 // No need for load_plugin_textdomain since WordPress 4.6+ for plugins hosted on WordPress.org 184 185 // Initialize classes 186 TRWC_Report::get_instance(); 187 TRWC_Report_Export::get_instance(); 188 TRWC_Report_Admin::get_instance(); 189 } 190 add_action( 'plugins_loaded', 'trwc_init' ); 191 192 // Add HPOS compatibility. 193 add_action( 'before_woocommerce_init', function() { 194 if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { 195 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 196 } 197 } ); 198 199 // Deactivation hook. 200 register_deactivation_hook( __FILE__, 'trwc_deactivate' ); 201 202 /** 203 * Plugin deactivation routine. 204 */ 205 function trwc_deactivate() { 206 // Cleanup tasks if needed 207 } 61 add_action( 'plugins_loaded', array( '\BigDrop\TotalsReport\Plugin', 'boot' ) ); -
totals-report-for-woocommerce/trunk/uninstall.php
r3279294 r3750789 1 1 <?php 2 // If uninstall is not called from WordPress, exit 3 if (!defined('WP_UNINSTALL_PLUGIN')) { 4 exit; 2 /** 3 * Uninstall: always removes scheduled work, transients and notice flags; removes the snapshot 4 * tables and the settings only when "Delete snapshots and settings when the plugin is deleted" is on. 5 * 6 * @package BigDrop\TotalsReport 7 */ 8 9 defined( 'WP_UNINSTALL_PLUGIN' ) || exit; 10 defined( 'ABSPATH' ) || exit; 11 12 // phpcs:disable WordPress.DB.DirectDatabaseQuery, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Removing this plugin's own data. 13 14 /** 15 * Clean one site. 16 */ 17 function trwc_uninstall_site() { 18 global $wpdb; 19 20 // Scheduled actions of the `trwc` group (and our hooks), with or without Action Scheduler loaded. 21 if ( function_exists( 'as_unschedule_all_actions' ) && class_exists( 'ActionScheduler' ) && ActionScheduler::is_initialized() ) { 22 as_unschedule_all_actions( '', array(), 'trwc' ); 23 foreach ( array( 'trwc_scheduled_snapshot', 'trwc_email_report', 'trwc_daily_maintenance', 'trwc_snapshot_batch' ) as $trwc_hook ) { 24 as_unschedule_all_actions( $trwc_hook ); 25 } 26 } else { 27 $trwc_actions = $wpdb->prefix . 'actionscheduler_actions'; 28 $trwc_groups = $wpdb->prefix . 'actionscheduler_groups'; 29 if ( $trwc_actions === $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $trwc_actions ) ) ) ) { 30 $wpdb->query( $wpdb->prepare( "DELETE FROM %i WHERE hook IN ('trwc_scheduled_snapshot','trwc_email_report','trwc_daily_maintenance','trwc_snapshot_batch') AND status IN ('pending','in-progress')", $trwc_actions ) ); 31 if ( $trwc_groups === $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $trwc_groups ) ) ) ) { 32 $wpdb->query( $wpdb->prepare( "DELETE a FROM %i a INNER JOIN %i g ON g.group_id = a.group_id WHERE g.slug = 'trwc' AND a.status IN ('pending','in-progress')", $trwc_actions, $trwc_groups ) ); 33 } 34 } 35 } 36 37 delete_transient( 'trwc_widget_data' ); 38 delete_transient( 'trwc_test_email_lock' ); 39 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '\\_transient\\_trwc\\_notice\\_%' OR option_name LIKE '\\_transient\\_timeout\\_trwc\\_notice\\_%'" ); 40 foreach ( array( 'trwc_snapshot_lock', 'trwc_snapshot_batch_lock', 'trwc_upgraded_from', 'trwc_needs_setup', 'trwc_next_snapshot', 'trwc_next_email' ) as $trwc_option ) { 41 delete_option( $trwc_option ); 42 } 43 44 // Temporary attachment folders left by an interrupted email. 45 $trwc_uploads = wp_upload_dir( null, false ); 46 foreach ( (array) glob( trailingslashit( $trwc_uploads['basedir'] ) . 'trwc-tmp-*', GLOB_ONLYDIR ) as $trwc_dir ) { 47 // Two plain patterns (GLOB_BRACE is missing on some PHP builds): visible and hidden files. 48 foreach ( array_merge( (array) glob( $trwc_dir . '/*' ), (array) glob( $trwc_dir . '/.*' ) ) as $trwc_file ) { 49 if ( is_file( $trwc_file ) ) { 50 wp_delete_file( $trwc_file ); 51 } 52 } 53 rmdir( $trwc_dir ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_rmdir -- Our own temporary folder. 54 } 55 56 $trwc_settings = get_option( 'trwc_settings' ); 57 if ( is_array( $trwc_settings ) && ! empty( $trwc_settings['delete_data'] ) ) { 58 $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'trwc_snapshot_items' ) ); 59 $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'trwc_snapshots' ) ); 60 foreach ( array( 'trwc_settings', 'trwc_version', 'trwc_db_version', 'trwc_settings_saved_at' ) as $trwc_option ) { 61 delete_option( $trwc_option ); 62 } 63 } elseif ( false !== get_option( 'trwc_version', false ) ) { 64 // Data kept: if the plugin is installed again, its schedule must be set up again. 65 update_option( 'trwc_needs_setup', 1, false ); 66 } 5 67 } 6 68 7 // Delete plugin options 8 delete_option('trwc_version'); 69 if ( is_multisite() ) { 70 foreach ( get_sites( 71 array( 72 'fields' => 'ids', 73 'number' => 0, 74 ) 75 ) as $trwc_site_id ) { 76 switch_to_blog( (int) $trwc_site_id ); 77 trwc_uninstall_site(); 78 restore_current_blog(); 79 } 80 } else { 81 trwc_uninstall_site(); 82 } 83 84 // The dismissed-notice flag is user meta (shared by every site of a network). 85 delete_metadata( 'user', 0, 'trwc_dismissed_upgrade_notice', '', true );
Note:
See TracChangeset
for help on using the changeset viewer.