getLoadedProductCollection();
$_helper = $this->helper('Magento\Catalog\Helper\Output');
$_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
$_config = $this->helper('Sm\Destino\Helper\Data');
$keep_ratio = $_config->getCategoryView('keep_image');
$image_width = $_config->getCategoryView('image_width');
$image_height = $_config->getCategoryView('image_height');
$product_hover = $_config->getCategoryView('hover_image_effect');
$show_addtocart = $_config->getAdvanced('show_addtocart_button');
$show_addtocompare = $_config->getAdvanced('show_compare_button');
$show_addtowishlist = $_config->getAdvanced('show_wishlist_button');
$show_newlabel = $_config->getAdvanced('show_newlabel');
$new_label_text = $_config->getAdvanced('new_label_text');
$show_salelabel = $_config->getAdvanced('show_salelabel');
$sale_label_text = $_config->getAdvanced('sale_label_text');
$show_pecent = $_config->getAdvanced('show_salediscount');
$enableLadyLoading = $_config->getAdvanced('enable_ladyloading');
$mediaSrc = $_config->getMediaUrl();
if ($enableLadyLoading) { $imgClass = 'lazyload';
} else { $imgClass = '';
}
?>
_getConfig('title_module'))) { ?> count()): ?>
_getConfig('title_module'); ?>
_getConfig('product_source') == 'countdown_products') { $dateTo = $this->_getConfig('date_to', ''); ?>
isRedirectToCartEnabled()) : ?> ">
init($_product, $image)->constrainOnly(false)->keepAspectRatio(true)->keepFrame(false)->resize($image_width); else $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); $productImageUrl = $productImage->getUrl(); ?>
src="" data-src="" src="" alt="getLabel(); ?>" width="400px" height="400px" />init($_product, $hover_image)->constrainOnly(false)->keepAspectRatio(true)->keepFrame(false)->resize($image_width); else $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); $productHoverImageUrl = $productHoverImage->getUrl(); ?>
src="" data-src="" src="" alt="getLabel(); ?>" width="400px" height="400px" />
helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> getAddToCompareUrl()): ?>helper('Magento\Catalog\Helper\Product\Compare'); ?>
getData('news_from_date'), 0, 10); $newsTo = substr($_product->getData('news_to_date'), 0, 10); if ($newsTo != '' || $newsFrom != '') { if (($newsTo != '' && $newsFrom != '' && $now >= $newsFrom && $now <= $newsTo) || ($newsTo == '' && $now >= $newsFrom) || ($newsFrom == '' && $now <= $newsTo)) { echo '' . $new_label_text . '
'; } } } if ($show_salelabel) { $orgprice = $_product->getPrice(); $specialprice = $_product->getSpecialPrice(); $specialfromdate = $_product->getSpecialFromDate(); $specialtodate = $_product->getSpecialToDate(); $today = time(); if (!$specialprice) $specialprice = $orgprice; if ($specialprice < $orgprice) { if ((is_null($specialfromdate) && is_null($specialtodate)) || ($today >= strtotime($specialfromdate) && is_null($specialtodate)) || ($today <= strtotime($specialtodate) && is_null($specialfromdate)) || ($today >= strtotime($specialfromdate) && $today <= strtotime($specialtodate))) { if ($show_pecent) { $save_percent = 100 - round(($specialprice / $orgprice) * 100); echo '' . '-' . $save_percent . '%' . '
'; } else { echo '' . $sale_label_text . '
'; } } } } ?> _getConfig('display_countdown') && !empty($_product->getSpecialPrice()) && !empty($_product->getSpecialToDate())) { $specialToDate = $_product->getSpecialToDate(); ?>
">
stripTags($_product->getName(), null, true); ?> productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
getProductPrice($_product) ?>getReviewsSummaryHtml($_product, $templateType, true); ?>getProductDetailsHtml($_product); ?> isSaleable()): ?>getAddToCartPostParams($_product); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $session = $objectManager->get('\Magento\Framework\View\Element\FormKey'); ?> getIsSalable()): ?>

