Changeset 3842706
- Timestamp:
- 12/03/2026 02:59:14 PM (6 hours ago)
- Location:
- conforme-fr
- Files:
-
- 83 added
- 14 edited
- 8 copied
-
assets/banner-1544x500.png (modified) ( previous)
-
assets/banner-772x250.png (modified) ( previous)
-
assets/screenshot-1.png (modified) ( previous)
-
assets/screenshot-2.png (modified) ( previous)
-
assets/screenshot-3.png (modified) ( previous)
-
assets/screenshot-4.png (modified) ( previous)
-
tags/1.0.4 (added)
-
tags/1.0.4/assets (added)
-
tags/1.0.4/assets/admin (added)
-
tags/1.0.4/assets/admin/css (added)
-
tags/1.0.4/assets/admin/css/admin.css (added)
-
tags/1.0.4/assets/admin/css/ui.css (added)
-
tags/1.0.4/assets/admin/js (added)
-
tags/1.0.4/assets/admin/js/admin.js (added)
-
tags/1.0.4/assets/admin/js/settings.js (added)
-
tags/1.0.4/assets/admin/js/ui.js (added)
-
tags/1.0.4/assets/front (added)
-
tags/1.0.4/assets/front/css (added)
-
tags/1.0.4/assets/front/css/front.css (added)
-
tags/1.0.4/assets/front/js (added)
-
tags/1.0.4/assets/front/js/front.js (added)
-
tags/1.0.4/assets/front/js/precontractuel-blocks-checkout.js (added)
-
tags/1.0.4/blocks (added)
-
tags/1.0.4/blocks/omnibus-reference-price (added)
-
tags/1.0.4/blocks/omnibus-reference-price/block.json (copied) (copied from conforme-fr/trunk/blocks/omnibus-reference-price/block.json ) (1 diff)
-
tags/1.0.4/blocks/omnibus-reference-price/index.asset.php (added)
-
tags/1.0.4/blocks/omnibus-reference-price/index.js (added)
-
tags/1.0.4/blocks/retractation (added)
-
tags/1.0.4/blocks/retractation/block.json (copied) (copied from conforme-fr/trunk/blocks/retractation/block.json ) (1 diff)
-
tags/1.0.4/blocks/retractation/index.asset.php (added)
-
tags/1.0.4/blocks/retractation/index.js (added)
-
tags/1.0.4/blocks/review-verification (added)
-
tags/1.0.4/blocks/review-verification/block.json (copied) (copied from conforme-fr/trunk/blocks/review-verification/block.json ) (1 diff)
-
tags/1.0.4/blocks/review-verification/index.asset.php (added)
-
tags/1.0.4/blocks/review-verification/index.js (added)
-
tags/1.0.4/conforme-fr.php (copied) (copied from conforme-fr/trunk/conforme-fr.php ) (2 diffs)
-
tags/1.0.4/languages (added)
-
tags/1.0.4/languages/conforme-fr.pot (copied) (copied from conforme-fr/trunk/languages/conforme-fr.pot ) (5 diffs)
-
tags/1.0.4/readme.txt (copied) (copied from conforme-fr/trunk/readme.txt ) (3 diffs)
-
tags/1.0.4/src (added)
-
tags/1.0.4/src/Admin (added)
-
tags/1.0.4/src/Admin/Admin_Menu.php (added)
-
tags/1.0.4/src/Admin/Dashboard_Page.php (added)
-
tags/1.0.4/src/Admin/Help_Page.php (copied) (copied from conforme-fr/trunk/src/Admin/Help_Page.php ) (1 diff)
-
tags/1.0.4/src/Admin/Page_Header.php (added)
-
tags/1.0.4/src/Admin/Settings_Page.php (added)
-
tags/1.0.4/src/Api (added)
-
tags/1.0.4/src/Api/Api_Client.php (added)
-
tags/1.0.4/src/Api/Api_Response.php (added)
-
tags/1.0.4/src/Compliance (added)
-
tags/1.0.4/src/Compliance/Compliance_Item.php (added)
-
tags/1.0.4/src/Compliance/Locked_Preview.php (added)
-
tags/1.0.4/src/Compliance/Score_Calculator.php (added)
-
tags/1.0.4/src/Contracts (added)
-
tags/1.0.4/src/Contracts/Module_Interface.php (added)
-
tags/1.0.4/src/Database (added)
-
tags/1.0.4/src/Database/Installer.php (added)
-
tags/1.0.4/src/Database/Price_History_Table.php (added)
-
tags/1.0.4/src/Integrations (added)
-
tags/1.0.4/src/Integrations/Woo_Blocks_Precontractuel.php (added)
-
tags/1.0.4/src/Licensing (added)
-
tags/1.0.4/src/Licensing/License_Client.php (added)
-
tags/1.0.4/src/Licensing/License_Manager.php (added)
-
tags/1.0.4/src/Licensing/License_State.php (added)
-
tags/1.0.4/src/Licensing/License_Token_Verifier.php (added)
-
tags/1.0.4/src/Module_Loader.php (added)
-
tags/1.0.4/src/Modules (added)
-
tags/1.0.4/src/Modules/Omnibus (added)
-
tags/1.0.4/src/Modules/Omnibus/Module.php (added)
-
tags/1.0.4/src/Modules/Omnibus/Price_History.php (added)
-
tags/1.0.4/src/Modules/Omnibus/Reference_Price.php (added)
-
tags/1.0.4/src/Modules/Omnibus/Renderer.php (copied) (copied from conforme-fr/trunk/src/Modules/Omnibus/Renderer.php ) (2 diffs)
-
tags/1.0.4/src/Modules/Omnibus/Shortcodes.php (added)
-
tags/1.0.4/src/Modules/Precontractuel (added)
-
tags/1.0.4/src/Modules/Precontractuel/Form_Download.php (added)
-
tags/1.0.4/src/Modules/Precontractuel/Module.php (added)
-
tags/1.0.4/src/Modules/Precontractuel/Paid_Options_Admin.php (added)
-
tags/1.0.4/src/Modules/Precontractuel/Paid_Options_Scanner.php (added)
-
tags/1.0.4/src/Modules/Precontractuel/Renderer.php (added)
-
tags/1.0.4/src/Modules/Precontractuel/Shortcodes.php (added)
-
tags/1.0.4/src/Plugin.php (added)
-
tags/1.0.4/src/Support (added)
-
tags/1.0.4/src/Support/Action_Scheduler.php (added)
-
tags/1.0.4/src/Support/Assets.php (added)
-
tags/1.0.4/src/Support/Cache.php (added)
-
tags/1.0.4/src/Support/Capabilities.php (added)
-
tags/1.0.4/src/Support/Formatting.php (added)
-
tags/1.0.4/src/Support/Multilingual.php (added)
-
tags/1.0.4/src/Support/Product_Page_Positions.php (added)
-
tags/1.0.4/src/Support/WooCommerce.php (added)
-
tags/1.0.4/templates (added)
-
tags/1.0.4/templates/omnibus (added)
-
tags/1.0.4/templates/omnibus/reference-price.php (added)
-
tags/1.0.4/templates/precontractuel (added)
-
tags/1.0.4/templates/precontractuel/retractation.php (added)
-
tags/1.0.4/templates/precontractuel/review-verification.php (added)
-
tags/1.0.4/uninstall.php (added)
-
trunk/blocks/omnibus-reference-price/block.json (modified) (1 diff)
-
trunk/blocks/retractation/block.json (modified) (1 diff)
-
trunk/blocks/review-verification/block.json (modified) (1 diff)
-
trunk/conforme-fr.php (modified) (2 diffs)
-
trunk/languages/conforme-fr.pot (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/Admin/Help_Page.php (modified) (1 diff)
-
trunk/src/Modules/Omnibus/Renderer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
conforme-fr/tags/1.0.4/blocks/omnibus-reference-price/block.json
r3842629 r3842706 7 7 "category": "widgets", 8 8 "icon": "chart-line", 9 "description": "Affiche le prix le plus bas constaté sur les 30 derniers jours.",10 "keywords": ["conform ité fr"],9 "description": "Affiche le prix le plus bas des 30 jours précédant la promotion.", 10 "keywords": ["conforme fr", "conformité"], 11 11 "textdomain": "conforme-fr", 12 12 "supports": { -
conforme-fr/tags/1.0.4/blocks/retractation/block.json
r3842629 r3842706 8 8 "icon": "media-document", 9 9 "description": "Affiche l'encart de droit de rétractation et le lien vers le formulaire type.", 10 "keywords": ["conform ité fr"],10 "keywords": ["conforme fr", "conformité"], 11 11 "textdomain": "conforme-fr", 12 12 "supports": { -
conforme-fr/tags/1.0.4/blocks/review-verification/block.json
r3842629 r3842706 8 8 "icon": "star-filled", 9 9 "description": "Affiche la méthode de vérification des avis clients.", 10 "keywords": ["conform ité fr"],10 "keywords": ["conforme fr", "conformité"], 11 11 "textdomain": "conforme-fr", 12 12 "supports": { -
conforme-fr/tags/1.0.4/conforme-fr.php
r3842629 r3842706 4 4 * Plugin URI: https://conforme-wp.fr/ 5 5 * 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. 36 * Version: 1.0.4 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 8.1 … … 22 22 } 23 23 24 define( 'WCCFR_VERSION', '1.0. 3' );24 define( 'WCCFR_VERSION', '1.0.4' ); 25 25 define( 'WCCFR_FILE', __FILE__ ); 26 26 define( 'WCCFR_PATH', plugin_dir_path( __FILE__ ) ); -
conforme-fr/tags/1.0.4/languages/conforme-fr.pot
r3842629 r3842706 3 3 msgid "" 4 4 msgstr "" 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" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/conforme-fr\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 527 527 528 528 #: src/Admin/Help_Page.php:150 529 msgid "Dans l'éditeur, tapez « / » puis « Conform ité» pour les retrouver."529 msgid "Dans l'éditeur, tapez « / » puis « Conforme FR » pour les retrouver." 530 530 msgstr "" 531 531 … … 2033 2033 #: blocks/omnibus-reference-price/block.json 2034 2034 msgctxt "block description" 2035 msgid "Affiche le prix le plus bas constaté sur les 30 derniers jours."2035 msgid "Affiche le prix le plus bas des 30 jours précédant la promotion." 2036 2036 msgstr "" 2037 2037 … … 2040 2040 #: blocks/review-verification/block.json 2041 2041 msgctxt "block keyword" 2042 msgid "conformité fr" 2042 msgid "conforme fr" 2043 msgstr "" 2044 2045 #: blocks/omnibus-reference-price/block.json 2046 #: blocks/retractation/block.json 2047 #: blocks/review-verification/block.json 2048 msgctxt "block keyword" 2049 msgid "conformité" 2043 2050 msgstr "" 2044 2051 -
conforme-fr/tags/1.0.4/readme.txt
r3842629 r3842706 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.1 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == External services == 72 72 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 Conform itéFR > Réglages > Licence. Nothing is sent before that.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 Conforme FR > Réglages > Licence. Nothing is sent before that. 74 74 75 75 * When: when you activate, check or deactivate the key, and once a day while a key is saved, to confirm it is still valid. … … 80 80 81 81 == 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é"). 82 88 83 89 = 1.0.3 = -
conforme-fr/tags/1.0.4/src/Admin/Help_Page.php
r3842629 r3842706 148 148 <div> 149 149 <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 « Conform ité» 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> 151 151 </div> 152 152 </div> -
conforme-fr/tags/1.0.4/src/Modules/Omnibus/Renderer.php
r3842629 r3842706 82 82 } 83 83 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 ); 85 88 $discount_percent = null; 86 89 … … 121 124 122 125 /** 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 /** 123 147 * Checks whether the object looks like a WooCommerce product. 124 148 */ -
conforme-fr/trunk/blocks/omnibus-reference-price/block.json
r3842176 r3842706 7 7 "category": "widgets", 8 8 "icon": "chart-line", 9 "description": "Affiche le prix le plus bas constaté sur les 30 derniers jours.",10 "keywords": ["conform ité fr"],9 "description": "Affiche le prix le plus bas des 30 jours précédant la promotion.", 10 "keywords": ["conforme fr", "conformité"], 11 11 "textdomain": "conforme-fr", 12 12 "supports": { -
conforme-fr/trunk/blocks/retractation/block.json
r3842176 r3842706 8 8 "icon": "media-document", 9 9 "description": "Affiche l'encart de droit de rétractation et le lien vers le formulaire type.", 10 "keywords": ["conform ité fr"],10 "keywords": ["conforme fr", "conformité"], 11 11 "textdomain": "conforme-fr", 12 12 "supports": { -
conforme-fr/trunk/blocks/review-verification/block.json
r3842176 r3842706 8 8 "icon": "star-filled", 9 9 "description": "Affiche la méthode de vérification des avis clients.", 10 "keywords": ["conform ité fr"],10 "keywords": ["conforme fr", "conformité"], 11 11 "textdomain": "conforme-fr", 12 12 "supports": { -
conforme-fr/trunk/conforme-fr.php
r3842629 r3842706 4 4 * Plugin URI: https://conforme-wp.fr/ 5 5 * 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. 36 * Version: 1.0.4 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 8.1 … … 22 22 } 23 23 24 define( 'WCCFR_VERSION', '1.0. 3' );24 define( 'WCCFR_VERSION', '1.0.4' ); 25 25 define( 'WCCFR_FILE', __FILE__ ); 26 26 define( 'WCCFR_PATH', plugin_dir_path( __FILE__ ) ); -
conforme-fr/trunk/languages/conforme-fr.pot
r3842629 r3842706 3 3 msgid "" 4 4 msgstr "" 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" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/conforme-fr\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 527 527 528 528 #: src/Admin/Help_Page.php:150 529 msgid "Dans l'éditeur, tapez « / » puis « Conform ité» pour les retrouver."529 msgid "Dans l'éditeur, tapez « / » puis « Conforme FR » pour les retrouver." 530 530 msgstr "" 531 531 … … 2033 2033 #: blocks/omnibus-reference-price/block.json 2034 2034 msgctxt "block description" 2035 msgid "Affiche le prix le plus bas constaté sur les 30 derniers jours."2035 msgid "Affiche le prix le plus bas des 30 jours précédant la promotion." 2036 2036 msgstr "" 2037 2037 … … 2040 2040 #: blocks/review-verification/block.json 2041 2041 msgctxt "block keyword" 2042 msgid "conformité fr" 2042 msgid "conforme fr" 2043 msgstr "" 2044 2045 #: blocks/omnibus-reference-price/block.json 2046 #: blocks/retractation/block.json 2047 #: blocks/review-verification/block.json 2048 msgctxt "block keyword" 2049 msgid "conformité" 2043 2050 msgstr "" 2044 2051 -
conforme-fr/trunk/readme.txt
r3842629 r3842706 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.1 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == External services == 72 72 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 Conform itéFR > Réglages > Licence. Nothing is sent before that.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 Conforme FR > Réglages > Licence. Nothing is sent before that. 74 74 75 75 * When: when you activate, check or deactivate the key, and once a day while a key is saved, to confirm it is still valid. … … 80 80 81 81 == 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é"). 82 88 83 89 = 1.0.3 = -
conforme-fr/trunk/src/Admin/Help_Page.php
r3842629 r3842706 148 148 <div> 149 149 <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 « Conform ité» 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> 151 151 </div> 152 152 </div> -
conforme-fr/trunk/src/Modules/Omnibus/Renderer.php
r3842176 r3842706 82 82 } 83 83 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 ); 85 88 $discount_percent = null; 86 89 … … 121 124 122 125 /** 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 /** 123 147 * Checks whether the object looks like a WooCommerce product. 124 148 */
Note:
See TracChangeset
for help on using the changeset viewer.