Module Shipping Latency
snowdog/module-shipping-latency
Displays shipping latency information on product pages and listings. Configurable shipping latency options are managed in the admin panel.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Share This Module's Status
README
Loaded from GitHubSnowdog Magento2 Shipping Latency
1. Installation:
-
composer require snowdog/module-shipping-latency -
bin/magento module:enable Snowdog_ShippingLatency -
bin/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.
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.