Changeset 3758176
- Timestamp:
- 10/21/2026 10:49:10 AM (4 weeks ago)
- Location:
- merchlint-duplicate-sku-finder
- Files:
-
- 1 added
- 11 edited
-
assets/screenshot-1.png (modified) ( previous)
-
assets/screenshot-2.png (modified) ( previous)
-
assets/screenshot-3.png (modified) ( previous)
-
trunk/assets/admin.css (modified) (1 diff)
-
trunk/merchlint-duplicate-sku-finder.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/src/Admin/PelnyAudyt.php (added)
-
trunk/src/Admin/Screen.php (modified) (5 diffs)
-
trunk/src/Core/Dto/ProductRecord.php (modified) (3 diffs)
-
trunk/src/Core/Dto/ProductRecordBuilder.php (modified) (3 diffs)
-
trunk/src/Core/Dto/VariationSummary.php (modified) (1 diff)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
merchlint-duplicate-sku-finder/trunk/assets/admin.css
r3747016 r3758176 200 200 } 201 201 202 .skufinder-recenzja__zamknij { 202 /* Ten sam odstep przy "Don’t show again" w ramce o Merchlincie (od 0.1.3). */ 203 .skufinder-recenzja__zamknij, 204 .skufinder-pelny-audyt__ukryj { 203 205 margin-inline-start: 12px; 204 206 line-height: 30px; -
merchlint-duplicate-sku-finder/trunk/merchlint-duplicate-sku-finder.php
r3747016 r3758176 4 4 * Plugin URI: https://merchlint.com/duplicate-sku-finder/ 5 5 * Description: Finds products sharing an SKU, and products sharing or missing a GTIN. Read-only: it never writes to your catalogue. 6 * Version: 0.1. 26 * Version: 0.1.3 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 … … 35 35 } 36 36 37 define( 'SKUFINDER_VERSION', '0.1. 2' );37 define( 'SKUFINDER_VERSION', '0.1.3' ); 38 38 define( 'SKUFINDER_FILE', __FILE__ ); 39 39 define( 'SKUFINDER_DIR', plugin_dir_path( __FILE__ ) ); -
merchlint-duplicate-sku-finder/trunk/readme.txt
r3747016 r3758176 6 6 Requires PHP: 7.4 7 7 Requires Plugins: woocommerce 8 Stable tag: 0.1. 28 Stable tag: 0.1.3 9 9 License: GPL-2.0-or-later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 50 50 as faulty. 51 51 52 = Where the audit engine comes from = 53 54 The scanning engine is the one behind Merchlint, a full WooCommerce catalogue audit from the same 55 author. This plugin carries its own copy with its own class names, so both can run side by side. 52 = A small part of Merchlint = 53 54 These three checks come from [Merchlint](https://wordpress.org/plugins/merchlint/), a free audit of 55 the whole WooCommerce catalogue from the same author. Besides SKUs and identifiers it finds products 56 that sold in the past year and can no longer be bought, products with no price or no photo, sale 57 prices that should have ended and images with no alt text, each with the money at stake. This 58 plugin carries its own copy of the scanning engine with its own class names, so both can run side 59 by side. 56 60 57 61 == Installation == … … 115 119 = Does it change anything in my shop? = 116 120 117 No. It reads the catalogue and writes nothing back. It keeps two things of its own: the last result,118 so that reloading the page does not require another scan, and - once you answer the review request 119 under the results - a note in your user profile, so that the request does not come back. Deleting the 120 plugin removes both.121 No. It reads the catalogue and writes nothing back. It keeps a few things of its own: the last 122 result, so that reloading the page does not require another scan, and a note in your user profile 123 once you answer the review request or hide the note about Merchlint under the results, so that 124 neither comes back. Deleting the plugin removes all of them. 121 125 122 126 = My shop is multilingual. Will translations be reported as duplicates? = … … 147 151 148 152 == Changelog == 153 154 = 0.1.3 = 155 * A line under the title now says where these three checks come from: Merchlint, a free audit of 156 the whole catalogue from the same author. Below the results, a short note lists what else it 157 checks, with a button that opens the standard WordPress plugin details window - nothing is 158 installed until you press Install Now there. "Don’t show again" hides the note for your user only; 159 deleting the plugin removes that setting too. When Merchlint is already active, the note does not 160 appear and the line links to its screen. The links carry no tracking parameters. 149 161 150 162 = 0.1.2 = -
merchlint-duplicate-sku-finder/trunk/src/Admin/Screen.php
r3747016 r3758176 12 12 * NICZEGO NIE ZAPISUJE W KATALOGU. Jedyny zapis to ostatni wynik w opcji 13 13 * `skufinder_ostatni`; od 0.1.2 dochodzi znacznik prosby o recenzje przy 14 * uzytkowniku (`Recenzja::META`) - ustawienie panelu, nie dana sklepu. 14 * uzytkowniku (`Recenzja::META`), a od 0.1.3 znacznik ukrytej ramki 15 * o Merchlincie (`PelnyAudyt::META`) - ustawienia panelu, nie dane sklepu. 15 16 * 16 17 * @package DuplicateSkuFinder … … 73 74 add_action( 'admin_post_skufinder_csv', array( __CLASS__, 'csv' ) ); 74 75 Recenzja::register(); 76 PelnyAudyt::register(); 75 77 } 76 78 … … 84 86 } 85 87 wp_enqueue_style( 'skufinder-admin', plugins_url( 'assets/admin.css', SKUFINDER_FILE ), array( 'dashicons' ), SKUFINDER_VERSION ); 88 PelnyAudyt::skrypty(); 86 89 } 87 90 … … 292 295 esc_html__( 'Finds products sharing an SKU, and products sharing or missing a product identifier (GTIN, UPC, EAN, ISBN). It reads your catalogue and writes nothing back.', 'merchlint-duplicate-sku-finder' ) 293 296 ); 297 PelnyAudyt::zdanie(); 294 298 295 299 // DUZY KATALOG: SKAN IDZIE W JEDNYM ZADANIU. … … 445 449 printf( '<p class="skufinder-csv"><a class="button" href="%s">%s</a></p>', esc_url( $csv ), esc_html__( 'Download CSV', 'merchlint-duplicate-sku-finder' ) ); 446 450 447 // Na samym koncu, pod wynikami - patrz warunki w Recenzja. 451 // Pod wynikami: najpierw Merchlint (od 0.1.3), na samym koncu prosba 452 // o recenzje - warunki w obu klasach. 453 PelnyAudyt::render(); 448 454 Recenzja::render(); 449 455 echo '</div>'; -
merchlint-duplicate-sku-finder/trunk/src/Core/Dto/ProductRecord.php
r3747016 r3758176 131 131 */ 132 132 private $giftCard; 133 134 /** 135 * Wlasny stan produktu, gdy dostawca liczy stockStatus inaczej - patrz ownStockStatus(). 136 * 137 * @var string|null null = ten sam co stockStatus 138 */ 139 private $ownStockStatus; 140 141 /** @var int|null liczba sztuk do ownStockStatus; bez znaczenia, gdy ten jest null */ 142 private $ownStockQuantity; 133 143 134 144 /** … … 162 172 ?string $gtinSurowy = null, 163 173 bool $giftCard = false, 164 ?string $imageAlt = null 174 ?string $imageAlt = null, 175 ?string $ownStockStatus = null, 176 ?int $ownStockQuantity = null 165 177 ) { 178 $this->ownStockStatus = $ownStockStatus; 179 $this->ownStockQuantity = $ownStockQuantity; 166 180 $this->giftCard = $giftCard; 167 181 $this->imageAlt = $imageAlt; … … 320 334 } 321 335 336 /** 337 * Wlasny stan produktu - ten, ktory czytaja listy kategorii, wyszukiwarka i dane dla Google (B10). 338 * 339 * Na WooCommerce to stockStatus(): `_stock_status` produktu nadrzednego czyta wszystko poza 340 * formularzem wariantow. Na Shoperze nie: stan produktu z wariantami dostawca liczy 341 * z wariantow, bo to one rozstrzygaja, czy da sie kupic (A1, B5), a lista kategorii i dane 342 * dla Google na karcie biora stan z wiersza bazowego produktu, ktory Shoper prowadzi osobno 343 * (devshop 18.10.2026, Platformy/Plan/02 par. 6). Ten drugi stan dostawca podaje tutaj. 344 */ 345 public function ownStockStatus(): string { 346 return $this->ownStockStatus ?? $this->stockStatus; 347 } 348 349 /** Sztuki do ownStockStatus(); null - nikt ich nie prowadzi (jak stockQuantity()). */ 350 public function ownStockQuantity(): ?int { 351 return null !== $this->ownStockStatus ? $this->ownStockQuantity : $this->stockQuantity; 352 } 353 354 /** Produkt sam o sobie mowi "brak" - na liscie, w wyszukiwarce, dla Google (B10). */ 355 public function isMarkedUnavailable(): bool { 356 return self::STOCK_OUT === $this->ownStockStatus(); 357 } 358 322 359 public function salePrice(): string { 323 360 return $this->salePrice; -
merchlint-duplicate-sku-finder/trunk/src/Core/Dto/ProductRecordBuilder.php
r3747016 r3758176 110 110 private $giftCard = false; 111 111 112 /** @var string|null null = jak stockStatus */ 113 private $ownStockStatus = null; 114 115 /** @var int|null */ 116 private $ownStockQuantity = null; 117 112 118 private function __construct( int $id, string $name ) { 113 119 $this->id = $id; … … 133 139 $this->stockStatus = $status; 134 140 $this->stockQuantity = $quantity; 141 return $this; 142 } 143 144 /** 145 * Wlasny stan produktu, gdy rozni sie od stock() - patrz ProductRecord::ownStockStatus(). 146 * Bez wywolania wlasny stan to stock() (WooCommerce). 147 */ 148 public function ownStock( string $status, ?int $quantity = null ): self { 149 $this->ownStockStatus = $status; 150 $this->ownStockQuantity = $quantity; 135 151 return $this; 136 152 } … … 280 296 $this->gtinSurowy, 281 297 $this->giftCard, 282 $this->imageAlt 298 $this->imageAlt, 299 $this->ownStockStatus, 300 $this->ownStockQuantity 283 301 ); 284 302 } -
merchlint-duplicate-sku-finder/trunk/src/Core/Dto/VariationSummary.php
r3747016 r3758176 85 85 * sztuk. 86 86 * 87 * NULL TO NIE ZERO. Dostawca, ktory tego nie liczy (Shoper - B10 jest tam poza 88 * lista, Plan/25 par. 3), oddaje null, a regula zachowuje sie jak przed B10. 87 * NULL TO NIE ZERO. Dostawca, ktory tego nie liczy, oddaje null, a regula zachowuje 88 * sie jak przed B10. Shoper liczy od 18.10.2026: wariant aktywny, z cena, z dostepnoscia 89 * pozwalajaca kupic (SyncedProductProvider::WARIANT_DO_KUPIENIA, Plan/27 par. 1). 89 90 * 90 91 * @var int|null -
merchlint-duplicate-sku-finder/trunk/uninstall.php
r3747016 r3758176 48 48 // wszystkim uzytkownikom naraz. 49 49 delete_metadata( 'user', 0, 'skufinder_recenzja', '', true ); 50 51 // Znacznik ukrytej ramki o Merchlincie (PelnyAudyt::META, od 0.1.3) - ta sama 52 // tabela i ten sam powod. 53 delete_metadata( 'user', 0, 'skufinder_pelny_audyt', '', true );
Note:
See TracChangeset
for help on using the changeset viewer.