Shoplex Modules Reference
Shoplex organizes European Union e-commerce compliance into 23 independent modules. Each module targets a specific EU directive, regulation, or national legal requirement. You can enable or disable each module individually under WooCommerce > Shoplex.
Ten modules are active by default. Ten are disabled because their applicability depends on the products sold or the shop’s operational setup.
┌────────────────────────────────────────────────────────────────────────┐│ Shoplex Module Pipeline │├───────────────────────────────┬────────────────────────────────────────┤│ Storefront Price Block │ Checkout & Orders ││ • unit_price (98/6/EC) │ • legal_checkboxes (2011/83/EU, GDPR) ││ • omnibus (2019/2161) │ • country_compliance (Button-Lösung) ││ • tax_display (98/6/EC) │ • vies (2006/112/EC B2B VAT) ││ • shipping_notice (PAngV) │ • withdrawal (14-day statutory return) ││ • from_price (98/6/EC) ├────────────────────────────────────────┤├───────────────────────────────┤ Endpoints & Legal Forms ││ Product Details & Safety │ • complaint_template (2019/771 form) ││ • delivery_time (2011/83/EU) │ • cra_readiness (RFC 9116 security.txt)││ • consumer_information (771) │ • dsa_toolkit (Art. 16 DSA notice) ││ • gpsr (2023/988 safety) │ • business_info & dispute_resolution │└───────────────────────────────┴────────────────────────────────────────┘Module Overview
Section titled “Module Overview”| Module ID | Module Name | Default State | Legal Basis | Configuration Tab |
|---|---|---|---|---|
unit_price |
Unit price | Enabled | Directive 98/6/EC | Prices (shoplex_prices) |
omnibus |
Lowest price in 30 days | Enabled | Directive (EU) 2019/2161 | Lowest price (shoplex_omnibus) |
tax_display |
VAT notice | Enabled | German PAngV § 6(1); Directive 2011/83/EU art. 6 | VAT (shoplex_taxes) |
shipping_notice |
Shipping cost notice | Enabled | Directive 2011/83/EU art. 6(1)(e) | Prices (shoplex_prices) |
from_price |
From-price on variable products | Disabled | No specific legal provision | Prices (shoplex_prices) |
delivery_time |
Delivery time | Disabled | Directive 2011/83/EU art. 6(1)(g) | Delivery time (shoplex_delivery) |
consumer_information |
Legal guarantee and durability | Enabled | Directives (EU) 2019/771 & 2019/770 | Guarantees (shoplex_consumer_info) |
country_compliance |
Country-specific EU rules | Enabled | § 312j BGB, Art. L. 221-14, RDL 7/2021 | Country compliance (shoplex_country_compliance) |
withdrawal |
14-day right of withdrawal | Disabled | Directive 2011/83/EU art. 9; art. 6(1)(h) and Annex I(B) (model form) | Checkout consent (shoplex_checkout) |
gpsr |
Product safety information | Disabled | Regulation (EU) 2023/988 (GPSR) | Product safety (shoplex_gpsr) |
legal_checkboxes |
Checkout consent | Enabled | Directive 2011/83/EU art. 8, GDPR art. 7 | Checkout consent (shoplex_checkout) |
business_info |
Trader identity | Enabled | Directive 2000/31/EC art. 5 | Trader (shoplex_general) |
dispute_resolution |
Dispute resolution notice | Enabled | Directive 2013/11/EU, as amended by Directive (EU) 2025/2647 | Trader (shoplex_general) |
vies |
EU VAT ID validation | Disabled | Directive 2006/112/EC art. 138 | VIES VAT (shoplex_vies) |
complaint_template |
Statutory complaint form | Disabled | Directive (EU) 2019/771 | Built-in template page |
cra_readiness |
Cyber Resilience Act | Disabled | RFC 9116 (not a CRA requirement for shops) | CRA security.txt (shoplex_cra) |
dsa_toolkit |
Digital Services Act reporting | Disabled | Regulation (EU) 2022/2065 art. 16 | Public form shortcode |
deposit |
Packaging deposit scheme (Pfand) | Disabled | German VerpackDG § 46 (formerly VerpackG § 31); EU PPWR | Deposit (shoplex_deposit) |
food_information |
Food information and nutrition | Disabled | Regulation (EU) 1169/2011 | Food (shoplex_food) |
consent_manager |
Cookie consent and content blocker | Enabled | GDPR art. 7; ePrivacy; TDDDG § 25 | Consent (shoplex_consent) |
local_fonts |
Local Google and Bunny fonts | Disabled | GDPR art. 6(1), art. 44; TDDDG § 25 | Local fonts (shoplex_fonts) |
energy_label |
Energy label | Disabled | Regulation (EU) 2017/1369 art. 5(1)(a) | Product Data > Shoplex |
hr_price_list |
Croatia: price list and anchor price | Disabled | Croatian Government decisions NN 101/26, amended by NN 110/26 | Croatia prices (shoplex_hr_prices) |
1. Unit Price (unit_price)
Section titled “1. Unit Price (unit_price)”Legal Directive
Section titled “Legal Directive”Directive 98/6/EC on consumer protection in the indication of the prices of products offered to consumers. Selling goods quantified by weight, volume, length, or area requires displaying both the selling price and the price per reference unit (e.g., per 1 kg or 1 liter).
What It Does
Section titled “What It Does”Calculates the base price and displays it directly beside the sales price in both single product summaries and product catalog loops. If a product does not specify content amount meta, the module outputs nothing for that product.
Configuration Options (shoplex_prices)
Section titled “Configuration Options (shoplex_prices)”unit_price_enabled(bool, default:true): Enables unit price rendering.unit_price_text(string, default:"{price} / {unit}"): Display template. Replaces{price}with the formatted unit price and{unit}with the localized reference unit abbreviation.unit_price_show_loop(bool, default:true): Toggles rendering in product catalog archives.
Product-Level Fields
Section titled “Product-Level Fields”Found in Product Data > Shoplex:
_shoplex_unit_price_product_amount(float): Package volume or weight (e.g.,500for a 500 g jar)._shoplex_unit_price_base(float, default:1or1000): Reference base amount (e.g.,1000for 1 kg, or100for 100 ml)._shoplex_unit_price_unit(string select): Unit of measure. Supported values:kg,g,l,ml,m,cm,m2,m3,piece.
Calculation Logic
Section titled “Calculation Logic”$$\text{Unit Price} = \frac{\text{Product Price}}{\text{Product Amount}} \times \text{Base Amount}$$
For example, a 250 g product selling for €5.00 with reference base 1000 g: $$\frac{€5.00}{250} \times 1000 = €20.00/\text{kg}$$
2. Lowest Price in 30 Days (omnibus)
Section titled “2. Lowest Price in 30 Days (omnibus)”Legal Directive
Section titled “Legal Directive”Directive (EU) 2019/2161 (Omnibus Directive), amending Directive 98/6/EC Art. 6a. Mandates that any announcement of a price reduction must indicate the lowest price applied by the trader during a period not shorter than 30 days prior to the application of the price reduction.
What It Does
Section titled “What It Does”Watches price modifications across all products and writes historical price events to a dedicated database table. When a product is put on sale, it determines the lowest regular price within the configured time window and prints a statutory notification on the storefront.
[!NOTE] The lowest-price notice is not retroactive. Historical recording starts upon module activation; earlier price modifications prior to plugin installation are not recorded.
Database Storage
Section titled “Database Storage”Table: {wp_prefix}shoplex_price_history
CREATE TABLE wp_shoplex_price_history ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, product_id BIGINT UNSIGNED NOT NULL, price DECIMAL(19,4) NOT NULL, sale_price DECIMAL(19,4) DEFAULT NULL, price_type VARCHAR(20) NOT NULL DEFAULT 'regular', currency VARCHAR(3) NOT NULL, recorded_at DATETIME NOT NULL, INDEX product_recorded (product_id, recorded_at));Configuration Options (shoplex_omnibus)
Section titled “Configuration Options (shoplex_omnibus)”enabled(bool, default:true): Activates price tracking and notice rendering.days(int, default:30): Evaluation lookback window. Art. 6a(2) of Directive 98/6/EC requires a period of not less than 30 days (with national exceptions under art. 6a(3) and (4)). The field accepts lower values, but a window below 30 days does not meet art. 6a(2).display_text(string, default:"Lowest price in the last {days} days: {price}"): Notice format. Supports{days}and{price}tags.display_on_sale_only(bool, default:true): Restricts notice display exclusively to products currently on sale.prune_after_days(int, default:90): Retains database records up to $N$ days before purging old audit rows.show_regular_price(bool, default:false): Displays regular price when no discount is active.no_history_text(string select:hide|current|custom, default:hide): Fallback action when a newly added product goes on sale before 30 days of history accumulate.no_history_custom_text(string): Text used whenno_history_textis set tocustom.price_count_from(string select:sale_start|today, default:sale_start):sale_start: Evaluates the 30-day window immediately preceding the start of the discount (prevents progressive discounting loopholes).today: Evaluates the rolling 30-day window ending today.
include_tax(bool, default:true): Whether the Omnibus historical price includes taxes matching store display settings.
3. VAT Notice (tax_display)
Section titled “3. VAT Notice (tax_display)”Legal Directive
Section titled “Legal Directive”German PAngV § 6(1), Directive 2011/83/EU Art. 6, and Directive 2006/112/EC Art. 284 (Small Business Scheme). The statement that a price includes VAT comes from German PAngV § 6(1); Directive 98/6/EC does not require it.
What It Does
Section titled “What It Does”Injects the appropriate VAT notice directly adjacent to the product price based on WooCommerce tax settings and product tax classes.
Configuration Options (shoplex_taxes & shoplex_prices)
Section titled “Configuration Options (shoplex_taxes & shoplex_prices)”tax_display_mode(string select:gross|net, default:gross): Governs price display mode.vat_notice_text(string, default:"incl. {rate}% VAT"): Wording for gross pricing. Interpolates{rate}dynamically.vat_notice_net_text(string, default:"excl. {rate}% VAT"): Wording for net pricing.vat_exempt_notice(string, default:"VAT exempt under the small business scheme"): Rendered whensmall_businessis enabled under Trader settings (e.g., German Kleinunternehmerregelung § 19 UStG or Polish art. 113 ust. 1 ustawy o VAT).
4. Shipping Cost Notice (shipping_notice)
Section titled “4. Shipping Cost Notice (shipping_notice)”Legal Directive
Section titled “Legal Directive”Directive 2011/83/EU Art. 6(1)(e) and German PAngV § 6. When shipping costs cannot reasonably be calculated in advance or are charged separately from the product price, the fact that delivery costs will be payable must be stated immediately next to the price.
What It Does
Section titled “What It Does”Appends a “plus shipping” statement next to product prices and links directly to the store’s shipping information page.
Configuration Options (shoplex_prices)
Section titled “Configuration Options (shoplex_prices)”shipping_costs_notice_enabled(bool, default:true): Enables notice display.shipping_costs_text(string, default:"plus shipping"): Custom label, automatically wrapped in a link to the store shipping policy.
5. From-Price on Variable Products (from_price)
Section titled “5. From-Price on Variable Products (from_price)”Legal Directive
Section titled “Legal Directive”No specific legal provision requires a from-price. This module is a presentation choice.
What It Does
Section titled “What It Does”Replaces the standard WooCommerce price range (e.g., $10.00 - $50.00) with a clear starting price (e.g., from $10.00).
Configuration Options (shoplex_prices)
Section titled “Configuration Options (shoplex_prices)”from_price_enabled(bool, default:false): Activates single starting price display.from_price_text(string, default:"from {price}"): Custom template string.
6. Delivery Time (delivery_time)
Section titled “6. Delivery Time (delivery_time)”Legal Directive
Section titled “Legal Directive”Directive 2011/83/EU Art. 6(1)(g). Before a consumer is bound by a distance contract, the trader must provide the arrangements for payment, delivery, performance, the time by which the trader undertakes to deliver the goods and, from 27 September 2026, environmentally friendly delivery options where available.
What It Does
Section titled “What It Does”Displays exact delivery windows on product pages and product loops using a dedicated taxonomy and product overrides.
Hierarchy of Resolution
Section titled “Hierarchy of Resolution”- Per-product override: Meta key
_shoplex_delivery_time_idassigned on the product Shoplex tab. - Product taxonomy assignment: Term assigned from the
shoplex_delivery_timecustom taxonomy. - Shop-wide fallback: Term selected in
shoplex_delivery.default_delivery_time.
Configuration Options (shoplex_delivery)
Section titled “Configuration Options (shoplex_delivery)”default_delivery_time(term ID, default:0): Default delivery term applied across products without custom overrides.display_format(string, default:"Delivery time: {time}"): Output template string.show_in_loop(bool, default:false): Renders delivery time directly in category archives.
7. Legal Guarantee and Durability (consumer_information)
Section titled “7. Legal Guarantee and Durability (consumer_information)”Legal Directive
Section titled “Legal Directive”Directive (EU) 2019/771 (Sale of Goods Directive), Directive (EU) 2019/770 (Digital Content Directive), and Directive (EU) 2024/825 (Empowering Consumers for the Green Transition).
What It Does
Section titled “What It Does”Prints a plain-text reminder of the legal guarantee of conformity on product pages, along with optional commercial durability guarantees, software update periods for goods with digital elements, and repairability information. This text is not the harmonised notice or label required from 27 September 2026 under Commission Implementing Regulation (EU) 2025/1960.
Configuration Options (shoplex_consumer_info)
Section titled “Configuration Options (shoplex_consumer_info)”show_legal_guarantee(bool, default:true): Enables statutory conformity guarantee notice.legal_guarantee_text(string textarea, default:"All goods are covered by the seller's legal guarantee of conformity for a minimum of two years from delivery.").
[!NOTE] When Shoplex detects a customer in Spain, it automatically alters this notice to state a 3-year guarantee period in accordance with Spanish Royal Decree-Law 7/2021.
Product-Level Fields
Section titled “Product-Level Fields”_shoplex_durability_guarantee_months(int): Producer’s commercial guarantee of durability in months (Directive 2011/83/EU art. 6(1)(la)): free of charge, covering the whole good, for a period of more than two years._shoplex_update_period_months(int): Period (months) during which security and feature updates are guaranteed for digital products or goods with digital elements._shoplex_repair_info(string textarea): Availability of spare parts and repair instructions.
8. Country-Specific EU Rules (country_compliance)
Section titled “8. Country-Specific EU Rules (country_compliance)”Legal Directive
Section titled “Legal Directive”German § 312j BGB, French Art. L. 221-14, Italian Art. 51 Codice del Consumo, Spanish RDL 7/2021, Polish Art. 17 Ustawy o prawach konsumenta, German VerpackDG, French AGEC, and Polish BDO.
What It Does
Section titled “What It Does”Adapts the final order button text on both Classic and Block checkouts according to the customer’s resolved destination country (“Button-Lösung”), updates guarantee duration for Spain, and injects statutory environmental register numbers into merchant identity blocks.
For a full breakdown of national legal rules, see Country Compliance Guide.
Configuration Options (shoplex_country_compliance)
Section titled “Configuration Options (shoplex_country_compliance)”lucid_number(string): German LUCID registration number (ZSVR) under § 6 VerpackDG (formerly § 9 VerpackG).epr_number(string): French AGEC Unique Identification Number (IDU REP/EPR).bdo_number(string): Polish waste database registration number (Numer BDO).order_button_text_de(string, default:"Zahlungspflichtig bestellen").order_button_text_fr(string, default:"Commande avec obligation de paiement").order_button_text_it(string, default:"Ordine con obbligo di pagare").order_button_text_es(string, default:"Pedido con obligación de pago").order_button_text_pl(string, default:"Zamówienie z obowiązkiem zapłaty").
9. 14-Day Right of Withdrawal (withdrawal)
Section titled “9. 14-Day Right of Withdrawal (withdrawal)”Legal Directive
Section titled “Legal Directive”Directive 2011/83/EU art. 9 (14-day right of withdrawal) and art. 6(1)(h) with Annex I(B) (information on the right and the model withdrawal form). Consumers have the right to withdraw from a distance contract within 14 days without giving any reason.
This module is a basic withdrawal declaration form. It does not implement the withdrawal function of art. 11a of Directive 2011/83/EU (inserted by Directive (EU) 2023/2673, applicable from 19 June 2026) or § 356a BGB: there is no separate confirmation step and no acknowledgement with the date and time of receipt. For the art. 11a function, use the Withdraw plugin (plogins-withdraw).
What It Does
Section titled “What It Does”Provides an automated withdrawal processing workflow:
- Shortcode
[shoplex_withdrawal_form]for embedding public withdrawal declarations. - Account integration: Adds a “Withdraw from contract” action button in My Account > Orders for eligible orders.
- Guest order verification: Allows guests to look up orders via order number and billing email.
- Magic link authentication: Sends a cryptographic single-use redemption link with a 30-minute time-to-live (
TOKEN_TTL_SECONDS = 1800) to guest buyers. - Security controls: Anti-enumeration masking (uniform messages regardless of match) and transient rate limiting (maximum 5 requests per 15 minutes).
- Partial returns: Tracks quantity remaining per order line item to prevent double-returns.
- HPOS-safe metadata: Stamps withdrawal clock start timestamp (
_shoplex_withdrawal_clock_start) when order transitions tocompleted. - Confirmation emails: Dispatches HTML acknowledgment emails to the customer and store administrator upon receipt.
Shortcode Usage
Section titled “Shortcode Usage”Embed the withdrawal form on any WordPress page:
[shoplex_withdrawal_form]10. Product Safety Information (gpsr)
Section titled “10. Product Safety Information (gpsr)”Legal Directive
Section titled “Legal Directive”Regulation (EU) 2023/988 (General Product Safety Regulation - GPSR). Mandatory as of December 13, 2024. All non-food consumer products sold online in the EU must display manufacturer contact information, EU Responsible Person details (for non-EU producers), product identification, and safety warnings.
What It Does
Section titled “What It Does”Renders a structured product safety disclosure tab or section on the single product page. If safety fields are not populated for a given product, no empty safety container is output.
Configuration Options (shoplex_gpsr)
Section titled “Configuration Options (shoplex_gpsr)”show_on_product(bool, default:true): Enables public rendering of safety data on product pages.
Product-Level Fields
Section titled “Product-Level Fields”Found in Product Data > Shoplex:
_shoplex_gpsr_manufacturer_name(string): Registered company name of the manufacturer._shoplex_gpsr_manufacturer_address(textarea): Physical mailing address._shoplex_gpsr_manufacturer_contact(string): Electronic point of contact (email or web form URL)._shoplex_gpsr_responsible_person(string): Name of the EU Responsible Person (mandatory if manufacturer is based outside the EU)._shoplex_gpsr_responsible_address(textarea): Physical postal address in the European Union._shoplex_gpsr_responsible_contact(string): Email or web contact for the EU Responsible Person._shoplex_gpsr_importer_name(string): Importer name (if applicable)._shoplex_gpsr_importer_address(textarea): Importer address._shoplex_gpsr_importer_contact(string): Importer contact._shoplex_gpsr_product_identifier(string): Batch number, serial number, type, or model code._shoplex_gpsr_safety_warnings(textarea): Mandatory hazard statements, age restrictions, and risk warnings._shoplex_gpsr_instructions(textarea): Safe operation, assembly, and usage instructions.
Product Identifier and GTIN Validation
Section titled “Product Identifier and GTIN Validation”Under GPSR Art. 9(5), products must bear a type, batch, serial number, or other element allowing identification. When managing products in the WooCommerce admin, Shoplex automatically provides real-time GS1 check-digit validation (GTIN-8, GTIN-12, GTIN-13, GTIN-14) on the native WooCommerce barcode field (#_global_unique_id). If an invalid check digit is entered, an inline warning notice appears beneath the field to alert the merchant without blocking saving.
11. Checkout Consent (legal_checkboxes)
Section titled “11. Checkout Consent (legal_checkboxes)”Legal Directive
Section titled “Legal Directive”Directive 2011/83/EU Art. 8, GDPR (Regulation EU 2016/679) Art. 7, and Directive 2011/83/EU Art. 16(m) (loss of right of withdrawal for immediate supply of digital content).
What It Does
Section titled “What It Does”Displays legal checkboxes during checkout and logs customer consent status directly in the order metadata and order notes. Supports both Classic Checkout (woocommerce_review_order_before_submit) and Block Checkout (via WooCommerce Additional Fields Store API).
Checkbox Types
Section titled “Checkbox Types”- Terms and conditions: Recommended agreement to store terms.
- Privacy policy: Optional. Inform customers about processing; order data rests on GDPR art. 6(1)(b), and no provision requires a privacy checkbox.
- Withdrawal information acknowledgment: Confirmation of return rights.
- Digital content waiver: Mandatory opt-in for downloadable products where delivery begins before the 14-day return period expires.
- Marketing / Newsletter: Voluntary consent for marketing communications.
- Carrier data sharing: Explicit consent to pass phone numbers or emails to courier services for shipment tracking.
- Review reminders: Voluntary consent for follow-up review invitations.
Order Audit Trail
Section titled “Order Audit Trail”Consent states are saved in order meta _shoplex_consents:
{ "terms": { "agreed": true, "timestamp": 1775577600 }, "privacy": { "agreed": true, "timestamp": 1775577600 }, "digital_waiver": { "agreed": true, "timestamp": 1775577600 }}An order note is also recorded for compliance verification.
12. Trader Identity (business_info)
Section titled “12. Trader Identity (business_info)”Legal Directive
Section titled “Legal Directive”Directive 2000/31/EC Art. 5 (e-Commerce Directive) and Directive 2011/83/EU Art. 6. Sellers must provide permanent, rapid, and direct access to essential commercial registration details.
Configuration Options (shoplex_general)
Section titled “Configuration Options (shoplex_general)”company_name(string): Legal entity or commercial trader name.company_address(string textarea): Physical address of establishment.company_email(string): Active contact email.company_phone(string): Telephone number.company_vat_id(string): Value-Added Tax ID (e.g.,DE123456789).company_registration_number(string): Commercial register identifier (e.g.,HRB 123456,KRS 0000123456,RCS Paris B 123 456 789).small_business(bool, default:false): Declares small-business VAT exemption.
13. Dispute Resolution Notice (dispute_resolution)
Section titled “13. Dispute Resolution Notice (dispute_resolution)”Legal Directive
Section titled “Legal Directive”The EU’s online dispute resolution platform has been discontinued. Regulation (EU) 524/2013 was repealed with effect from 20 July 2025 by Regulation (EU) 2024/3228. Directive 2013/11/EU, amended by Directive (EU) 2025/2647, provides the EU framework for alternative dispute resolution. This module only provides an editable notice. Check its wording against the national rules that apply to your shop and link to the relevant ADR body where required.
Configuration Options (shoplex_general)
Section titled “Configuration Options (shoplex_general)”dispute_resolution_enabled(bool, default:true): Enables notice output.dispute_resolution_text(string textarea): Default text instructing consumers to contact store support first, while acknowledging access to national out-of-court settlement entities.
14. EU VAT ID Validation (vies)
Section titled “14. EU VAT ID Validation (vies)”Legal Directive
Section titled “Legal Directive”Directive 2006/112/EC Art. 138 (Zero-rate VAT exemption on intra-Community B2B supplies).
What It Does
Section titled “What It Does”Validates intra-EU B2B VAT numbers in real time against the European Commission’s official VIES REST API:
https://ec.europa.eu/taxation_customs/vies/rest-api/ms/{CC}/vat/{NUMBER}
- Validates national syntax regex across all 27 EU member states plus Northern Ireland (
XI). - Obtains qualified consultation proof: when the merchant configures their own VAT number (
requester_vat), the VIES service issues a unique consultation number (requestIdentifier). This serves as audit evidence for tax authorities. - Adds an administrative panel to WooCommerce order details showing company name, address, consultation ID, and validation timestamp.
Configuration Options (shoplex_vies)
Section titled “Configuration Options (shoplex_vies)”requester_vat(string): Merchant’s own EU VAT ID (e.g.,DE987654321) to request audit consultation numbers.cache_hours(int, default:24): Cache lifetime for repeat validations.
15. Statutory Complaint Form (complaint_template)
Section titled “15. Statutory Complaint Form (complaint_template)”Legal Directive
Section titled “Legal Directive”Directive (EU) 2019/771 on contracts for the sale of goods. Regulates consumer remedies for non-conforming goods: repair, replacement, proportionate price reduction, or contract rescission.
What It Does
Section titled “What It Does”Provides a ready-to-print or embeddable warranty claim template (Formularz reklamacyjny / Complaint template).
Shortcode Usage
Section titled “Shortcode Usage”[shoplex_complaint_template]Standalone Export
Section titled “Standalone Export”Store administrators can preview and download a clean, print-ready HTML file directly under WooCommerce > Shoplex > Complaint template by clicking Download as standalone HTML.
16. Cyber Resilience Act (cra_readiness)
Section titled “16. Cyber Resilience Act (cra_readiness)”Legal Directive
Section titled “Legal Directive”RFC 9116 (A File Format to Aid in Security Vulnerability Disclosure). The Cyber Resilience Act (Regulation (EU) 2024/2847) binds manufacturers of products with digital elements; publishing security.txt is not a CRA requirement for shops.
What It Does
Section titled “What It Does”Publishes a standardized vulnerability disclosure file at:
/.well-known/security.txt
The endpoint intercepts incoming HTTP requests on the parse_request hook and serves a standard text/plain file.
Configuration Options (shoplex_cra)
Section titled “Configuration Options (shoplex_cra)”security_contact(string email): Security vulnerability inbox (defaults to storeadmin_emailif blank).security_policy_url(string URL): Optional link to coordinated disclosure policy.
Served Output Example
Section titled “Served Output Example”HTTP/1.1 200 OKContent-Type: text/plain; charset=utf-8
Policy: https://example.com/security-policy/Preferred-Languages: en, de, fr, es, it, plExpires: 2027-10-07T12:00:00Z17. Digital Services Act (dsa_toolkit)
Section titled “17. Digital Services Act (dsa_toolkit)”Legal Directive
Section titled “Legal Directive”Regulation (EU) 2022/2065 (Digital Services Act - DSA), specifically Article 16 (Notice and action mechanisms for illegal content or products) and Articles 11-12 (Points of contact).
What It Does
Section titled “What It Does”Provides a public notice-and-action form allowing users, authorities, and rights holders to report illegal products or content.
Shortcode Usage
Section titled “Shortcode Usage”[shoplex_dsa_report]Form Fields
Section titled “Form Fields”- Reporter Name / Organisation
- Electronic Mail Address
- Exact URL of the Product or Content
- Reason for Notice:
illegal_product(Illegal / non-compliant product under EU/national law)ip_infringement(Intellectual property / trademark infringement)misleading_ad(Misleading advertisement / unfair commercial practice)other(Other legal violation)
- Detailed explanation / legal basis
18. Packaging Deposit Scheme (deposit)
Section titled “18. Packaging Deposit Scheme (deposit)”Adds a configurable deposit fee to the WooCommerce cart and displays a deposit notice on product pages. The module is disabled by default. Product fields _shoplex_deposit_type and _shoplex_deposit_units define the deposit category and number of units; variations can inherit these values from the parent product.
Germany: § 46(1) VerpackDG sets a deposit of at least €0.25 including VAT on single-use beverage containers; reusable (Mehrweg) deposits are set by the trade, not by statute. The module’s defaults are €0.25 for single-use packaging, €0.08 for reusable beer bottles, €0.15 for reusable mineral-water bottles and €0.25 for cans. Rates can be changed with the shoplex_deposit settings. The module calculates the fee and shows the notice; it does not record physical returns or issue deposit refunds.
19. Food Information (food_information)
Section titled “19. Food Information (food_information)”Displays product information configured in Product Data > Shoplex, including ingredients, allergens, nutrition values, Nutri-Score, alcohol content, net quantity, place of origin and food business operator details. The module is disabled by default and targets food information under Regulation (EU) 1169/2011.
Nutrition values use a pipe-separated list of key:value pairs, for example energy_kcal:250|fat:12|salt:0.9. Supported keys include energy_kj, energy_kcal, fat, saturated_fat, carbohydrates, sugars, fibre, protein and salt. Only populated information is displayed.
20. Cookie Consent and Content Blocker (consent_manager)
Section titled “20. Cookie Consent and Content Blocker (consent_manager)”Displays a cookie consent banner with Necessary, Analytics, Marketing and Preferences categories. It integrates Google Consent Mode v2 and can hold supported YouTube, Vimeo, Google Maps, OpenStreetMap and SoundCloud embeds until the visitor gives consent. A control lets visitors reopen their preferences. The module is enabled by default and uses the shoplex_consent settings.
The blocker applies to supported media embeds in content and short descriptions. It is not a general-purpose blocker for arbitrary third-party scripts.
21. Local Google and Bunny Fonts (local_fonts)
Section titled “21. Local Google and Bunny Fonts (local_fonts)”Legal Directive
Section titled “Legal Directive”GDPR Article 6(1) (lawfulness of processing) and Article 44 (general principle for transfers), German telecommunications and digital services law (TDDDG § 25), and established case law (Landgericht Munchen I, judgment of 20 January 2022, Az. 3 O 17493/20).
What It Does
Section titled “What It Does”Self-hosts external Google Fonts and Bunny Fonts locally on your WordPress server to prevent visitors’ IP addresses from being transmitted to third-party CDNs without explicit prior consent:
- Automatic stylesheet rewrite: Intercepts
fonts.googleapis.comandfonts.bunny.netstylesheets and generates local CSS copies stored inwp-content/uploads/shoplex-fonts/. - Binary font download: Downloads remote WOFF2 font files directly to your server and serves them locally.
- Core Web Vitals & LCP preloading: Analyzes the stylesheet and automatically outputs
<link rel="preload" as="font" type="font/woff2" crossorigin>in<head>for critical Latin subsets to eliminate FOIT/FOUT and layout shift (CLS). - Font-display normalization: Enforces
font-display: swapacross all@font-facedeclarations. - Resource hint cleanup: Strips external
preconnectanddns-prefetchtags pointing to Google or Bunny servers.
Configuration Options (shoplex_fonts)
Section titled “Configuration Options (shoplex_fonts)”font_display(string): Strategy for font rendering (swap,fallback,optional,block,auto). Default:swap.clean_resource_hints(bool): Automatically remove external Google/Bunny preconnect hints. Default:true.preload_fonts(bool): Preload primary WOFF2 font files in<head>for faster Largest Contentful Paint (LCP). Default:true.
Cache Management
Section titled “Cache Management”Local font assets and generated CSS can be purged at any time from WooCommerce > Shoplex settings > Local fonts via the Purge Local Font Cache button, or triggered automatically if font files are removed.
22. Energy Label (energy_label)
Section titled “22. Energy Label (energy_label)”Legal Directive
Section titled “Legal Directive”Regulation (EU) 2017/1369 art. 5(1)(a) requires the dealer to show the energy label, including in distance selling. The delegated act for each product group sets the scale and the display, for example Delegated Regulation (EU) 2019/2014 Annex VIII.
What It Does
Section titled “What It Does”Prints an arrow in the colour of the product’s class next to the price, with the range of the scale, linking to the supplier’s label, plus a “Product information sheet” link. A variation can have its own class, scale, label and sheet; one without its own class uses the product’s label. Nothing shows on a product without both a class and a label.
Product-Level Fields
Section titled “Product-Level Fields”_shoplex_energy_class: the class, A to G._shoplex_energy_scale: the range printed on the label (A to G, or an older range)._shoplex_energy_label_urland_shoplex_energy_sheet_url: the label and the product information sheet from the supplier or EPREL.
23. Croatia: Price List and Anchor Price (hr_price_list)
Section titled “23. Croatia: Price List and Anchor Price (hr_price_list)”Legal Basis
Section titled “Legal Basis”Two Croatian Government decisions published in Narodne novine 101/2026, both moved to 17 November 2026 by NN 110/2026: the Odluka o isticanju dodatne cijene and the Odluka o objavi cjenika proizvoda i usluga.
- Additional price, point II: next to the retail price, the price without any sale that applied on 10 September 2026, also when advertised on websites. Point IV keeps 2 May 2025 for food, drink, cosmetics, cleaning and household goods already anchored under NN 75/2025.
- Price list, points II, III and VI: a .csv or .xml file on the trader’s website, updated once a day by 8:00 and kept available for 30 days. Fields: name, code, brand, unit and unit price where applicable, retail price with the name of any sale, anchor price, barcode, available or unavailable. The file name carries the outlet form, address and code, a storage number and the date and time.
The decisions bind traders with a website. That web shops publish a separate file, the file name example and the label “Cijena na 10.09.2026.” come from the Ministry of Economy’s clarification, not from the decisions.
Fines. The decisions are made under the Zakon o iznimnim mjerama kontrole cijena (NN 40/2025). Its Article 20 fines a trader that does not publish the price list on its website, does not publish it as .xml or .csv, or does not show the additional price: 3,000 to 30,000 EUR for a legal person and 1,000 to 4,000 EUR for its responsible person, 1,000 to 20,000 EUR for a craftsman or other self-employed person, 1,000 to 6,000 EUR for a trader who is a natural person.
What It Does
Section titled “What It Does”- Anchor price: a field on the product and on each variation (a variation without one uses its parent’s). It prints after the price as “Cijena na 10.09.2026. €9.49”. Shoplex cannot know the price a product had on 10 September 2026; you enter it, by hand or through the WooCommerce product importer.
- Daily price list: every day at 06:00 site time WP-Cron writes a semicolon-separated UTF-8 .csv with comma decimals to
wp-content/uploads/shoplex/cjenik/, one row per simple product and per variation, prices with VAT. Columns in the order of point III:naziv,šifra(SKU, or the product ID),marka(WooCommerce Brands, else the GPSR manufacturer),jedinica mjereandcijena za jedinicu mjere(from the unit price fields),maloprodajna cijena,posebni oblik prodaje(the sale name while a sale runs),sidrena cijena,barkod(GTIN field),dostupnost. - File name:
webshop_Ilica 150 Zagreb_P-01_104_17.11.2026_06-00.csv: outlet form, address (empty falls back to the WooCommerce store address), outlet code, storage number, date and time. The time uses a dash because Windows file systems reject the colon. - Retention: lists older than 31 days are deleted.
- Publishing: the
[shoplex_cjenik]shortcode lists every file, newest first. Put it on a page linked from the footer.
Configuration Options (shoplex_hr_prices)
Section titled “Configuration Options (shoplex_hr_prices)”outlet_form,outlet_address,outlet_code: parts of the file name. Defaults:webshop, empty,P-01.sale_form_name: written in the sale column while a product is on sale. Default:Akcija.anchor_label: printed before the anchor price. Default:Cijena na 10.09.2026.One label serves the whole shop.show_anchor: show the anchor price on the storefront. Default:true.
Saving the tab republishes the list. WP-Cron runs on page visits, so a shop without traffic before 8:00 needs a system cron calling wp-cron.php. The module does not write .xml and has no per-product anchor date.