1. What this module does
The module sells services around your products — an extended warranty for 1, 2 or 3 years, carrying the delivery upstairs, installation — where the customer decides: in the popup that opens after a product is added to the cart, on the product page and on the cart page. A chosen service is a cart line of its own, with its own price and tax, and appears in the order, the e-mails and the invoice like any product.
Works with PrestaShop 9.0 – 9.x (PHP 8.1 or newer), with the Classic and Hummingbird themes and with multistore. It does not run on PrestaShop 1.7 or 8.
2. Installation
- Download the module from My account → Order history at addonspresta.com.
- In your Back Office, open Modules → Module Manager and click Upload a module.
- Drop the
ap_extraservices_v1.1.0.zipfile and wait for the confirmation. - Click Configure on the module card.
With shell access, you can also unpack the zip into modules/ as the user that runs PHP for your shop, then run
php bin/console prestashop:module install ap_extraservices and php bin/console cache:clear from the shop folder.
Right after the installation the module is on and offers services in the popup, on the product page and on the cart page, but there are no services yet: you add them in the Services panel.
3. How it works
Groups and options. A service group is what you offer, for example "Extended warranty"; its options are what customers buy, for example "1 year", "2 years" and "3 years". Each group has rules that decide for which products it is offered, and says whether the customer picks one option or several.
Every option is a hidden product. When you save an option, the module creates a virtual product for it, with the
reference APS-<number>, the name "group name: option name" (for example "Extended warranty: 2 years"), the
option's price and tax rule. It is not shown in your categories, search or product lists, but you see it in
Catalog → Products in the Back Office. Do not edit or delete these products by hand: the module overwrites them
each time you save the option. If one is deleted anyway, it is created again the next time you save its option or
group; until then the option is not offered.
A chosen service is its own cart line. It has its own price and tax rule, and the cart, the order confirmation, the order e-mail, the Back Office order and the invoice list it like a product. A service sold for a product carries the text "For: product name" (the label is a setting), so everyone can see which product it belongs to. PrestaShop prints that text as a product customization; to make it possible, the module switches PrestaShop's customization feature on when you save the first such option. On the cart page the module can list the service under its product instead, with its price and a Remove button (setting Services under their product in the cart); the totals, the checkout, the order and the invoice still count it as a line of its own.
Services follow their product. After every change of a cart in the storefront the module checks the services:
- when the customer removes the product, its services go too;
- a service follows the product's quantity (three washing machines, three warranties) or stays at 1, as the group says;
- a service is removed when its group is no longer offered for that product — for example when a quantity discount, a login or a new price moves the product out of the group's price range, or when you disable the option or the group;
- a service sold once per order is removed when no matching product is left in the cart.
The customer can remove a service from the cart at any time. A service cannot be bought on its own: if one gets into a cart without its product (for example through the address of its hidden product page), the module takes it out.
Rules. A group is offered for a product when the product is in one of the chosen categories, or of one of the chosen brands, or on the list of product IDs — with nothing chosen, every product matches — and its price is in the group's price range. The price is the price the customer pays for one unit of the chosen combination, with tax, after discounts, in your default currency. A group sold once per order is offered while the cart holds at least one matching product.
Where services are offered. Each place has its own switch in Settings:
- The add-to-cart popup — under the popup content in Classic, above the two buttons in Hummingbird. The customer clicks Add next to an option; the popup shows the new total and the button changes to Added (a second click removes the service). It needs the AJAX cart of the "Shopping cart" module (Modules → Module Manager → Shopping cart → Configure → Ajax cart). Without it there is no popup, and the services are offered on the product page and on the cart page.
- The product page — next to the add-to-cart button: checkboxes, or radio buttons with No, thanks when the customer picks one option. The ticked services are added together with the product. Groups sold once per order are not shown here. When the customer picks another combination, the block is rendered again for it: a group whose price range no longer fits disappears, and the options already ticked stay ticked.
- The cart page — a section below the cart lines, with one block per product that has services, then the services sold once per order (under "For the whole order" when product blocks are shown too). It refreshes after every cart change. With Services under their product in the cart on, a service sold once per order that is in the cart shows here as Added instead of as a line of the cart.
Shop settings the module follows. Nothing is offered in catalog mode (Shop Parameters → Product Settings) or to a customer whose group may not see prices (Shop Parameters → Customer Settings → Groups → Show prices).
What it leaves alone. Services are not carried over when a customer reorders a past order: they choose them again. Carts and orders you create in the Back Office are not watched: the module adds, removes or adjusts nothing there. Vouchers and the free shipping threshold count services like any other product (see the FAQ to leave them out of a voucher). The module stores which service belongs to which product only while the order is a cart; placed orders keep the service lines as ordinary order lines. It does not connect to addonspresta.com or any other server.
4. Features and settings
Open Modules → Module Manager → Extra Services & Warranties → Configure. The Help box at the top links this manual and the module page at addonspresta.com in the language of your Back Office, gives our support address and shows the installed version. Below it are the Settings panel and the Services panel.
Settings
Enabled
Off: no service is offered anywhere in the shop and customers cannot add one. Services already in carts leave them at the next change of the cart. On by default.
Offer in the add-to-cart popup
Shows the services for the product just added inside the popup of your theme, together with the services sold once per order. On by default.
Offer on the product page
Shows the services of the product next to the add-to-cart button; the ticked ones are added together with the product. On by default.
Offer on the cart page
Shows a section below the list of products in the cart. On by default.
Services under their product in the cart
On: the cart page lists each service under the product it was bought for — its name, "× 2" when there is more than one, its price and a Remove button — instead of as a line of its own with "For: product". A service sold once per order then leaves the list and shows as Added in the cart page section, where a click removes it; this needs Offer on the cart page on and the section still offering its group, otherwise the service stays a line of its own. Only the cart page changes: the totals, the number of products in the header, the add-to-cart popup, the checkout summary, orders and e-mails keep the service lines.
On by default in a new installation, off after the update from version 1.0.0.
Picture of the service lines
On: the hidden products of your services get a neutral service picture, a shield with a plus, so the service lines have a picture wherever PrestaShop shows them, for example at checkout, in orders and in e-mails. A picture you added to such a product yourself in Catalog → Products is kept, and the module adds none to it. Off: the module removes the picture it added and leaves yours.
The setting applies to the services of the shops you save for when you click Save; a new option gets its picture when you save it. On by default in a new installation, off after the update from version 1.0.0.
Block title
The heading above the services, for each language, up to 128 characters. Required in the default language; a language left empty uses the title of the default language. After the installation it reads "Add extra services".
Label on the service line
The word printed before the product name on a service line in the cart, the order and the invoice, for example "For: Washing machine". For each language, up to 64 characters, without the characters < > ; = # { }. Required in the default language. After the installation it reads "For". Saving a new label renames it on all existing services of the shops you save for.
Services
The panel lists your groups with their options below them, in the order customers see them. The Details column sums up a group ("One option · For each matching product · All products", plus the price range when there is one) and gives the price of an option without tax. Add a service group opens an empty group form.
Buttons of a group: Add an option, Edit, Disable or Enable, Up and Down (the order in the storefront), Delete (deletes the group with all its options and their hidden products, after a confirmation). Buttons of an option: Edit, Disable or Enable, Up, Down, Delete.
The Status column shows Enabled or Disabled, or "Product missing — save the option again" when the hidden product of an option was deleted: open the option and click Save.
In multistore the panel works with one shop selected in the header; otherwise it shows "Services belong to one shop. Select a shop in the header to add or change them."
Service group form
Name
What customers read above the options, for example "Extended warranty", for each language, up to 128 characters, without < > ; = # { }. Required in the default language. It also starts the name of the service in the cart and on the invoice.
Description
An optional line under the name, plain text, up to 255 characters per language.
Customer can choose
- One option — choosing another option replaces the previous one, as with warranty periods. On the product page the options are radio buttons with No, thanks.
- Several options — the customer can add any of them, as with installation plus a recycling of the old appliance.
Sold
- For each matching product — offered for every product that matches the rules; the service line shows which product it belongs to.
- Once per order — offered while the cart holds a matching product, for example carrying the delivery upstairs. It is offered in the popup and on the cart page, not on the product page, and its cart line has no "For:" text.
Quantity
- One service per product unit — three washing machines get three warranties.
- One service per cart line — one service whatever the quantity.
Ignored for groups sold once per order: they are always added once.
Categories
Tick the categories whose products get the group. A product matches when any of its categories is ticked, not only its main one. Categories, brands and product IDs add up: a product matches when it meets one of them. Leave all three empty to offer the group for every product. Up to 200 categories.
Include subcategories
On (default): a ticked category also covers the products of every category below it. Off: only products assigned to the ticked categories themselves.
Brands
Choose one or more brands (hold Ctrl, or Cmd on a Mac, to choose several), up to 200. Without brands in your catalog the list says so.
Products (ids)
Product IDs from Catalog → Products, separated by commas, for example 12, 15, 108 (spaces and semicolons work too), up to 200.
Product price from / Product price to
The range of the product price, with tax, after discounts, in the default currency. Empty or 0 means no limit. Both limits are included: a product at exactly the limit matches. "Product price to" cannot be lower than "Product price from". You can write decimals with a dot or a comma.
Enabled
Off: the group is not offered, its hidden products are switched off and it is removed from carts at their next change.
Option form
Name
For example "2 years", for each language, up to 128 characters, without < > ; = # { }. Required in the default language. In the cart the service is named "group name: 2 years". A group can have up to 30 options.
Description
An optional line under the name, plain text, up to 255 characters per language.
Price (tax excl.)
Required, in the default currency, from 0 to 9,999,999; decimals with a dot or a comma. PrestaShop converts it to other currencies and adds the tax of the Tax rule. Customers see it with or without tax as their group shows prices.
Tax rule
The tax rules of your shop, or No tax. A new option starts with the tax rule most of your active products use.
Enabled
Off: the option is not offered and is removed from carts at their next change.
Example: extended warranty for 1, 2 or 3 years
- In Services, click Add a service group.
- Name: "Extended warranty". Description: "Repairs and replacement after the manufacturer's warranty."
- Customer can choose: One option. Sold: For each matching product. Quantity: One service per product unit.
- Tick the categories of the products you want to cover, for example "Home appliances", and keep Include subcategories on. Click Save.
- Next to the new group, click Add an option: Name "1 year", Price (tax excl.) 29, your usual Tax rule. Click Save. Add "2 years" at 49 and "3 years" at 69 the same way.
A customer who adds a washing machine sees "Extended warranty" with three options in the popup, picks "2 years" and finds "Extended warranty: 2 years" under the washing machine on the cart page; the order and the invoice show it as a line with "For: Washing machine". Choosing "3 years" later replaces it.
Example: warranty priced by product value
Create three groups named "Extended warranty", each with its own options and prices, and give them ranges that do not overlap:
- Product price from empty, Product price to 499.99 — options at 29, 49 and 69;
- from 500 to 999.99 — options at 59, 89 and 119;
- from 1000, Product price to empty — options at 99, 149 and 199.
Each product then matches exactly one group. Ranges that share a limit (for example "to 500" and "from 500") would offer two groups for a product at 500.
Example: carrying upstairs
- Add a service group: Name "Delivery service", Customer can choose Several options, Sold Once per order, the categories of your large items ticked. Click Save.
- Add an option: Name "Carry upstairs", Price (tax excl.) 39, Save.
The option appears in the popup and in the cart page section while the cart holds one of those products; it is added once for the whole order, as "Delivery service: Carry upstairs". When the last matching product leaves the cart, the service goes too.
5. Multistore
Settings are saved for the shop or shop group selected in the Back Office header. Select All stores to set the same values everywhere, or a single shop to give it its own values. In the All shops or group context only an employee who manages every shop of that context can save; others see "Select one of your shops in the header to change the settings: in the All shops or group context they also apply to shops you do not manage."
Services belong to one shop, together with their hidden products. Select that shop in the header to add or change them; to offer the same services in another shop, create them there too. Each shop offers only its own services. One licence covers every shop of the installation.
6. Uninstall
Module Manager → Extra Services & Warranties → Uninstall deletes all groups, options and settings, and the hidden products of the services. Lines of placed orders stay: PrestaShop keeps their name and price in the order. Services waiting in customers' carts disappear with their products.
To keep everything, use Disable instead. A disabled module no longer watches the carts, so it switches its hidden products off; Enable switches them back as their groups and options say.
If another module reports an error while the hidden products are deleted or switched, it is written to Advanced Parameters → Logs and the uninstall or the disabling goes on.
7. FAQ and troubleshooting
The services do not appear in the add-to-cart popup.
Check, in this order: Enabled and Offer in the add-to-cart popup are on; catalog mode is off and the
customer's group may see prices; the AJAX cart of the "Shopping cart" module is on (without it there is no popup); a
group and one of its options are enabled, and the Services list shows no "Product missing — save the option again";
the product matches the group's categories, brands or IDs; its price, with tax and after discounts, is inside the
group's price range. With a theme other than Classic or Hummingbird, its popup template must call the hook
displayCartModalFooter — ask your theme developer. Then clear the cache in Advanced Parameters → Performance.
A service disappeared from the cart. The module removed it because it no longer fits: the product was removed; a quantity change, a login or a new price took the product out of the group's price range; the option or the group was disabled or deleted; or, for a service sold once per order, no matching product is left. The customer can add it again when it is offered.
Why does the service line say "Customized" or "Product customization"? The text "For: product" is stored as a product customization, which is how PrestaShop shows it in the order, the e-mails and the invoice. Hummingbird shows it behind a Customized button, Classic behind a "Product customization" link. On the cart page the module lists the service under its product, or, with Services under their product in the cart off, prints "For: product" under the service line.
Why are the services listed under the product on the cart page? Because Services under their product in the cart is on. They are still lines of their own: they count in the totals and the number of products, and the checkout, the order, the e-mails and the invoice list them. Switch the setting off to show them as separate lines on the cart page too.
How do I remove the service picture or use my own?
Switch Picture of the service lines off and click Save: the module removes only the picture it added. For a
picture of your own, then add it to the hidden product of the service in Catalog → Products (reference
APS-<number>); the module never replaces or removes a picture you added.
How do I price a warranty by the value of the product? Create one group per price range, each with its own options and prices, with ranges that do not overlap — see "Example: warranty priced by product value" above.
The Services list says "Product missing — save the option again". The hidden product of that option was deleted in Catalog → Products. Click Edit on the option, then Save: the module creates the product again and the option is offered again.
Can a customer buy a service without the product? No. Services are hidden from the catalog and offered only together with a matching product. A service line that gets into a cart without its product is removed at once.
How do I leave the services out of a voucher? Service products are only in your shop's home category. In Catalog → Discounts → Cart Rules, edit the rule; in Conditions, tick Product selection, add a rule concerning categories and choose your product categories except the home one; in Actions, apply the discount to Selected product(s) (PrestaShop offers this choice for percentage discounts). Without that, a voucher and the free shipping threshold count services like any other product.
I disabled an option. What happens to the carts that already hold it? Its hidden product is switched off, so it can no longer be ordered: PrestaShop sends a customer who goes to the checkout back to the cart with a message that the product is no longer available. The module removes the service from a cart at the cart's next change.
Which tax does a service get? The tax rule chosen for the option, applied like for any product, according to the customer's address. Customers see the price with or without tax as their group shows prices. A discount of the customer group, or a catalog price rule that covers all products, also lowers the price of a service.
How do services work with several currencies? You enter option prices and the group price ranges in the default currency. PrestaShop converts option prices to the customer's currency; the module converts the product price back to the default currency to compare it with the range.
A text is still in English in my shop. The block title and the label of the service line are settings: fill them in for each language in Settings. Group and option names are entered per language in their forms. The other texts of the module are translated in International → Translations → Installed modules translations.
Can I change how the block looks?
Yes, from your theme, so your changes survive updates: the README.md file in the module zip, section
"Customising", lists the template sections and CSS classes you can change.
8. Updates and support
Updates are free for life: download new versions from My account → Order history at addonspresta.com and upload them like a new module. Your settings and services are kept.
Updating from version 1.0.0. Version 1.1.0 adds Services under their product in the cart and Picture of the service lines. After the update both are off, so your cart looks as before. Switch them on in Settings and click Save: saving also gives the hidden products of your services their picture.
Support is included for 12 months from your order: write to mail@addonspresta.com or use the contact form at addonspresta.com (Monday to Friday, 10:00–16:00 CET; we usually answer within 2 business days). Please include your PrestaShop version, the module version and the steps that lead to the problem.
Version 1.1.0 passed an AI-assisted security audit before its release. Security issues are fixed as a priority.