PHPackages                             mageplaza/module-custom-stock-status-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-custom-stock-status-graphql

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

mageplaza/module-custom-stock-status-graphql
============================================

Magento 2 Custom Stock Status GraphQl Extension

1.0.0(6y ago)369proprietaryPHP

Since Apr 29Pushed 5y ago4 watchersCompare

[ Source](https://github.com/mageplaza/magento-2-custom-stock-status-graphql)[ Packagist](https://packagist.org/packages/mageplaza/module-custom-stock-status-graphql)[ RSS](/packages/mageplaza-module-custom-stock-status-graphql/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Magento 2 Custom Stock Status GraphQL
=====================================

[](#magento-2-custom-stock-status-graphql)

**Magento Custom Stock Status GraphQL is a part of Mageplaza Custom Stock Status extension that adds GraphQL features, this supports for PWA studio.** Mageplaza Custom Stock Status Extension now supports getting and pushing data on the website with GraphQL.

[Mageplaza Custom Stock Status for Magento 2](https://www.mageplaza.com/magento-2-custom-stock-status/) is a useful tool to inform customers about the products' availability.

When visiting a store, customers will not only want to know the prices but also the quantity of products they are interested in. In some stores with no clear display of product statuses, customers will usually know that the item is out of stock or not many available until they click add to cart. It's definitely a frustrating experience for customers and a waste of time.

Unlike the Magento 2 Default, Mageplaza Custom Stock Status enables the store admins to create unlimited stock status labels for products, such as In-stock, Out-of-stock, Coming soon, Available next week, etc. The stock labels can be added to the specific products without limitations. The store admin can configure to display the stock label based on the real-time situation of the product quantity from the admin backend. Therefore, the stock label will be displayed with each product, exactly how it is in your store in real-time.

With this extension, the store admin doesn't have to edit the stock label manually, as it can be automatically updated based on the change in product quantity ranges. It's easy and flexible to set up at the backend. For example, the admin can set the rules that when only one item available, the stock label will display as "Hurry up! Only one item left."

Magento 2 Custom Stock Status supports all types of products, including simple products, configurable products, group products, and bundle products. When customers select the attributes of a product to filter out the item that matches their requirements, the appropriate stock label will appear depending on that item's status. For example, if there is only one T-shirt size S, the white color left in stock, the label can be "Hurry up! Last item."

The store admin can add a stock label to the most common positions on the store site, including product listing page, product detail page, shopping cart page, and product widget block. Besides, the extension enables adding images to the stock label to make it more outstanding and attractive.

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

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

Run the following command in Magento 2 root folder:

```
composer require mageplaza/module-custom-stock-status-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

```

**Note:** Magento 2 Custom Stock Status GraphQL requires installing [Mageplaza Custom Stock Status](https://www.mageplaza.com/magento-2-custom-stock-status/) in your Magento installation.

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

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

To perform GraphQL queries in Magento, please do the following requirements:

- Use Magento 2.3.x or higher. Set your site to [developer mode](https://www.mageplaza.com/devdocs/enable-disable-developer-mode-magento-2.html).
- Set GraphQL endpoints as `http:///graphql` in url box, click **Set endpoint**. (e.g. `http://dev.site.com/graphql`)
- To view the queries that the Mageplaza Custom Stock Status GraphQL extension supports, you can look in `Docs > Query` in the right corner.

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

[](#3-devdocs)

- [Custom Stock Status API &amp; examples](https://documenter.getpostman.com/view/10589000/SzfCVSAQ?version=latest)
- [Magento 2 Custom Stock Status GraphQL &amp; examples](https://documenter.getpostman.com/view/10589000/SzfDvjfh?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. Create a pull request, so we will merge your changes to the main branch.

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

[](#5-get-support)

- Feel free to contact us 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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

2204d ago

### 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

[![bichnn06](https://avatars.githubusercontent.com/u/51898883?v=4)](https://github.com/bichnn06 "bichnn06 (4 commits)")[![ngovanvinh](https://avatars.githubusercontent.com/u/26913816?v=4)](https://github.com/ngovanvinh "ngovanvinh (2 commits)")[![imsamthomas](https://avatars.githubusercontent.com/u/2810172?v=4)](https://github.com/imsamthomas "imsamthomas (1 commits)")[![JackerNgo](https://avatars.githubusercontent.com/u/19358665?v=4)](https://github.com/JackerNgo "JackerNgo (1 commits)")

---

Tags

custom-stock-statusgraphqlmagentomagento-installationpwa

### Embed Badge

![Health badge](/badges/mageplaza-module-custom-stock-status-graphql/health.svg)

```
[![Health](https://phpackages.com/badges/mageplaza-module-custom-stock-status-graphql/health.svg)](https://phpackages.com/packages/mageplaza-module-custom-stock-status-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)
