# feedaty/module-badge2

> Feedaty Badge for magento 2

`composer require feedaty/module-badge2`

Canonical URL: https://packagento.com/feedaty/module-badge2

## At a glance

- **Vendor**: feedaty (https://packagento.com/feedaty.md)
- **Latest version**: 2.10.10-stable — released 2024-12-11
- **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/feedaty/module-badge2 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 feedaty/module-badge2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Feedaty Badge for magento 2

## README

<h1> FEEDATY BADGE 2</h1>


Feedaty is a social commerce site dedicated to online stores for the professional management of customer feedback. 
The service is provided through a platform Saas (Software as a Service) and may be activated quickly and easily through a short integration process.


<h2> INSTALL FEEDATY MODULE </h2>


<h3> Install from composer </h3>

1) move to your magento root directory
 ```bash
 # cd /var/www/html/path/to/your/magento-root-dir
```

2)  login as the owner of your magento filesystem, for example:
```bash
 # su magentouser
```
3) require and install the package

```bash
 # composer require feedaty/module-badge2
```
 
<h3> Install Feedaty module manually </h3>

1) Download Feedaty Module from https://github.com/feedaty/Feedaty_Badge-Magento2
2) You have to manually create folders Feedaty/Badge/ at path/to/your/magento-root-dir/app/code/ and Move content of Feedaty_Badge-Magento2-master directory in path/to/your/magento-root-dir/app/code/Feedaty/Badge/ 
3) move to your magento root directory
```bash
## cd /var/www/html/path/to/your/magento-root-dir
```
5) login as the owner of your magento filesystem, for example:
```bash
 # su magentouser
```
5) run comand
```
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy [<languages>]
```

<h2> DISABLE FEEDATY MODULE </h2>

<h3> Disable feedaty module from Magento Console. </h3>

1st) login with the own of the magento installation, after you must enter below commands:
```bash

 # cd /var/www/path/to/your/magento-root-dir

 # bin/magento module:disable Feedaty_Badge

```

to clear static contents you can append "--clear-static-contents" in module:disable command
If you append "--clear-static-contents" don't forget to run
```bash

 # bin/magento setup:di:compile
 # bin/magento setup:static-content:deploy

```

<h2> SETUP/CONFIG FEEDATY WIDGETS </h2>


To setup Feedaty Widgets follow these steps;

1st) Click on "Stores" in the left-side bar menu.

2nd) Click on "Configurations".

3rd) Insert Feedaty merchant codes and Feedaty merchant secrets on relative stores .

4th) Select preferences aboute module design, and set on enable widgets and/or product reviews.


<h3>Import Feedaty Reviews</h2>

Reviews are imported by cron job. Make sure you have cron enabled on Magento.


<h2> INFOS AND CONTACTS </h2>

www.feedaty.com

<h2> LICENSE </h2>

AFL-3.0

## Changelog

###### CHANGELOG FEEDATY FOR MAGENTO 2

##### RELASE NOTES

#### V2.10.7

* Fixed Bugs
    * Warning: Trying to access array offset on value of type null in WebService.php

#### V2.10.6

* Fixed Bugs
    * getStoreId from orders instead of websiteId when create reviews
    * check if review detail is empty
    * set database fields nullable
* 
#### V2.10.5

* Fixed Bugs
    * Orders Export | Fix call to a member function getId() on null

#### V2.10.4

* Fixed Bugs
    * Fix Undefined property:  $request in Controller/Adminhtml/Index/Index.php
  
#### V2.10.3

* Fixed Bugs
    * PHP 8.2 compatibility

#### V2.10.1
* Features:
    * Debug Mode
    * Export Orders EAN code

* Fixed Bugs
    * Create multiple order review


#### V2.9.1

* Fixed Bugs
    * Duplicated reviews
  
#### V2.9.0

* Features:
    * Add EAN to Orders

#### V2.8.0

* Fixed Bugs
    * Multimerchant support

#### V2.7.0

* Features:
  * New Feedaty Badges integrated
  * New Rich snippets for all reviews integrated
  * New export orders function. Orders are now exported to Feedaty with cronjob
  * Old Product Snippet has been removed
  * New Product Badge Widget
  * New Store Badge Widget
  * Curl Factory Pattern
  * Removed custom timeout
  * Platform Information API
  * Ability to import reviews into Magento native reviews

* Fixed Bugs
  * Fixed json serialize vulnerability
  * Minor bug fix


#### V2.6.7 05/09/2021
- Fix Culture Code - Reviews are now requested in the correct store view language

#### V2.6.0 14/04/2021

- 	New Product Badge Widget
- 	New Store Badge Widget

#### V2.5.7-dev- 14/04/2021 

 - 	Snippet prodotto

#### V2.5.6-beta2 - 04/02/2020 

 - 	Fix undefined variable 

#### V2.5.5-beta - 04/02/2020 

 - 	Patch Errore Store style
 -	Corretto Prametro Culture in web service feedaty

