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. [Utility &amp; Helpers](/categories/utility)
4. /
5. magenable/module-purchase-partner-url

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

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

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

1.5.6(11mo ago)4161MITPHPPHP &gt;=7.1.0

Since Apr 6Pushed 1w 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 3w ago

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

40

↑

FairBetter than 86% of packages

Maintenance77

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

354d 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-googletagmanager

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

2641.6M5](/packages/magepal-magento2-googletagmanager)[magepal/magento2-reindex

Reindex your Magento2 store quickly and easily from backend/admin, instead of command line.

107688.4k1](/packages/magepal-magento2-reindex)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2111.3M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

57560.9k4](/packages/tig-postnl-magento2)[magepal/magento2-preview-checkout-success-page

Quickly and easily preview and test your Magento2 checkout success page, without placing a new order each time

7792.8k](/packages/magepal-magento2-preview-checkout-success-page)[magepal/magento2-cataloglazyload

Improve the load time of your Magento 2 categories pages by loading your images on demand with our Lazy Load Extension

5564.4k](/packages/magepal-magento2-cataloglazyload)

PHPackages © 2026

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