Changeset 3831571
- Timestamp:
- 11/28/2026 02:06:23 PM (less than one hour ago)
- Location:
- shoplex/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (9 diffs)
-
shoplex.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shoplex/trunk/readme.txt
r3826687 r3831571 5 5 Tested up to: 7.2 6 6 Requires PHP: 8.1 7 Stable tag: 1.9. 17 Stable tag: 1.9.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 2. **Lowest Price in the Last 30 Days (Omnibus Directive)** 25 Directive 2019/2161 ( the Enforcement and Modernisation Directive, commonly calledOmnibus) dictates that any price reduction announcement must state the lowest price applied during a period of at least 30 days prior to the reduction. Shoplex maintains a local database log of every price update across regular, sale, and variation prices. Unscheduled sales calculate against historical records, and daily scheduled cleanup retains the window without deleting the active base price.25 Directive 2019/2161 (Omnibus) dictates that any price reduction announcement must state the lowest price applied during a period of at least 30 days prior to the reduction. Shoplex maintains a local database log of every price update across regular, sale, and variation prices. Unscheduled sales calculate against historical records, and daily scheduled cleanup retains the window without deleting the active base price. 26 26 27 27 3. **VAT Notice (Tax Display Indication)** … … 54 54 - Secure single-use magic links sent directly to the customer's billing email with a 30-minute expiry. 55 55 - Authenticated declaration form listing remaining withdrawable items with clamped quantities to prevent returning more units than ordered. 56 - Direct High-Performance Order Storage (HPOS) metadata storage (`_shoplex_withdrawals`), audit trails in WooCommerce order notes, and automated confirmation emails to both customer and store administrator.56 - HPOS order meta (`_shoplex_withdrawals`), order notes, and confirmation emails to both customer and store administrator. 57 57 58 58 10. **General Product Safety Regulation (GPSR) & Barcode Validation** 59 Regulation (EU) 2023/988 (GPSR), in effect since December 13, 2024, requires online listings to publish manufacturer identity details, postal address, electronic address, the EU responsible person (for manufacturers outside the EU), and required safety warnings or instructions. Shoplex provides dedicated per-product and default fields for all required GPSR disclosures, plus real-time GS1 check-digit validation (GTIN-8, GTIN-12, GTIN-13, GTIN-14) on the native WooCommerce barcode field to prevent invalid identifiers.59 Regulation (EU) 2023/988 (GPSR), in effect since December 13, 2024, requires online listings to publish manufacturer identity details, postal address, electronic address, the EU responsible person (for manufacturers outside the EU), and required safety warnings or instructions. Shoplex provides dedicated per-product and default fields for all required GPSR disclosures, plus real-time GS1 check-digit validation (GTIN-8, GTIN-12, GTIN-13, GTIN-14) on the native WooCommerce barcode field. 60 60 61 61 11. **Checkout Consents & Consent Recording** 62 Directive 2011/83/EU art. 8 and GDPR art. 7 demand unambiguous, affirmative agreement for specific contractual conditions, particularly waiving withdrawal rights for immediate access to digital downloads. Shoplex renders terms, privacy policy, right of withdrawal acknowledgment, digital content waivers, the request to start a service before the withdrawal period ends (art. 8(8); without it a withdrawing consumer owes nothing for the service, art. 14(4)), newsletter consents, and carrier delivery updates. The two waivers appear only when the cart holds a download or a service (a virtual product without a download), on the classic and the block checkout. Each recorded consent captures the verbatim text displayed, the customer decision, and the exact timestamp stored in HPOS order meta. Compatible with classic and block checkouts.62 Directive 2011/83/EU art. 8 and GDPR art. 7 demand unambiguous, affirmative agreement for specific contractual conditions, particularly waiving withdrawal rights for immediate access to digital downloads. Shoplex renders terms, privacy policy, right of withdrawal acknowledgment, digital content waivers, the request to start a service before the withdrawal period ends (art. 8(8); without it a withdrawing consumer owes nothing for the service, art. 14(4)), newsletter consents, and carrier delivery updates. The two waivers appear only when the cart holds a download or a service (a virtual product without a download), on the classic and the block checkout. Each recorded consent captures the verbatim text displayed, the customer decision, and the exact timestamp stored in HPOS order meta. 63 63 64 64 12. **Trader Identity (Impressum / Legal Notice)** … … 69 69 70 70 14. **Intra-EU B2B VAT Validation (VIES REST API & Swiss UID)** 71 Under Directive 2006/112/EC art. 138, exempting cross-border intra-EU B2B supplies at 0% VAT requires verifying that the customer is a taxable person with a valid VAT number in another member state. Shoplex queries the European Commission's official VIES REST endpoint in real time across all 27 member states and Northern Ireland (XI). When configured with your own VAT ID, it performs a qualified check and stores the official consultation number (requestIdentifier) directly in the order meta and order notes as audit-proofevidence for tax authorities. Also validates Swiss enterprise identification numbers (UID / CHE) for cross-border trade with Switzerland.71 Under Directive 2006/112/EC art. 138, exempting cross-border intra-EU B2B supplies at 0% VAT requires verifying that the customer is a taxable person with a valid VAT number in another member state. Shoplex queries the European Commission's official VIES REST endpoint in real time across all 27 member states and Northern Ireland (XI). When configured with your own VAT ID, it performs a qualified check and stores the official consultation number (requestIdentifier) in the order meta and order notes as evidence for tax authorities. Also validates Swiss enterprise identification numbers (UID / CHE) for cross-border trade with Switzerland. 72 72 73 73 15. **Statutory Complaint Form Template (Formularz Reklamacyjny)** … … 75 75 76 76 16. **Cyber Resilience Act Disclosure (CRA / RFC 9116 security.txt)** 77 Shoplex serves an RFC 9116 security disclosure policy at `/.well-known/security.txt` (RFC 9116). Merchants can specify their security contact email, vulnerability disclosure policy URL, and expiration date. This is not a Cyber Resilience Act (Regulation EU 2024/2847) requirement for shops; the CRA binds manufacturers.77 Shoplex serves an RFC 9116 security disclosure policy at `/.well-known/security.txt`. Merchants can specify their security contact email, vulnerability disclosure policy URL, and expiration date. This is not a Cyber Resilience Act (Regulation EU 2024/2847) requirement for shops; the CRA binds manufacturers. 78 78 79 79 17. **Digital Services Act Notice & Action Mechanism (DSA Reporting)** 80 Article 16 of Regulation (EU) 2022/2065 (Digital Services Act) binds hosting providers, so it is relevant if your shop hosts third-party content (marketplace sellers, reviews). Shoplex provides the public notice form via `[shoplex_dsa_report]` with structured reason selection, validation, rate limiting, and instant email dispatchto store administrators.80 Article 16 of Regulation (EU) 2022/2065 (Digital Services Act) binds hosting providers, so it is relevant if your shop hosts third-party content (marketplace sellers, reviews). Shoplex provides the public notice form via `[shoplex_dsa_report]` with reason selection, validation, rate limiting and an email to store administrators. 81 81 82 82 18. **Packaging Deposit (German Pfand)** … … 90 90 91 91 21. **Local Google and Bunny Fonts (GDPR & Core Web Vitals)** 92 Under GDPR Art. 6(1) and established EU case law (e.g. Landgericht München I, judgment of 20 January 2022, Az. 3 O 17493/20), loading fonts directly from third-party US-based servers transmits visitor IP addresses without prior consent. Shoplex intercepts external Google Fonts and Bunny Fonts stylesheets, downloads the WOFF2 f ont files directly into the local `wp-content/uploads/shoplex-fonts/` directory, rewrites the CSS to point exclusively to the local web server with `font-display: swap`, and strips external preconnect or dns-prefetch resource hints. In addition, key WOFF2 font files can be automatically preloaded in `<head>` to prevent flash of invisible text (FOIT) and eliminate cumulative layout shift (CLS).92 Under GDPR Art. 6(1) and established EU case law (e.g. Landgericht München I, judgment of 20 January 2022, Az. 3 O 17493/20), loading fonts directly from third-party US-based servers transmits visitor IP addresses without prior consent. Shoplex intercepts external Google Fonts and Bunny Fonts stylesheets, downloads the WOFF2 files into `wp-content/uploads/shoplex-fonts/`, rewrites the CSS to point to the local server with `font-display: swap`, and strips external preconnect or dns-prefetch resource hints. Key WOFF2 files can also be preloaded in `<head>`. 93 93 94 94 22. **Energy Label (Regulation EU 2017/1369)** … … 100 100 = Multilingual and Translation Compatibility = 101 101 102 Shoplex includes comprehensive multilingual support:103 102 * **WPML & Polylang:** Includes an official `wpml-config.xml` mapping configuration keys from `shoplex_*` options directly into string translation tables. 104 103 * **TranslatePress & Loco Translate:** Built with standard gettext functions across all frontend templates, notices, and checkout buttons. … … 107 106 = Technical Architecture = 108 107 109 * **HPOS Native:** Full support for WooCommerce High-Performance Order Storage (Custom Order Tables).108 * **HPOS Native:** Supports WooCommerce High-Performance Order Storage. 110 109 * **Block Checkout Compatible:** Integrates with WooCommerce Cart and Checkout Blocks via Store API and Blocks JavaScript filter registries. 111 110 * **Zero External Dependencies:** Runs locally on your server. No external calls except the optional VIES / Swiss UID checks, no API keys, and no monthly service fees. 112 * **Minimal Overhead:** Built without heavy JavaScript frameworks or unnecessary database tables.113 111 114 112 == Installation == … … 196 194 197 195 == Changelog == 196 197 = 1.9.2 = 198 * Readme description shortened to stay within the WordPress.org length limit. 198 199 199 200 = 1.9.1 = -
shoplex/trunk/shoplex.php
r3826687 r3831571 7 7 * Plugin URI: https://plogins.com/shoplex/ 8 8 * Description: Price indication, Omnibus price history, GPSR product safety, statutory withdrawal, EU destination rules (Button-Lösung, LUCID, EPR, BDO), delivery times and consent records. 9 * Version: 1.9. 19 * Version: 1.9.2 10 10 * Requires at least: 6.5 11 11 * Requires PHP: 8.1 … … 29 29 defined('ABSPATH') || exit; 30 30 31 const VERSION = '1.9. 1';31 const VERSION = '1.9.2'; 32 32 const PLUGIN_FILE = __FILE__; 33 33 const PLUGIN_DIR = __DIR__;
Note:
See TracChangeset
for help on using the changeset viewer.