# spaggel/tooltip

> Product attribute tooltips module for Magento 2

`composer require spaggel/tooltip`

Canonical URL: https://packagento.com/spaggel/tooltip

## At a glance

- **Vendor**: spaggel (https://packagento.com/spaggel.md)
- **Latest version**: 1.2.4 — released 2024-11-04
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/spaggel/tooltip and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require spaggel/tooltip:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Product attribute tooltips module for Magento 2

## README

![downloads](https://img.shields.io/packagist/dt/Spaggel/Tooltip?style=plastic)

This module adds support for tooltips on product attributes.

<b> Version 1.2.0 and above of this module will only support Magento 2.4. For Magento versions below 2.4, 
please use versions older than 1.2.0 of this module.</b>

#### Support me 
You can support my work by buying me a coffee 😀

<a href="https://www.buymeacoffee.com/spaggel" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

### Install

Run `composer require spaggel/tooltip` to install the latest release.

### Functionality

**Support for tooltips on:**
- Product attributes table (product view page)
- Configurable swatches (product view page)

#### Demo

Frontend demo: [here](https://magento2.spaggel.nl/configurable-product-2.html) (currently offline)

#### Screenshots

##### Product information:

Closed:

![tooltip closed](https://raw.githubusercontent.com/wiki/Spaggel/Tooltip/img/product-attribute-tooltip-closed.jpg)

Opened:

![tooltip open](https://raw.githubusercontent.com/wiki/Spaggel/Tooltip/img/product-attribute-tooltip-open.jpg)

##### Configurable product swatch:

Closed:

![swatch closed](https://raw.githubusercontent.com/wiki/Spaggel/Tooltip/img/product-swatch-tooltip-closed.png)

Opened:
 
![swatch open](https://raw.githubusercontent.com/wiki/Spaggel/Tooltip/img/product-swatch-tooltip-open.png)

**Todo**:

Add support for:
- [ ] Layered navigation attributes
- [ ] CMS variables (e.g. {{store url}}) **Work in progress**
- [ ] ??

### How to use

More info can be found in the [Wiki](https://github.com/Spaggel/Tooltip/wiki).

#### Technical info

I wrote some technical stuff about the module and how it works: [here](https://github.com/Spaggel/Tooltip/wiki/Technical-details).

#### Credits

This module is using the [MIT License](https://github.com/Spaggel/Tooltip/blob/master/LICENSE.md)

#### Contributing

Feel free to create an issue or submit a pull request. I'll do the best I can to help you.

## Recent Versions

| Version | Released |
|---|---|
| 1.2.4 | 2024-11-04 |
| 1.2.3 | 2024-09-06 |
| 1.2.2 | 2022-06-20 |
| 1.2.1 | 2021-11-04 |
| 1.2.0 | 2020-11-27 |
| 1.1.2 | 2020-03-10 |
| 1.1.1 | 2020-03-09 |
| 1.0.1 | 2020-02-27 |
| 1.0.0 | 2019-12-19 |
| 0.1.6 | 2019-12-13 |

Showing 10 of 15 versions. Full release history on https://packagento.com/spaggel/tooltip.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ~103.0 |
| magento/module-backend | ~102.0 |
| magento/module-catalog | ~104.0 |
| magento/module-store | ~101.0 |
| magento/module-ui | ~101.2 |
| php | ~7.3.0\|\|~7.4.0\|\|~8.1.0\|\|~8.2.0\|\|~8.3.0 |

## Quality

Latest release (1.2.4) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | not tested | – |
| 2.4.9 | – | – | not tested | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 19 | 2 errors, 17 warnings (ruleset: Magento2) — 15 auto-fixable with phpcbf |
| PHPMD | Warning | 4 | 4 rule violations (UnusedFormalParameter:4) |
| Cpd | Pass | 0 |  |
| Composer validate | Pass | 0 |  |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 4 | 4 | – | – |
| 2.4.8 | – | 4 | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["spaggel/tooltip"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

spaggel is a Magento 2 vendor on Packagento. See https://packagento.com/spaggel.md for their full catalogue.

