Plugin Directory

Changeset 3842706


Ignore:
Timestamp:
12/03/2026 02:59:14 PM (6 hours ago)
Author:
facilitech
Message:

Conforme FR 1.0.4

Prix de référence affiché hors taxes sur une boutique qui affiche ses prix
hors taxes ; description du bloc Omnibus et mots-clés des blocs à jour ;
bannière et captures avec le nouveau libellé et le menu Conforme FR.

Co-Authored-By: Claude Opus 5.5 <noreply@…>

Location:
conforme-fr
Files:
83 added
14 edited
8 copied

Legend:

Unmodified
Added
Removed
  • conforme-fr/tags/1.0.4/blocks/omnibus-reference-price/block.json

    r3842629 r3842706  
    77  "category": "widgets",
    88  "icon": "chart-line",
    9   "description": "Affiche le prix le plus bas constaté sur les 30 derniers jours.",
    10   "keywords": ["conformité fr"],
     9  "description": "Affiche le prix le plus bas des 30 jours précédant la promotion.",
     10  "keywords": ["conforme fr", "conformité"],
    1111  "textdomain": "conforme-fr",
    1212  "supports": {
  • conforme-fr/tags/1.0.4/blocks/retractation/block.json

    r3842629 r3842706  
    88  "icon": "media-document",
    99  "description": "Affiche l'encart de droit de rétractation et le lien vers le formulaire type.",
    10   "keywords": ["conformité fr"],
     10  "keywords": ["conforme fr", "conformité"],
    1111  "textdomain": "conforme-fr",
    1212  "supports": {
  • conforme-fr/tags/1.0.4/blocks/review-verification/block.json

    r3842629 r3842706  
    88  "icon": "star-filled",
    99  "description": "Affiche la méthode de vérification des avis clients.",
    10   "keywords": ["conformité fr"],
     10  "keywords": ["conforme fr", "conformité"],
    1111  "textdomain": "conforme-fr",
    1212  "supports": {
  • conforme-fr/tags/1.0.4/conforme-fr.php

    r3842629 r3842706  
    44 * Plugin URI: https://conforme-wp.fr/
    55 * Description: Aide les boutiques WooCommerce françaises à afficher le prix de référence Omnibus et les informations avant achat (droit de rétractation).
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Requires at least: 6.5
    88 * Requires PHP: 8.1
    … …  
    2222}
    2323
    24 define( 'WCCFR_VERSION', '1.0.3' );
     24define( 'WCCFR_VERSION', '1.0.4' );
    2525define( 'WCCFR_FILE', __FILE__ );
    2626define( 'WCCFR_PATH', plugin_dir_path( __FILE__ ) );
  • conforme-fr/tags/1.0.4/languages/conforme-fr.pot

    r3842629 r3842706  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Conforme FR – French Compliance for WooCommerce 1.0.3\n"
     5"Project-Id-Version: Conforme FR – French Compliance for WooCommerce 1.0.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/conforme-fr\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-12-03T14:02:58+00:00\n"
     12"POT-Creation-Date: 2026-12-03T14:52:07+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    527527
    528528#: src/Admin/Help_Page.php:150
    529 msgid "Dans l'éditeur, tapez « / » puis « Conformité » pour les retrouver."
     529msgid "Dans l'éditeur, tapez « / » puis « Conforme FR » pour les retrouver."
    530530msgstr ""
    531531
    … …  
    20332033#: blocks/omnibus-reference-price/block.json
    20342034msgctxt "block description"
    2035 msgid "Affiche le prix le plus bas constaté sur les 30 derniers jours."
     2035msgid "Affiche le prix le plus bas des 30 jours précédant la promotion."
    20362036msgstr ""
    20372037
    … …  
    20402040#: blocks/review-verification/block.json
    20412041msgctxt "block keyword"
    2042 msgid "conformité fr"
     2042msgid "conforme fr"
     2043msgstr ""
     2044
     2045#: blocks/omnibus-reference-price/block.json
     2046#: blocks/retractation/block.json
     2047#: blocks/review-verification/block.json
     2048msgctxt "block keyword"
     2049msgid "conformité"
    20432050msgstr ""
    20442051
  • conforme-fr/tags/1.0.4/readme.txt

    r3842629 r3842706  
    55Tested up to: 7.1
    66Requires PHP: 8.1
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7171== External services ==
    7272
    73 This plugin connects to the Facilitech licensing service (https://api.facilitech.fr) only after you enter a license key for one of the paid companion plugins, in Conformité FR > Réglages > Licence. Nothing is sent before that.
     73This plugin connects to the Facilitech licensing service (https://api.facilitech.fr) only after you enter a license key for one of the paid companion plugins, in Conforme FR > Réglages > Licence. Nothing is sent before that.
    7474
    7575* When: when you activate, check or deactivate the key, and once a day while a key is saved, to confirm it is still valid.
    … …  
    8080
    8181== Changelog ==
     82
     83= 1.0.4 =
     84
     85* Omnibus: on a shop that shows its prices without tax, the reference price is shown without tax too, like the struck-through price next to it. It was shown as entered, with tax.
     86* Omnibus block: its description gives the rule as the plugin applies it, the lowest price of the 30 days before the promotion.
     87* Blocks are found in the inserter by typing "Conforme FR" (or "conformité").
    8288
    8389= 1.0.3 =
  • conforme-fr/tags/1.0.4/src/Admin/Help_Page.php

    r3842629 r3842706  
    148148                                <div>
    149149                                        <h2 id="wccfr-help-blocks"><?php esc_html_e( 'Blocs Gutenberg', 'conforme-fr' ); ?></h2>
    150                                         <p><?php esc_html_e( 'Dans l\'éditeur, tapez « / » puis « Conformité » pour les retrouver.', 'conforme-fr' ); ?></p>
     150                                        <p><?php esc_html_e( 'Dans l\'éditeur, tapez « / » puis « Conforme FR » pour les retrouver.', 'conforme-fr' ); ?></p>
    151151                                </div>
    152152                        </div>
  • conforme-fr/tags/1.0.4/src/Modules/Omnibus/Renderer.php

    r3842629 r3842706  
    8282                }
    8383
    84                 $current_price    = (float) $current_price;
     84                // Shown as the shop shows its prices, with or without tax, so that the
     85                // reference compares with the struck-through price next to it.
     86                $reference_price  = $this->to_display_price( $product, $reference_price );
     87                $current_price    = $this->to_display_price( $product, (float) $current_price );
    8588                $discount_percent = null;
    8689
    … …  
    121124
    122125        /**
     126         * A price as the shop displays it, with or without tax (WooCommerce
     127         * setting). The history stores prices as they were entered.
     128         *
     129         * @param mixed $product WooCommerce product object.
     130         * @param float $price   Price as entered.
     131         */
     132        private function to_display_price( mixed $product, float $price ): float {
     133                if ( ! function_exists( 'wc_get_price_to_display' ) ) {
     134                        return $price;
     135                }
     136
     137                return (float) wc_get_price_to_display(
     138                        $product,
     139                        array(
     140                                'price' => $price,
     141                                'qty'   => 1,
     142                        )
     143                );
     144        }
     145
     146        /**
    123147         * Checks whether the object looks like a WooCommerce product.
    124148         */
  • conforme-fr/trunk/blocks/omnibus-reference-price/block.json

    r3842176 r3842706  
    77  "category": "widgets",
    88  "icon": "chart-line",
    9   "description": "Affiche le prix le plus bas constaté sur les 30 derniers jours.",
    10   "keywords": ["conformité fr"],
     9  "description": "Affiche le prix le plus bas des 30 jours précédant la promotion.",
     10  "keywords": ["conforme fr", "conformité"],
    1111  "textdomain": "conforme-fr",
    1212  "supports": {
  • conforme-fr/trunk/blocks/retractation/block.json

    r3842176 r3842706  
    88  "icon": "media-document",
    99  "description": "Affiche l'encart de droit de rétractation et le lien vers le formulaire type.",
    10   "keywords": ["conformité fr"],
     10  "keywords": ["conforme fr", "conformité"],
    1111  "textdomain": "conforme-fr",
    1212  "supports": {
  • conforme-fr/trunk/blocks/review-verification/block.json

    r3842176 r3842706  
    88  "icon": "star-filled",
    99  "description": "Affiche la méthode de vérification des avis clients.",
    10   "keywords": ["conformité fr"],
     10  "keywords": ["conforme fr", "conformité"],
    1111  "textdomain": "conforme-fr",
    1212  "supports": {
  • conforme-fr/trunk/conforme-fr.php

    r3842629 r3842706  
    44 * Plugin URI: https://conforme-wp.fr/
    55 * Description: Aide les boutiques WooCommerce françaises à afficher le prix de référence Omnibus et les informations avant achat (droit de rétractation).
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Requires at least: 6.5
    88 * Requires PHP: 8.1
    … …  
    2222}
    2323
    24 define( 'WCCFR_VERSION', '1.0.3' );
     24define( 'WCCFR_VERSION', '1.0.4' );
    2525define( 'WCCFR_FILE', __FILE__ );
    2626define( 'WCCFR_PATH', plugin_dir_path( __FILE__ ) );
  • conforme-fr/trunk/languages/conforme-fr.pot

    r3842629 r3842706  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Conforme FR – French Compliance for WooCommerce 1.0.3\n"
     5"Project-Id-Version: Conforme FR – French Compliance for WooCommerce 1.0.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/conforme-fr\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-12-03T14:02:58+00:00\n"
     12"POT-Creation-Date: 2026-12-03T14:52:07+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    527527
    528528#: src/Admin/Help_Page.php:150
    529 msgid "Dans l'éditeur, tapez « / » puis « Conformité » pour les retrouver."
     529msgid "Dans l'éditeur, tapez « / » puis « Conforme FR » pour les retrouver."
    530530msgstr ""
    531531
    … …  
    20332033#: blocks/omnibus-reference-price/block.json
    20342034msgctxt "block description"
    2035 msgid "Affiche le prix le plus bas constaté sur les 30 derniers jours."
     2035msgid "Affiche le prix le plus bas des 30 jours précédant la promotion."
    20362036msgstr ""
    20372037
    … …  
    20402040#: blocks/review-verification/block.json
    20412041msgctxt "block keyword"
    2042 msgid "conformité fr"
     2042msgid "conforme fr"
     2043msgstr ""
     2044
     2045#: blocks/omnibus-reference-price/block.json
     2046#: blocks/retractation/block.json
     2047#: blocks/review-verification/block.json
     2048msgctxt "block keyword"
     2049msgid "conformité"
    20432050msgstr ""
    20442051
  • conforme-fr/trunk/readme.txt

    r3842629 r3842706  
    55Tested up to: 7.1
    66Requires PHP: 8.1
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7171== External services ==
    7272
    73 This plugin connects to the Facilitech licensing service (https://api.facilitech.fr) only after you enter a license key for one of the paid companion plugins, in Conformité FR > Réglages > Licence. Nothing is sent before that.
     73This plugin connects to the Facilitech licensing service (https://api.facilitech.fr) only after you enter a license key for one of the paid companion plugins, in Conforme FR > Réglages > Licence. Nothing is sent before that.
    7474
    7575* When: when you activate, check or deactivate the key, and once a day while a key is saved, to confirm it is still valid.
    … …  
    8080
    8181== Changelog ==
     82
     83= 1.0.4 =
     84
     85* Omnibus: on a shop that shows its prices without tax, the reference price is shown without tax too, like the struck-through price next to it. It was shown as entered, with tax.
     86* Omnibus block: its description gives the rule as the plugin applies it, the lowest price of the 30 days before the promotion.
     87* Blocks are found in the inserter by typing "Conforme FR" (or "conformité").
    8288
    8389= 1.0.3 =
  • conforme-fr/trunk/src/Admin/Help_Page.php

    r3842629 r3842706  
    148148                                <div>
    149149                                        <h2 id="wccfr-help-blocks"><?php esc_html_e( 'Blocs Gutenberg', 'conforme-fr' ); ?></h2>
    150                                         <p><?php esc_html_e( 'Dans l\'éditeur, tapez « / » puis « Conformité » pour les retrouver.', 'conforme-fr' ); ?></p>
     150                                        <p><?php esc_html_e( 'Dans l\'éditeur, tapez « / » puis « Conforme FR » pour les retrouver.', 'conforme-fr' ); ?></p>
    151151                                </div>
    152152                        </div>
  • conforme-fr/trunk/src/Modules/Omnibus/Renderer.php

    r3842176 r3842706  
    8282                }
    8383
    84                 $current_price    = (float) $current_price;
     84                // Shown as the shop shows its prices, with or without tax, so that the
     85                // reference compares with the struck-through price next to it.
     86                $reference_price  = $this->to_display_price( $product, $reference_price );
     87                $current_price    = $this->to_display_price( $product, (float) $current_price );
    8588                $discount_percent = null;
    8689
    … …  
    121124
    122125        /**
     126         * A price as the shop displays it, with or without tax (WooCommerce
     127         * setting). The history stores prices as they were entered.
     128         *
     129         * @param mixed $product WooCommerce product object.
     130         * @param float $price   Price as entered.
     131         */
     132        private function to_display_price( mixed $product, float $price ): float {
     133                if ( ! function_exists( 'wc_get_price_to_display' ) ) {
     134                        return $price;
     135                }
     136
     137                return (float) wc_get_price_to_display(
     138                        $product,
     139                        array(
     140                                'price' => $price,
     141                                'qty'   => 1,
     142                        )
     143                );
     144        }
     145
     146        /**
    123147         * Checks whether the object looks like a WooCommerce product.
    124148         */
Note: See TracChangeset for help on using the changeset viewer.