PHP code example of snowdog / module-shipping-latency
1. Go to this page and download the library: Download snowdog/module-shipping-latency library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
snowdog / module-shipping-latency example snippets
$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);
//get product shipping_latency label
$product->getAttributeText('shipping_latency');
//get product shipping_latency value
$product->getShippingLatency();
//or use same method like on list/grid