PHPackages                             magenable/module-purchase-partner-url - 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. magenable/module-purchase-partner-url

ActiveMagento2-module

magenable/module-purchase-partner-url
=====================================

A Magento 2 module that allow specify partner url for any product

1.5.6(8mo ago)4162MITPHPPHP &gt;=7.1.0

Since Apr 6Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/magenable/module-purchase-partner-url)[ Packagist](https://packagist.org/packages/magenable/module-purchase-partner-url)[ RSS](/packages/magenable-module-purchase-partner-url/feed)WikiDiscussions master Synced today

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

Purchase From Partner
=====================

[](#purchase-from-partner)

**Purchase From Partner** is a Magento 2 module that allows you to replace standard `Add to Cart` button with links to external websites where visitors may purchase the products. Think about Amazon affiliate store, cases when a brand has products available exclusively to retail partners. The module may send events to Google analytics when clicking on the links for tracking/reporting.
There may be one or more partner URL per product. The URLs are defined on product level, so some of your product may have normal Add to cart and some partner links.

The extension is compatible with Magento version 2.3.X and 2.4.X

PWA Studio
----------

[](#pwa-studio)

The extension for Magento PWA Studio can be found here:

Hyvä themes
-----------

[](#hyvä-themes)

The module for compatibility with the Hyvä theme can be found here:

Breeze themes
-------------

[](#breeze-themes)

This module is compatible with **Swissup/breeze** themes

Installation
------------

[](#installation)

### Composer:

[](#composer)

Run the following command in Magento 2 root folder

```
composer require magenable/module-purchase-partner-url
bin/magento setup:upgrade
bin/magento setup:static-content:deploy

```

Upgrade
-------

[](#upgrade)

### Composer:

[](#composer-1)

Run the following command in Magento 2 root folder

```
composer update magenable/module-purchase-partner-url
bin/magento setup:upgrade

```

User Guide
----------

[](#user-guide)

### Configuration:

[](#configuration)

Go to **Stores** &gt; **Settings** &gt; **Configuration** &gt; **Magenable Extensions** &gt; **Purchase Partner URL**.

**General Settings**

Set `Enabled` to **YES** if you want the module to work.

Update `Title of Links` with the required text, if it needs.

Set `Show All Links at Once` to **YES** if you want all buttons to be displayed at once.

Set `Open Link in New Tab` to **NO** if you want link opens in current tab.

**Google Analytics**

Set `Enabled` to **YES** if you want sent events to Google Analytics after partner links clicked .

Update `Event Category` Google Analytic property with the your value, if you wish.

Update `Event Action` Google Analytic property with the your value, if you wish.

After changing any setting you need to flush cache: for it go to **System** -&gt; **Cache Management** and click `Flush Magento Cache`.

[![purchase-partner-url-configuration](https://user-images.githubusercontent.com/34573954/131064786-b6c17755-596f-47a7-8f68-15c2ff3276bf.png)](https://user-images.githubusercontent.com/34573954/131064786-b6c17755-596f-47a7-8f68-15c2ff3276bf.png)

### Adding Purchase Partner Url:

[](#adding-purchase-partner-url)

Open any product and add `Purchase Partner Url` items, fill the fields:

- Link; (required)
- Link Title; (if this field is not filled then the value from the `Title of Links` field from the module configuration is displayed)
- Event Category (Google Analytics); (if this field is not filled then the value from the `Event Category` field from the module configuration is used)
- Event Action (Google Analytics); (if this field is not filled then the value from the `Event Action` field from the module configuration is used)

Then save the product.

[![purchase-partner-url-product-fill](https://user-images.githubusercontent.com/34573954/130890434-4b452349-5170-41f0-8b85-2d72d164ed90.png)](https://user-images.githubusercontent.com/34573954/130890434-4b452349-5170-41f0-8b85-2d72d164ed90.png)

### Storefront view:

[](#storefront-view)

- If the only one link set for a product (or enabled setting `Show All Links at Once`), then after clicking on the button users go to a partner website.

[![purchase-partner-url-result-list](https://user-images.githubusercontent.com/34573954/131065580-af76c1df-eecd-4007-a67a-cc99ac64d12c.png)](https://user-images.githubusercontent.com/34573954/131065580-af76c1df-eecd-4007-a67a-cc99ac64d12c.png)[![purchase-partner-url-result-view](https://user-images.githubusercontent.com/34573954/131065583-a9b30954-298e-4ea6-b17b-6f6d1612d657.png)](https://user-images.githubusercontent.com/34573954/131065583-a9b30954-298e-4ea6-b17b-6f6d1612d657.png)

- If there are multiple links defined for a product (and disabled setting `Show All Links at Once`), after clicking on the button, all partner links appears, after clicking one of them users go to a selected partner website.

[![purchase-partner-url-result-list-2](https://user-images.githubusercontent.com/34573954/131065629-91150165-1fec-4419-83e7-97df49cd602e.png)](https://user-images.githubusercontent.com/34573954/131065629-91150165-1fec-4419-83e7-97df49cd602e.png)[![purchase-partner-url-result-view-2](https://user-images.githubusercontent.com/34573954/131065635-dd53d9a2-2c06-46d4-9e75-3708e980959d.png)](https://user-images.githubusercontent.com/34573954/131065635-dd53d9a2-2c06-46d4-9e75-3708e980959d.png)

- Also, after clicking on a link the event is sent to Google Analytics (if this not disabled in configuration of module and Google Analytics module is enabled and configured).

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance59

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~110 days

Total

15

Last Release

258d ago

PHP version history (2 changes)1.0.0PHP ~7.2

1.2.0PHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

[![alek-s-andr](https://avatars.githubusercontent.com/u/34573954?v=4)](https://github.com/alek-s-andr "alek-s-andr (32 commits)")

---

Tags

magentomagento2magento 2product external linkproduct partner linkexternal urlpartner url

### Embed Badge

![Health badge](/badges/magenable-module-purchase-partner-url/health.svg)

```
[![Health](https://phpackages.com/badges/magenable-module-purchase-partner-url/health.svg)](https://phpackages.com/packages/magenable-module-purchase-partner-url)
```

###  Alternatives

[magepal/magento2-gmailsmtpapp

Magento 2 SMTP Extension - Configure Magento 2 to send all transactional email using Gmail, G Suite, Amazon SES, Office360, Mailgun, SendGrid, Mandrill or any other SMTP servers

3311.8M2](/packages/magepal-magento2-gmailsmtpapp)[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2621.5M4](/packages/magepal-magento2-googletagmanager)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2071.2M6](/packages/yireo-magento2-webp2)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1821.4M3](/packages/justbetter-magento2-sentry)[mollie/magento2

Mollie Payment Module for Magento 2

1121.5M8](/packages/mollie-magento2)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

104690.7k](/packages/yireo-magento2-whoops)

PHPackages © 2026

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