#### V2.5.4-beta - 04/02/2020 

 - Gestione parametro Culture tramite API per invio mail survey

#### V2.5.3-beta - 04/02/2020 

 - Gestione dello store e delle conf in base allo store dell'ordine 

#### V2.5.2-beta - 11/01/2020 

 - Gestiti Prodotti Configurabili (viene presa immagine del children sku del padre e url del padre)
 - Gestito errore stato pending e gestito array prodotti vuoto

#### V2.5.1-beta - 11/01/2020 


#### V2.5.0-beta - 23/12/2020 

 - Sostituita classe OrderRepository con OrderInterface e caricato ordine tramite increment ID
 - Incremento di una minor per via della classe sostituita in teoria i cambiamenti sono incompatibili 
 - Con le vecchie versioni 
 
#### V2.4.0-beta - 03/12/2020

UPDATES:

 - Refactory codice Observer utiizzando API INTERFACE ORDERS
 - Refactory Snippets prodotto

FIXES:

- Fix undefined $zoorate_env 
- Fix Intercept order (qaplà)

#### V2.3.6-beta - Cosimo

UPDATES:

	- Fixato errore variabile $return non dichiarata in ProdVariants.php at line 84

#### V2.3.5-beta - Cosimo

UPDATES:

	- Fixato sistema widget prodotto
	- Cambiato sistema configurazione widget (aggiunto JS per gestione preview in tempo reale senza salvataggio)
	- Fixato problema istanza varianti merch e varianti prodotto (KGC shop)

#### V2.3.4-beta - Cosimo

UPDATES:

	- Fix bug nei microdati prodotto che appendeva una & che rompeva le cache nel File:
		./Model/Config/Source/WebService.php
		
	- Inserita gestione configurazione timeout
		(nel caso di timeout reached il plugin logga errore e rilascia processo)
	- Aumentata la cache a 24h


#### V2.3.3-beta - Cosimo

UPDATES:

	- Fix bug get instance model product in foreach nel File ./Observer/InterceptOrder.php

##### RELASE NOTES

#### V2.3.2-beta - Cosimo

- Fixato problema order id e store id nel'intrcept dell'ordine

#### V2.3.1-stable - Cosimo

- Fixato problema con info curl protocollo

#### V2.3.1-beta - Cosimo

- Fixato path di export csv (viene sportato nella cartella tmp)
- Ampliata Funzione di debug per rilevare errori CURL e info HEADER

#### V2.3.0-beta - Cosimo

Fixata visualizzazione store badge
Fixata visualizzazione product badge

#### V2.3.0 - Cosimo

- New Widgets V6

_(Changelog truncated for .md surface. Full history on https://packagento.com/feedaty/module-badge2.)_

## Recent Versions

| Version | Released |
|---|---|
| 2.10.10-stable | 2024-12-11 |
| 2.10.9-stable | 2024-07-30 |
| 2.10.8 | 2024-04-30 |
| 2.10.7-stable | 2023-12-15 |
| 2.10.6-stable | 2023-11-02 |
| 2.10.5-stable | 2023-09-06 |
| 2.10.4-stable | 2023-06-10 |
| 2.10.3-stable | 2023-05-14 |
| 2.10.2-stable | 2023-03-24 |
| 2.10.1-stable | 2022-11-23 |

Showing 10 of 61 versions. Full release history on https://packagento.com/feedaty/module-badge2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-curl | * |

### Suggest

| Package | Constraint |
|---|---|
| magento/framework | 100.0.* \| 100.1.* |
| magento/module-backend | 100.0.* \| 100.1.* |
| magento/module-bundle | 100.0.* \| 100.1.* |
| magento/module-cache-invalidate | 100.0.* \| 100.1.* |
| magento/module-catalog | 100.0.* \| 101.0.* |
| magento/module-cookie | 100.0.* |
| magento/module-customer | 100.0.* \| 100.1.* |
| magento/module-eav | 100.0.* \| 100.1.* |
| magento/module-sales | 100.0.* \| 100.1.* |
| magento/module-store | 100.0.* \| 100.1.* |
| magento/module-theme | 100.0.* \| 100.1.* |
| magento/module-translation | 100.0.* |
| magento/module-ui | 100.0.* \| 100.1.* |
| magento/module-url-rewrite | 100.0.* \| 100.1.* |

## Quality

Latest release (2.10.10-stable) 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 | – | not tested | not tested | – |
| 2.4.9 | – | – | Pass | 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 | 450 | 3 errors, 447 warnings (ruleset: Magento2) — 262 auto-fixable with phpcbf |
| PHPMD | Warning | 41 | 41 rule violations (UndefinedVariable:29, CyclomaticComplexity:3, ExcessiveMethodLength:3, UnusedLocalVariable:3, NPathComplexity:2) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### 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 | 60 | 60 | – | – |
| 2.4.8 | – | 60 | 60 | – |
| 2.4.9 | – | – | 59 | 59 |


### 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=["feedaty/module-badge2"],
  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

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

