PHPackages                             athoscommerce/magento2-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. athoscommerce/magento2-module

ActiveMagento2-module[API Development](/categories/api)

athoscommerce/magento2-module
=============================

AthosCommerce connector for Magento 2

1.0.0(3mo ago)1131[1 PRs](https://github.com/AthosCommerce/magento2-module/pulls)GPL-3.0-onlyPHPPHP ~7.4.0|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0

Since Nov 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/AthosCommerce/magento2-module)[ Packagist](https://packagist.org/packages/athoscommerce/magento2-module)[ RSS](/packages/athoscommerce-magento2-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (10)Used By (0)

AthosCommerce Feed module for Magento 2
=======================================

[](#athoscommerce-feed-module-for-magento-2)

This module generates product data feed and syncs it with AthosCommerce platform. This module also automatically install the Athoscommerce tracking scripts on Product Detail Page, Cart Page, Checkout Success Page.

### Installation &amp; Setup

[](#installation--setup)

```
composer require athoscommerce/magento2-module
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy

```

### Verify that the extension is enabled

[](#verify-that-the-extension-is-enabled)

`bin/magento module:status AthosCommerce_Feed`

### Upgrade

[](#upgrade)

```
composer update athoscommerce/magento2-module
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:clean

```

---

Module Extensibility
====================

[](#module-extensibility)

Product Feed: Product Collection modification
---------------------------------------------

[](#product-feed-product-collection-modification)

### Overview

[](#overview)

The feed product collection is built using a modifier pipeline. Each modifier is responsible for applying filters, joins, or attribute selections to the product collection.

### Creating a Custom Data Provider

[](#creating-a-custom-data-provider)

#### Step 1: Create the Modifier Class

[](#step-1-create-the-modifier-class)

```
namespace Vendor\Module\Model\Feed\Collection;

use Magento\Catalog\Model\ResourceModel\Product\Collection;
use AthosCommerce\Feed\Model\Feed\Collection\ModifierInterface;
use AthosCommerce\Feed\Api\Data\FeedSpecificationInterface;

class CustomVisibilityModifier implements ModifierInterface
{
    /**
     * @param Collection $collection
     * @param FeedSpecificationInterface $feedSpecification
     * @return Collection
     */
    public function modify(
        Collection $collection,
        FeedSpecificationInterface $feedSpecification
    ): Collection
    {
        $collection->addAttributeToFilter('visibility', ['neq' => 1]);
        return $collection;
    }
}
```

#### Step 2: Register the Modifier via DI

[](#step-2-register-the-modifier-via-di)

In `app/code/Vendor/Module/etc/di.xml` add your custom modifier:

```

                Vendor\Module\Model\Feed\Collection\CustomVisibilityModifier
                350

```

Product Feed: Product Data Provider modification
------------------------------------------------

[](#product-feed-product-data-provider-modification)

### Overview

[](#overview-1)

Product feed data is generated using a **Data Provider Pool**. Each data provider contributes a specific part of the product payload (price, stock, attributes, options, etc.).

### Creating a Custom Data Provider

[](#creating-a-custom-data-provider-1)

#### Step 1: Create the Provider Class

[](#step-1-create-the-provider-class)

```
namespace Vendor\Module\Model\Feed\DataProvider;

use AthosCommerce\Feed\Model\Feed\DataProviderInterface;
use AthosCommerce\Feed\Api\Data\FeedSpecificationInterface;
use Magento\Catalog\Model\Product;

class CustomBadgeProvider implements DataProviderInterface
{
    /**
     * @param array $products
     * @param FeedSpecificationInterface $feedSpecification
     * @return array
     */
    public function getData(
        array $products,
        FeedSpecificationInterface $feedSpecification
    ): array
    {
        foreach ($products as &$product) {
            $productModel = $product['product_model'] ?? null;
            if (!$productModel) {
                continue;
            }
            $product['custom_badge'] = $productModel->getData('custom_badge');
        }

        return $products;
    }

    public function reset(): void
    {
        // reset any internal state if needed
    }

    public function resetAfterFetchItems(): void
    {
        // reset any internal state if needed
    }
}
```

### Step 2: Register the Provider via DI

[](#step-2-register-the-provider-via-di)

In `app/code/Vendor/Module/etc/di.xml` add your custom data provider:

```

            Vendor\Module\Model\Feed\DataProvider\CustomBadgeProvider

```

### Storefront Tracking: To Add Custom Product Type

[](#storefront-tracking-to-add-custom-product-type)

In `app/code/Vendor/Module/etc/frontend/di.xml` you can add your custom product type, for example

```

            AthosCommerce\Feed\Service\Tracking\YourProductTypeItemPriceResolver

```

Then add to `app/code/Vendor/Module/Service/Tracking` directory your custom class, for example `YourProductTypeItemPriceResolver.php`:

```
class YourProductTypeItemPriceResolver implements OrderItemPriceResolverInterface
{
    public function getProductPrice(OrderItemInterface $product): ?float
    {
        //your custom code
    }
}
```

Also you can do the same for `quoteItem`:

```

            AthosCommerce\Feed\Service\Tracking\YourProductTypeItemPriceResolver

```

Then add to `app/code/AthosCommerce/Feed/Service/Tracking` directory your custom class, for example `YourProductTypeItemPriceResolver.php`:

```
class YourProductTypeItemPriceResolver implements QuoteItemPriceResolverInterface
{
    public function getProductPrice(CartItemInterface $product): ?float
    {
        //your custom code
    }
}
```

Also, you can do the same for `quoteItem`:

```

            AthosCommerce\Feed\Service\Tracking\YourProductTypeSkuResolver

```

`YourProductTypeItemSkuResolver.php`:

```
class YourProductTypeSkuResolver implements SkuResolverInterface
{
    public function getProductSku($product): ?string
    {
        //your custom code
    }
}
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance87

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Total

2

Last Release

96d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a501f4ce458eab9973323cbbde39a8b30f5cf09f9806334273d67458b02a74bd?d=identicon)[athoscommerce](/maintainers/athoscommerce)

---

Top Contributors

[![sandipklevu](https://avatars.githubusercontent.com/u/49310430?v=4)](https://github.com/sandipklevu "sandipklevu (12 commits)")[![nileshdbabar2023](https://avatars.githubusercontent.com/u/135719071?v=4)](https://github.com/nileshdbabar2023 "nileshdbabar2023 (3 commits)")[![tejasklevu](https://avatars.githubusercontent.com/u/30118455?v=4)](https://github.com/tejasklevu "tejasklevu (1 commits)")

---

Tags

magento2magento2-extensionmagento2-module

### Embed Badge

![Health badge](/badges/athoscommerce-magento2-module/health.svg)

```
[![Health](https://phpackages.com/badges/athoscommerce-magento2-module/health.svg)](https://phpackages.com/packages/athoscommerce-magento2-module)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[subscribepro/subscribepro-magento2-ext

Subscribe Pro Magento 2 Integration Extension

24157.3k](/packages/subscribepro-subscribepro-magento2-ext)[xcoreplatform/xcore-magento2

This module extends the rest api of Magento2 and is needed for the usage of the xCore.

1330.0k2](/packages/xcoreplatform-xcore-magento2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
