#WooCommerce developer in Porto for the Portuguese guarantee law
Decreto-Lei 84/2021 of 18 October 2021 is the Portuguese text on consumer rights in the sale of goods, digital content and digital services. It implements Directives (EU) 2019/771 and 2019/770 and took effect on 1 January 2022. It replaced Decreto-Lei 67/2003, and it applies to contracts made after its entry into force. A WooCommerce shop that sells goods to consumers in Portugal is bound by it, from Porto or from anywhere else. This page lists what it demands and how the shop’s flows have to carry it.
I am Mariusz Szatkowski, a WooCommerce developer based in Gdynia, remote and in writing, with WordPress work dating from 2006. Either I design the storefront or I implement a design that you provide.

Photo: Michael Gaylard from Horsham, UK, CC BY 4.0, Wikimedia Commons.
#How long is the legal guarantee in Portugal?
Article 12 of the decree, in the text published in the Diário da República, says the seller (“o profissional”) is liable for any lack of conformity that appears within three years of delivery of the goods. For goods with digital elements the same three years apply, or the duration of the contract where it provides for continuous supply of the digital content or service for longer.
Three rules around that period shape a shop:
- Used goods. In contracts for used movable goods the parties can agree to reduce the three years to 18 months, except where the good is advertised as reconditioned. In that case the invoice must say so, and the three years apply (article 12(3)).
- Suspension. The period stops from the moment the consumer reports the defect until conformity is restored, and the consumer must make the goods available without undue delay (article 12(4)).
- How to report. The report can be made by letter, email or any other means capable of proof (article 12(5)).
The consolidated text on pgdlisboa.pt states that the decree has not been amended. The decree also makes it null to exclude or limit the consumer’s rights by contract (article 51), and a business can only offer terms that are more favourable.
#Who carries the burden of proof?
Article 13 sets the presumption. A lack of conformity that appears within two years of delivery is presumed to have existed at delivery, unless that is incompatible with the nature of the goods or of the defect. After two years the consumer has to prove that the defect existed at delivery. Where used goods have a shortened guarantee, the presumption period is one year.
Two years of presumption inside three years of liability produces a split that a returns flow has to represent: the same claim can arrive in month 14 and in month 30, and the evidence burden differs. A customer record that shows delivery date, the report date and the elapsed time gives support staff the answer without arithmetic.
#Which remedies apply to a defective item?
Article 15 lists the remedies. The consumer is entitled to:
- restoration of conformity, by repair or replacement;
- a proportionate reduction of the price; or
- termination of the contract.
The consumer chooses between repair and replacement, unless the chosen route is impossible or imposes disproportionate costs on the seller compared with the other. Price reduction or termination come into play when the seller has not repaired or replaced, has refused, has not done so within the limits of article 18, when the defect reappears or a new one appears, or when the defect is serious enough to justify an immediate reduction or termination. The consumer cannot terminate if the seller proves the lack of conformity is minimal. The consumer may also refuse to pay any remaining part of the price until the seller meets the duties of the decree.
Article 16 adds a right of rejection: a defect that shows within 30 days of delivery lets the consumer ask for immediate replacement or termination of the contract.
#How do repair, replacement and refund work in practice?
Articles 18 and 20 set the mechanics, and they read like a specification:
- Repair or replacement is free of charge, within a reasonable time from when the seller is told, and without serious inconvenience to the consumer. The time must not exceed 30 days, unless the nature and complexity of the goods, the seriousness of the defect and the effort needed justify more (article 18(2) and (3)).
- The consumer makes the goods available at the seller’s expense (article 18(1)).
- A repaired good gets an additional guarantee of six months per repair, up to four repairs, and the seller must pass that information to the consumer when handing the repaired good back (article 18(4)).
- A replacement good carries its own three-year liability (article 18(6)).
- Termination is declared by letter, email or another provable means (article 20(2)). The seller returns all payments within 14 days of being informed of the decision, including delivery costs (article 20(6)), by the same payment means used for the original transaction unless the consumer agrees otherwise at no cost (article 20(5)). The seller may hold the refund until the goods are returned or the consumer proves they have been sent (article 20(7)), and bears the cost of returning the goods (article 20(4)).
#Which obligations does the seller owe before the sale?
The decree also sets information and conformity rules that reach the product page.
- Spare parts and after-sales service. The producer must make spare parts for repair available for 10 years after the last unit of the good is placed on the market, with exceptions for goods covered by specific EU ecodesign rules, perishable goods and goods incompatible with that period. For registered movable goods the seller must guarantee after-sales support for the same period. At the time of the contract the seller informs the consumer whether the duty exists and how long it lasts (article 21).
- Public statements. The goods must match what the seller, the producer or others earlier in the chain said publicly, for example in advertising or labelling, unless the seller shows it did not know of the statement, that it was corrected in the same or a comparable way before the contract, or that it could not have influenced the decision to buy (article 7). Product descriptions in the shop are statements of this kind.
- Accessories and version. Goods come with the accessories, packaging and instructions the consumer can reasonably expect, and in the latest version available when the contract is made unless agreed otherwise (article 7).
- Commercial guarantees. A commercial guarantee binds the guarantor under its terms and the advertising. The declaration must be given in writing or on a durable medium by delivery of the goods, in Portuguese and plain language. It must state that the consumer’s statutory rights are unaffected, what the guarantee covers, the charges, the guarantor’s name and address, the procedure, the goods concerned, and the duration and territory (article 43).
- The producer. The consumer can ask the producer directly for repair or replacement, with limits set in article 40.
#What are the penalties and who checks?
Article 47 gives supervision and the offence procedure to ASAE, the Autoridade de Segurança Alimentar e Económica. Article 48 lists breaches that count as serious economic offences under the economic offences regime. They include the missing “reconditioned” mention on the invoice, the rejection right of article 16, the free repair and replacement rules of article 18, the refund rules of article 20, the spare parts information of article 21 and the written guarantee statement of article 43. Attempt and negligence are punishable. The decree leaves the amounts to the general regime.
A dispute does not have to go to court. The consumer arbitration centre of Porto, CICAP, has territorial competence over any municipality of the Porto Metropolitan Area and no limit on the value of the dispute, according to the government service page. The European Commission’s ADR list gives its address as Rua Damião de Gois 31 in Porto. Under article 17 the consumer’s rights lapse two years after the defect is reported, and that period is suspended while the goods are with the seller for repair or replacement and while an out-of-court attempt to settle the dispute lasts, which includes mediation or conciliation the parties agree to.
#What does the guarantee mean for a WooCommerce order?
The decree speaks of delivery, reports, repairs and refunds. WooCommerce speaks of orders, statuses and refunds. This is my mapping of the first onto the second.
- Delivery date. Every period in articles 12, 13 and 16 runs from delivery. A core WooCommerce order records when it was paid and when it was completed, which is not the same day as delivery. The build adds a delivery date to the order, set from the carrier’s confirmation or entered by hand, and computes three dates from it: the end of the 30-day rejection window, the end of the two-year presumption and the end of the three-year guarantee.
- Order history in the account. The customer’s order page shows those three dates for each line, the legal guarantee of the product, and any commercial guarantee. The account is where a buyer will look before writing to you.
- Defect report. A form on the order creates a case with a timestamp, the order line, a description and photos, and sends a confirmation to both sides. The report is a provable means in the sense of article 12(5), so the build stores the message as it was sent.
- Case clock. The case records the date the goods were made available, the date conformity was restored and the number of repairs on the line. These give the suspension of article 12(4) and the six extra months per repair of article 18(4), up to four.
- Choice of remedy. The case form offers repair, replacement, price reduction or termination, with the consumer’s choice recorded. A rule can flag when repair or replacement is likely disproportionate so a person decides rather than the system.
- Refunds. WooCommerce’s refund documentation distinguishes automatic refunds through the gateway, which return the money by the payment method used for the order, from manual refunds, which do not refund through the gateway and have to be paid out by the shop. For an article 20 refund, the build defaults to the gateway refund and records a deadline of 14 days from the date the termination was notified.
- Refund holding. Article 20(7) lets the shop hold the refund until the goods arrive back or the customer shows proof of dispatch. The case states which of the two releases the refund.
- Used and reconditioned goods. A product condition field with new, used and reconditioned values drives the guarantee period shown, the 18-month agreement for used goods with a checkbox stored on the order, and the “reconditioned” mention printed on the invoice.
- Spare parts information. A per-product field holds the spare parts duty and its length, and a field for registered goods holds the after-sales duty. Both display on the product page and are copied to the order confirmation, since the seller must inform at contract time.
- Commercial guarantee statement. If a product carries a producer or shop guarantee, the shop attaches the Portuguese statement to the order email through the
woocommerce_email_attachments filter, which core email classes apply to every outgoing email, and keeps it in the account. - Snapshot of statements. The product description and guarantee text that applied when the order was placed are stored on the order. Article 7 ties conformity to public statements and to their correction before the contract, so a dated copy answers the question of what the shop said.
#Checklist for a Portuguese guarantee setup
- Store a delivery date on every order and derive the 30-day, two-year and three-year dates from it.
- Show those dates and the legal guarantee in the customer account.
- Offer a defect report form that records the date and sends a written confirmation.
- Track repairs per line: six extra months each, up to four.
- Record the consumer’s choice between repair, replacement, price reduction and termination.
- Default refunds to the original payment method and set a 14-day deadline from notification.
- Add a product condition field and print “reconditioned” on the invoice where it applies.
- Show the spare parts duty and its duration on the product page and in the confirmation.
- Attach any commercial guarantee statement in Portuguese to the order email.
- Keep a snapshot of the product statements at the time of the order.
#How does a returns and warranty project run?
- You send the shop address, the product groups, the carriers and delivery data you can capture, your current returns process, your deadline and plugins. The email reply reaches you within 24 hours on working days.
- I write down the scope and my assumptions, with questions such as where the delivery date comes from, who decides on disproportionate remedies and which statuses already exist.
- The build runs on a staging copy, where you place test orders, send a test defect report and run a test refund.
- Once you accept in writing, the flows go live. A maintenance plan can keep the shop updated and recheck these flows after each update.
I need admin access to WordPress and hosting, your current returns wording and the export of your order statuses. For other shop work see the WooCommerce developer page.
#Send me your shop
If your shop sells goods to Portuguese consumers, send me its address, your returns wording, your carriers and your deadline through the contact form. The first written estimate for the returns and warranty work is free.