snowdog / module-shipping-latency
snowdog/module-shipping-latency
Module adds shipping latency
Snowdog Magento2 Shipping Latency
1. Installation:
composer require snowdog/module-shipping-latencybin/magento module:enable Snowdog_ShippingLatencybin/magento setup:upgrade
2. Usage:
On product list/grid:
$shippingLatencyHelper = $this->helper('Snowdog\ShippingLatency\Helper\Data');
//get shipping latency title per product
$shippingLatencyHelper->getTitle($productData);
//get full shipping latency popup data (title, btnClass, popupHtml, popupId) for all shipping_latency attribute values
$shippingLatencyHelper->getLatencyData();
//get full shipping latency popup data for product
$shippingLatencyHelper->getProductLatencyData($productData);
//get shipping latency popup CMS block content for product
$shippingLatencyHelper->getProductPopupHtml($productData);
On product page:
//get product shipping_latency label
$product->getAttributeText('shipping_latency');
//get product shipping_latency value
$product->getShippingLatency();
//or use same method like on list/grid
$productData needs to be an array. On product page use $product->getData() as parameter:
$shippingLatencyHelper->getProductPopupHtml($product->getData());
Shipping latency options are configured on admin Stores -> Configuration -> Snowdog -> Shipping Latency.
Default options are set as the previous module version to maintain retro compatibility.
CHANGELOG
[Unreleased]
[1.3.0] 2021-07-08
- 71475 - Make shipping latency options and CMS blocks mapping configurable
[1.2.0] 2020-10-22
- Enabled Magento
2.4support incomposer.json - 71448: fixed formatting and removed in stock button with modal
[1.1.1] 2020-05-29
- Fixed changelog file release numbers
[1.1.0] 2020-05-25
- 64632: fixed issues related to showing correct shipping latency message
[1.0.0] 2019-12-06
- Init files
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.3.0 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2021-07-08 08:25:03 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2020-10-22 12:10:46 |
| 1.1.1 | stable | Not tested | Not yet tested Details | 2020-05-29 09:03:11 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2020-05-26 07:23:30 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2019-12-06 10:26:09 |
Requires 2
| Package | Constraint |
|---|---|
| magento/framework | 100.1.*|101.0.*|102.0.*|103.0.* |
| magento/module-catalog | 101.0.*|102.0.*|103.0.*|104.0.* |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from snowdog
View vendorHyva Checkout compatybility module for PayPo
Hyva Checkout compatybility module for Santander eRaty
Hyva Checkout compatibility module for PayNow
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.