PHPackages                             clawrock/m2-product-shipping - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. clawrock/m2-product-shipping

ActiveMagento2-module[HTTP &amp; Networking](/categories/http)

clawrock/m2-product-shipping
============================

Module is responsible for displaying shipping methods on product view page.

1.0.0(8y ago)991[1 PRs](https://github.com/clawrock/m2-product-shipping/pulls)OSL-3.0PHP

Since Mar 14Pushed 5d ago2 watchersCompare

[ Source](https://github.com/clawrock/m2-product-shipping)[ Packagist](https://packagist.org/packages/clawrock/m2-product-shipping)[ RSS](/packages/clawrock-m2-product-shipping/feed)WikiDiscussions master Synced yesterday

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

ProductShipping
===============

[](#productshipping)

Module is responsible for displaying available shipping methods for product view page using predefined country.

Requirements
------------

[](#requirements)

1. Magento 2.1+

Installation (using composer)
-----------------------------

[](#installation-using-composer)

1. `composer require clawrock/m2-product-shipping`
2. `php bin/magento setup:upgrade`

Installation (manually)
-----------------------

[](#installation-manually)

1. Clone the repository to `app/code/ClawRock/ProductShipping`
2. `php bin/magento setup:upgrade`

### Configuration

[](#configuration)

1. Go to Stores -&gt; Configuration -&gt; ClawRock -&gt; Product Shipping
2. Select country which will be used to calculate available shipping methods, otherwise shipping methods won't be returned
3. You can also edit message that will be displayed when API returns empty array (shipping methods not found)

API
---

[](#api)

You can get shipping methods for product using API request.

```
Endpoint: rest/V1/product-shipping-methods
Method: POST

```

#### Simple product

[](#simple-product)

Body:

```
options: {
  "qty": 1,
  "sku": "S03"
}

```

---

#### Configurable product

[](#configurable-product)

Body:

```
options: {
  "super_attribute": {
    "142":"167",
    "93":"58"
  },
  "qty": 1,
  "sku": "WS03"
}

```

Keys in **super\_attribute** array are super attribute ids, values are option ids, e.g. **142** is **color** attribute and **167** is **red** option.

---

#### Bundle product

[](#bundle-product)

Body:

```
options: {
  "bundle_option": {
    "1" : [3]
  },
  "bundle_option_qty": {
    "1": 5
  },
  "qty": 1,
  "sku": "24-WG080-1"
}

```

Keys in **bundle\_option** array are option ids, values are selection ids. There might be several selections in one option i.e. multiple select, checkboxes. Keys in **bundle\_option\_qty** array are options ids, values are qty of options.

Tests
-----

[](#tests)

To run test run from console: `vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist`

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance65

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Unknown

Total

1

Last Release

3029d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19371023?v=4)[ClawRock](/maintainers/clawrock)[@clawrock](https://github.com/clawrock)

---

Top Contributors

[![rtoczek](https://avatars.githubusercontent.com/u/22080613?v=4)](https://github.com/rtoczek "rtoczek (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clawrock-m2-product-shipping/health.svg)

```
[![Health](https://phpackages.com/badges/clawrock-m2-product-shipping/health.svg)](https://phpackages.com/packages/clawrock-m2-product-shipping)
```

###  Alternatives

[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50390.4k20](/packages/dotdigital-dotdigital-magento2-extension)[mollie/magento2

Mollie Payment Module for Magento 2

1121.8M12](/packages/mollie-magento2)[buckaroo/magento2

Buckaroo Magento 2 extension

32414.8k7](/packages/buckaroo-magento2)[amzn/amazon-pay-magento-2-module

Official Magento2 Plugin to integrate with Amazon Pay

108521.2k1](/packages/amzn-amazon-pay-magento-2-module)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[loki/magento2-admin-components

Admin Panel grids and forms created via Loki Components

173.7k7](/packages/loki-magento2-admin-components)

PHPackages © 2026

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