Plugin Directory

Changeset 3758176


Ignore:
Timestamp:
10/21/2026 10:49:10 AM (4 weeks ago)
Author:
baltano
Message:

Release 0.1.3: where the three checks come from

Location:
merchlint-duplicate-sku-finder
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • merchlint-duplicate-sku-finder/trunk/assets/admin.css

    r3747016 r3758176  
    200200}
    201201
    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 {
    203205        margin-inline-start: 12px;
    204206        line-height: 30px;
  • merchlint-duplicate-sku-finder/trunk/merchlint-duplicate-sku-finder.php

    r3747016 r3758176  
    44 * Plugin URI:        https://merchlint.com/duplicate-sku-finder/
    55 * 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.2
     6 * Version:           0.1.3
    77 * Requires at least: 6.5
    88 * Requires PHP:      7.4
    … …  
    3535}
    3636
    37 define( 'SKUFINDER_VERSION', '0.1.2' );
     37define( 'SKUFINDER_VERSION', '0.1.3' );
    3838define( 'SKUFINDER_FILE', __FILE__ );
    3939define( 'SKUFINDER_DIR', plugin_dir_path( __FILE__ ) );
  • merchlint-duplicate-sku-finder/trunk/readme.txt

    r3747016 r3758176  
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 0.1.2
     8Stable tag: 0.1.3
    99License: GPL-2.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5050as faulty.
    5151
    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
     54These three checks come from [Merchlint](https://wordpress.org/plugins/merchlint/), a free audit of
     55the whole WooCommerce catalogue from the same author. Besides SKUs and identifiers it finds products
     56that sold in the past year and can no longer be bought, products with no price or no photo, sale
     57prices that should have ended and images with no alt text, each with the money at stake. This
     58plugin carries its own copy of the scanning engine with its own class names, so both can run side
     59by side.
    5660
    5761== Installation ==
    … …  
    115119= Does it change anything in my shop? =
    116120
    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.
     121No. It reads the catalogue and writes nothing back. It keeps a few things of its own: the last
     122result, so that reloading the page does not require another scan, and a note in your user profile
     123once you answer the review request or hide the note about Merchlint under the results, so that
     124neither comes back. Deleting the plugin removes all of them.
    121125
    122126= My shop is multilingual. Will translations be reported as duplicates? =
    … …  
    147151
    148152== 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.
    149161
    150162= 0.1.2 =
  • merchlint-duplicate-sku-finder/trunk/src/Admin/Screen.php

    r3747016 r3758176  
    1212 * NICZEGO NIE ZAPISUJE W KATALOGU. Jedyny zapis to ostatni wynik w opcji
    1313 * `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.
    1516 *
    1617 * @package DuplicateSkuFinder
    … …  
    7374                add_action( 'admin_post_skufinder_csv', array( __CLASS__, 'csv' ) );
    7475                Recenzja::register();
     76                PelnyAudyt::register();
    7577        }
    7678
    … …  
    8486                }
    8587                wp_enqueue_style( 'skufinder-admin', plugins_url( 'assets/admin.css', SKUFINDER_FILE ), array( 'dashicons' ), SKUFINDER_VERSION );
     88                PelnyAudyt::skrypty();
    8689        }
    8790
    … …  
    292295                        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' )
    293296                );
     297                PelnyAudyt::zdanie();
    294298
    295299                // DUZY KATALOG: SKAN IDZIE W JEDNYM ZADANIU.
    … …  
    445449                printf( '<p class="skufinder-csv"><a class="button" href="%s">%s</a></p>', esc_url( $csv ), esc_html__( 'Download CSV', 'merchlint-duplicate-sku-finder' ) );
    446450
    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();
    448454                Recenzja::render();
    449455                echo '</div>';
  • merchlint-duplicate-sku-finder/trunk/src/Core/Dto/ProductRecord.php

    r3747016 r3758176  
    131131         */
    132132        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;
    133143
    134144        /**
    … …  
    162172                ?string $gtinSurowy = null,
    163173                bool $giftCard = false,
    164                 ?string $imageAlt = null
     174                ?string $imageAlt = null,
     175                ?string $ownStockStatus = null,
     176                ?int $ownStockQuantity = null
    165177        ) {
     178                $this->ownStockStatus    = $ownStockStatus;
     179                $this->ownStockQuantity  = $ownStockQuantity;
    166180                $this->giftCard          = $giftCard;
    167181                $this->imageAlt          = $imageAlt;
    … …  
    320334        }
    321335
     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
    322359        public function salePrice(): string {
    323360                return $this->salePrice;
  • merchlint-duplicate-sku-finder/trunk/src/Core/Dto/ProductRecordBuilder.php

    r3747016 r3758176  
    110110        private $giftCard = false;
    111111
     112        /** @var string|null null = jak stockStatus */
     113        private $ownStockStatus = null;
     114
     115        /** @var int|null */
     116        private $ownStockQuantity = null;
     117
    112118        private function __construct( int $id, string $name ) {
    113119                $this->id   = $id;
    … …  
    133139                $this->stockStatus   = $status;
    134140                $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;
    135151                return $this;
    136152        }
    … …  
    280296                        $this->gtinSurowy,
    281297                        $this->giftCard,
    282                         $this->imageAlt
     298                        $this->imageAlt,
     299                        $this->ownStockStatus,
     300                        $this->ownStockQuantity
    283301                );
    284302        }
  • merchlint-duplicate-sku-finder/trunk/src/Core/Dto/VariationSummary.php

    r3747016 r3758176  
    8585         * sztuk.
    8686         *
    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).
    8990         *
    9091         * @var int|null
  • merchlint-duplicate-sku-finder/trunk/uninstall.php

    r3747016 r3758176  
    4848// wszystkim uzytkownikom naraz.
    4949delete_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.
     53delete_metadata( 'user', 0, 'skufinder_pelny_audyt', '', true );
Note: See TracChangeset for help on using the changeset viewer.