PHPackages                             mageplaza/module-who-bought-this-item-also-bought-graphql - 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. mageplaza/module-who-bought-this-item-also-bought-graphql

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

mageplaza/module-who-bought-this-item-also-bought-graphql
=========================================================

Mageplaza Who bought this item also bought GraphQl

23PHP

Since Nov 3Pushed 5y ago5 watchersCompare

[ Source](https://github.com/mageplaza/magento-2-who-bought-this-item-also-bought-graphql)[ Packagist](https://packagist.org/packages/mageplaza/module-who-bought-this-item-also-bought-graphql)[ RSS](/packages/mageplaza-module-who-bought-this-item-also-bought-graphql/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Magento 2 Who Bought This Item Also Bought GraphQL
==================================================

[](#magento-2-who-bought-this-item-also-bought-graphql)

**Magento Who Bought This Also Bought GraphQL is a part of Mageplaza Who Bought This Also This extension; this supports for PWA Studio.**

[Mageplaza Who Bought This Also Bought for Magento 2](https://www.mageplaza.com/magento-2-who-bought-this-also-bought/) is an effective solution to increase sales for an online store by showcasing and encouraging customers to buy related products.

Based on the customers’ purchase history, the extension will automatically select the related products and display them on the page your customers are viewing. So the purchase history record plays a vital role in this method. It decides how frequent and diverse the suggested products are showcased to customers.

It’s easy to configure at the backend to make your products appear as attractive options besides the products customers have purchased. You can display suggested products at the top or bottom of many different places, such as product pages, category pages, and shopping carts.

Also, at the backend, you can select the layout to organize the related products in a slider or multiple lines. The related products will be displayed along with essential details, such as price, ratings, and “Add to cart” button. It makes the related products block display in sync more with the current page's content and easy to catch customers’ eyes.

1. How to install
-----------------

[](#1-how-to-install)

Run the following command in Magento 2 root folder:

```
composer require mageplaza/module-who-bought-this-item-also-bought-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

```

**Note:** Magento 2 Who Bought This Also Bought GraphQL requires installing Mageplaza [Who Bought This Also Bought](https://www.mageplaza.com/magento-2-who-bought-this-also-bought/) in your Magento installation.

2. How to use
-------------

[](#2-how-to-use)

- To perform GraphQL queries in Magento, you need to do the following requirements:
    - Use Magento 2.3.x. Return your site to developer mode
    - Install the [ChromeiQL](https://chrome.google.com/webstore/detail/chromeiql/fkkiamalmpiidkljmicmjfbieiclmeij) extension for Chrome browser (currently does not support other browsers)
    - Set GraphQL endpoint as `http:///graphql` in url box, click **Set endpoint**. (e.g. )
    - Perform a query in the left cell then click the **Run** button or **Ctrl + Enter** to see the result in the right cell
    - To see the supported queries for **Who bought this item also bought GraphQL** of Mageplaza, you can look in `Docs > Query > mpalsobought` in the right corner

[![](https://camo.githubusercontent.com/4c4e9c605e1097da901c06e4908d4989ef01a8acb7f14535fff2ceaaebbba69f/68747470733a2f2f692e696d6775722e636f6d2f63735a6c5952542e706e67)](https://camo.githubusercontent.com/4c4e9c605e1097da901c06e4908d4989ef01a8acb7f14535fff2ceaaebbba69f/68747470733a2f2f692e696d6775722e636f6d2f63735a6c5952542e706e67)

3. Devdocs
----------

[](#3-devdocs)

- [Magento 2 Who Bought This Also Bought API &amp; examples](https://documenter.getpostman.com/view/10589000/SzRxXrBi?version=latest)
- [Magento 2 Who Bought This Also Bought GraphQL &amp; examples](https://documenter.getpostman.com/view/10589000/SzRxXrBo?version=latest)

Click on Run in Postman to add these collections to your workspace quickly.

[![Magento 2 blog graphql pwa](https://camo.githubusercontent.com/e7f65a0b84e1cb704e6b107ed5db505a482e80c8ffd66afbbab83eea50f482ac/68747470733a2f2f692e696d6775722e636f6d2f6c6873586c55522e676966)](https://camo.githubusercontent.com/e7f65a0b84e1cb704e6b107ed5db505a482e80c8ffd66afbbab83eea50f482ac/68747470733a2f2f692e696d6775722e636f6d2f6c6873586c55522e676966)

4. Contribute to this module
----------------------------

[](#4-contribute-to-this-module)

Feel free to **Fork** and contribute to this module. You can create a pull request, so we will merge your changes in the main branch.

5. Get Support
--------------

[](#5-get-support)

- Don't hesitate to [contact us](https://www.mageplaza.com/contact.html) if you have any further questions.
- If you like this project, please give us a **Star** [![star](https://camo.githubusercontent.com/ccfd05f7d28636d95a2b75c75567ef6df2f29f02f913234e692ea748b3032981/68747470733a2f2f692e696d6775722e636f6d2f5338653063744f2e706e67)](https://camo.githubusercontent.com/ccfd05f7d28636d95a2b75c75567ef6df2f29f02f913234e692ea748b3032981/68747470733a2f2f692e696d6775722e636f6d2f5338653063744f2e706e67)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2810172?v=4)[Sam Ng](/maintainers/imsamthomas)[@imsamthomas](https://github.com/imsamthomas)

![](https://www.gravatar.com/avatar/791d20a969b428c77a439388be23f94f3ce34d9cbc8ecd09bfccdb7e41b5d7ca?d=identicon)[haitv282](/maintainers/haitv282)

---

Top Contributors

[![Tuvpt](https://avatars.githubusercontent.com/u/32826247?v=4)](https://github.com/Tuvpt "Tuvpt (6 commits)")[![brianmageplaza](https://avatars.githubusercontent.com/u/7621931?v=4)](https://github.com/brianmageplaza "brianmageplaza (4 commits)")[![bichnn06](https://avatars.githubusercontent.com/u/51898883?v=4)](https://github.com/bichnn06 "bichnn06 (3 commits)")[![Rainy234](https://avatars.githubusercontent.com/u/42835440?v=4)](https://github.com/Rainy234 "Rainy234 (2 commits)")[![imsamthomas](https://avatars.githubusercontent.com/u/2810172?v=4)](https://github.com/imsamthomas "imsamthomas (1 commits)")

---

Tags

graphqlmagentomagento-installationmageplazapwawho-bought-this-also-bought

### Embed Badge

![Health badge](/badges/mageplaza-module-who-bought-this-item-also-bought-graphql/health.svg)

```
[![Health](https://phpackages.com/badges/mageplaza-module-who-bought-this-item-also-bought-graphql/health.svg)](https://phpackages.com/packages/mageplaza-module-who-bought-this-item-also-bought-graphql)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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