281. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:05 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

281.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesgrid.phtml2019-12-13 07:49:50 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesgrid.phtml2021-03-21 01:23:50 +0000

281.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged26874
Changed2248
Inserted00
Removed39

281.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

281.4 Active regular expressions

No regular expressions were active.

281.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 $_productCollection = $block->getLoadedProductCollection(); 18 $_productCollection = $block->getLoadedProductCollection();
19 $_helper = $this->helper('Magento\Catalog\Helper\Output'); 19 $_helper = $this->helper('Magento\Catalog\Helper\Output');
20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
22 $review_model = $_portohelper->getModel('\Magento\Review\Model\Review');    
23 $_category_config = $_portohelper->getConfig('porto_settings/category'); 22 $_category_config = $_portohelper->getConfig('porto_settings/category');
24 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 23 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
25 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 24 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
26 // Daily deal Helper  25 // Daily deal Helper
27 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 26 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
28  27 
29 $_lazyload = $this->getData("lazyload"); 28 $_lazyload = $this->getData("lazyload");
30 if($_lazyload == null) { 29 if($_lazyload == null) {
31     $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 30     $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
32 } 31 }
33  32 
34 $aspect_ratio = $this->getData("aspect_ratio"); 33 $aspect_ratio = $this->getData("aspect_ratio");
35 if($aspect_ratio == null) { 34 if($aspect_ratio == null) {
36     $aspect_ratio = $_category_config['aspect_ratio']; 35     $aspect_ratio = $_category_config['aspect_ratio'];
37 } 36 }
38 $image_width = $this->getData("image_width"); 37 $image_width = $this->getData("image_width");
39 if(!$image_width) { 38 if(!$image_width) {
40     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 39     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
41 } 40 }
42 $image_height = $this->getData("image_height"); 41 $image_height = $this->getData("image_height");
43 if($aspect_ratio) 42 if($aspect_ratio)
44     $image_height = $image_width; 43     $image_height = $image_width;
45 if(!$image_height) { 44 if(!$image_height) {
46     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;   45     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
47 } 46 }
48 $column_count = $this->getData("column_count"); 47 $column_count = $this->getData("column_count");
49 if($column_count == null) { 48 if($column_count == null) {
50     $column_count = 4; 49     $column_count = 4;
51 } 50 }
52 $product_type = $this->getData("product_type"); 51 $product_type = $this->getData("product_type");
53 if($product_type == null) { 52 if($product_type == null) {
54     $product_type = $_category_grid_config['product_type']; 53     $product_type = $_category_grid_config['product_type'];
55 } 54 }
56 if($product_type == null) { 55 if($product_type == null) {
57     $product_type = 1; 56     $product_type = 1;
58 } 57 }
59 ?> 58 ?>
60 <?php if (!$_productCollection->count()): ?> 59 <?php if (!$_productCollection->count()): ?>
61     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 60     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
62 <?php else: ?> 61 <?php else: ?>
63     <?php 62     <?php
64     $viewMode = 'grid'; 63     $viewMode = 'grid';
65     $image = 'category_page_grid'; 64     $image = 'category_page_grid';
66     $hover_image = 'category_page_grid-hover'; 65     $hover_image = 'category_page_grid-hover';
67     $showDescription = false; 66     $showDescription = false;
68     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 67     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
69     ?> 68     ?>
70     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> 69     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">
71         <?php $iterator = 1; ?> 70         <?php $iterator = 1; ?>
72         <ol class="filterproducts products list items product-items <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>"> 71         <ol class="filterproducts products list items product-items
">
73             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 72             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
74             <?php foreach ($_productCollection as $_product): ?> 73             <?php foreach ($_productCollection as $_product): ?>
75                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?> 74                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
76                 <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> 75                 <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid">
77                     <?php // Product Image ?> 76                     <?php // Product Image ?>
78                     <div class="product photo product-item-photo"> 77                     <div class="product photo product-item-photo">
79                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 78                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
80                         <?php 79                         <?php
81                             if($aspect_ratio) 80                             if($aspect_ratio)
82                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 81                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
83                             else 82                             else
84                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 83                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
85                             $productImageUrl = $productImage->getUrl(); 84                             $productImageUrl = $productImage->getUrl();
86                         ?> 85                         ?>
87                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="
"/>
 86                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
88                         <?php if($_category_config['alternative_image']): ?> 87                         <?php if($_category_config['alternative_image']): ?>
89                         <?php 88                         <?php
90                             if($aspect_ratio) 89                             if($aspect_ratio)
91                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 90                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
92                             else 91                             else
93                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 92                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
94                             $productHoverImageUrl = $productHoverImage->getUrl(); 93                             $productHoverImageUrl = $productHoverImage->getUrl();
95                         ?> 94                         ?>
96                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 95                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
97                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="
"/>
 96                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
98                             <?php endif; ?> 97                             <?php endif; ?>
99                         <?php endif; ?> 98                         <?php endif; ?>
100                         </a> 99                         </a>
101                         <?php 100                         <?php
102                             $product_label = ""; 101                             $product_label = "";
103                             if($_product_label_config['sale_label']) { 102                             if($_product_label_config['sale_label']) {
104                                 $orgprice = $_product->getPrice(); 103                                 $orgprice = $_product->getPrice();
105                                 $specialprice = $_product->getSpecialPrice(); 104                                 $specialprice = $_product->getSpecialPrice();
106                                 $specialfromdate = $_product->getSpecialFromDate(); 105                                 $specialfromdate = $_product->getSpecialFromDate();
107                                 $specialtodate = $_product->getSpecialToDate(); 106                                 $specialtodate = $_product->getSpecialToDate();
108                                 $today = time(); 107                                 $today = time();
109                                 if(!$specialprice) 108                                 if(!$specialprice)
110                                     $specialprice = $orgprice; 109                                     $specialprice = $orgprice;
111                                 if($specialprice < $orgprice) { 110                                 if($specialprice < $orgprice) {
112                                     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))){ 111                                     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))){
113                                         if($_product_label_config['sale_label_percent']) { 112                                         if($_product_label_config['sale_label_percent']) {
114                                             $save_percent = 100-round(($specialprice/$orgprice)*100); 113                                             $save_percent = 100-round(($specialprice/$orgprice)*100);
115                                             $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>'; 114                                             $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>';
116                                         } else { 115                                         } else {
117                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 116                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
118                                         } 117                                         }
119                                     } 118                                     }
120                                 } 119                                 }
121                             } 120                             }
122                             if($_product_label_config['new_label']) { 121                             if($_product_label_config['new_label']) {
123                                 $now = date("Y-m-d"); 122                                 $now = date("Y-m-d");
124                                 $newsFrom= substr($_product->getData('news_from_date'),0,10); 123                                 $newsFrom= substr($_product->getData('news_from_date'),0,10);
125                                 $newsTo=  substr($_product->getData('news_to_date'),0,10); 124                                 $newsTo=  substr($_product->getData('news_to_date'),0,10);
126                                  125 
127                                 if ($newsTo != '' || $newsFrom != ''){ 126                                 if ($newsTo != '' || $newsFrom != ''){
128                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 127                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
129                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 128                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
130                                     } 129                                     }
131                                 } 130                                 }
132                             } 131                             }
133                             if($product_label) 132                             if($product_label)
134                                 echo '<div class="product-labels">'.$product_label.'</div>'; 133                                 echo '<div class="product-labels">'.$product_label.'</div>';
135                         ?> 134                         ?>
136                         <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 10): ?> 135                         <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?>
137                         <div class="product-item-inner"> 136                         <div class="product-item-inner">
138                             <div class="product actions product-item-actions"> 137                             <div class="product actions product-item-actions">
139                                 <div class="actions-primary"> 138                                 <div class="actions-primary">
140                                     <?php if ($_product->isSaleable()): ?> 139                                     <?php if ($_product->isSaleable()): ?>
141                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 140                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
142                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 141                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
143                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 142                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
144                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 143                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
145                                             <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>    
146                                                 <div class="qty-box">    
147                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>    
148                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>    
149                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>    
150                                                 </div>    
151                                             <?php endif;?>    
152                                             <?php echo $block->getBlockHtml('formkey')?> 144                                             <?php echo $block->getBlockHtml('formkey')?>
153                                             <button type="submit" 145                                             <button type="submit"
154                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 146                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
155                                                     class="action tocart primary"> 147                                                     class="action tocart primary">
156                                                 <span><?php echo __('Add to Cart') ?></span> 148                                                 <span><?php echo __('Add to Cart') ?></span>
157                                             </button> 149                                             </button>
158                                         </form> 150                                         </form>
159                                     <?php else: ?> 151                                     <?php else: ?>
160                                         <?php if ($_product->getIsSalable()): ?> 152                                         <?php if ($_product->getIsSalable()): ?>
161                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 153                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
162                                         <?php else: ?> 154                                         <?php else: ?>
163                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 155                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
164                                         <?php endif; ?> 156                                         <?php endif; ?>
165                                     <?php endif; ?> 157                                     <?php endif; ?>
166                                 </div> 158                                 </div>
167                                 <?php if ($block->getMode() == 'grid'): ?> 159                                 <?php if ($block->getMode() == 'grid'): ?>
168                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 160                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
169                                     <a href="#" 161                                     <a href="#"
170                                        class="action towishlist actions-secondary" 162                                        class="action towishlist actions-secondary"
171                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 163                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
172                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 164                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
173                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 165                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
174                                        data-action="add-to-wishlist" 166                                        data-action="add-to-wishlist"
175                                        role="button"> 167                                        role="button">
176                                         <span><?php echo __('Add to Wish List') ?></span> 168                                         <span><?php echo __('Add to Wish List') ?></span>
177                                     </a> 169                                     </a>
178                                 <?php endif; ?> 170                                 <?php endif; ?>
179                                 <?php endif; ?> 171                                 <?php endif; ?>
180                                 <?php if($_category_config['addtocompare']): ?> 172                                 <?php if($_category_config['addtocompare']): ?>
181                                 <?php 173                                 <?php
182                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 174                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
183                                 ?> 175                                 ?>
184                                 <a href="#" 176                                 <a href="#"
185                                    class="action tocompare actions-secondary" 177                                    class="action tocompare actions-secondary"
186                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 178                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
187                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 179                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
188                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 180                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
189                                    role="button"> 181                                    role="button">
190                                     <span><?php echo __('Add to Compare') ?></span> 182                                     <span><?php echo __('Add to Compare') ?></span>
191                                 </a> 183                                 </a>
192                                 <?php endif; ?> 184                                 <?php endif; ?>
193                             </div> 185                             </div>
194                         </div> 186                         </div>
195                         <?php endif; ?> 187                         <?php endif; ?>
196                         <!-- Dailydeal Product data --> 188                         <!-- Dailydeal Product data -->
197                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?> 189                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
198                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?> 190                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?>
199                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" > 191                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
200                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>"> 192                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
201                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>"> 193                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
202                             <div class="sw-dailydeal"> 194                             <div class="sw-dailydeal">
203                                 <p id="expired_<?php echo $unique_id; ?>"></p>  195                                 <p id="expired_<?php echo $unique_id; ?>"></p>
204                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;"> 196                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
205                                     <span class="dailydeal-label"> 197                                     <span class="dailydeal-label">
206                                         <?php echo __('Ends In:'); ?> 198                                         <?php echo __('Ends In:'); ?>
207                                     </span> 199                                     </span>
208                                     <span class="number-wrapper"> 200                                     <span class="number-wrapper">
209                                         <div class="line"></div> 201                                         <div class="line"></div>
210                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span> 202                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
211                                         <div class="caption"><?php echo __('Day(s), '); ?></div> 203                                         <div class="caption"><?php echo __('Day(s), '); ?></div>
212                                     </span> 204                                     </span>
213  205 
214                                     <span class="number-wrapper"> 206                                     <span class="number-wrapper">
215                                         <div class="line"></div> 207                                         <div class="line"></div>
216                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span> 208                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
217                                         <div class="caption">:</div> 209                                         <div class="caption">:</div>
218                                     </span> 210                                     </span>
219  211 
220                                     <span class="number-wrapper"> 212                                     <span class="number-wrapper">
221                                         <div class="line"></div> 213                                         <div class="line"></div>
222                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span> 214                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
223                                         <div class="caption">:</div> 215                                         <div class="caption">:</div>
224                                     </span> 216                                     </span>
225  217 
226                                     <span class="number-wrapper"> 218                                     <span class="number-wrapper">
227                                         <div class="line"></div> 219                                         <div class="line"></div>
228                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span> 220                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
229                                         <div class="caption"></div> 221                                         <div class="caption"></div>
230                                     </span> 222                                     </span>
231                                 </div> 223                                 </div>
232                             </div> 224                             </div>
233                         </div> 225                         </div>
234                         <?php endif; ?>  226                         <?php endif; ?>
235                         <!-- Dailydeal Product End --> 227                         <!-- Dailydeal Product End -->
236                     </div> 228                     </div>
237                     <div class="product details product-item-details"> 229                     <div class="product details product-item-details">
238                         <?php 230                         <?php
239                             $_productNameStripped = $block->stripTags($_product->getName(), null, true); 231                             $_productNameStripped = $block->stripTags($_product->getName(), null, true);
240                         ?> 232                         ?>
241                         <strong class="product name product-item-name"> 233                         <strong class="product name product-item-name">
242                             <a class="product-item-link" 234                             <a class="product-item-link"
243                                href="<?php echo $_product->getProductUrl() ?>"> 235                                href="<?php echo $_product->getProductUrl() ?>">
244                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 236                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
245                             </a> 237                             </a>
246                         </strong> 238                         </strong>
247                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 239                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
248                         <?php if($_category_config['rating_star']): ?> 240                         <?php if($_category_config['rating_star']): ?>
249                         <?php 241                         <?php
250                             $review_model->getEntitySummary($_product);    
251                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 242                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
252                         ?> 243                         ?>
253                         <?php if($review_html): ?> 244                         <?php if($review_html): ?>
254                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 245                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
255                         <?php else: ?> 246                         <?php else: ?>
256                         <div class="product-reviews-summary short"> 247                         <div class="product-reviews-summary short">
257                             <div class="rating-summary"> 248                             <div class="rating-summary">
258                                 <span class="label"><span>Rating:</span></span> 249                                 <span class="label"><span>Rating:</span></span>
259                                 <div class="rating-result" title="0%"> 250                                 <div class="rating-result" title="0%">
260                                     <span style="width:0"><span>0%</span></span> 251                                     <span style="width:0"><span>0%</span></span>
261                                 </div> 252                                 </div>
262                             </div> 253                             </div>
263                         </div> 254                         </div>
264                         <?php endif; ?> 255                         <?php endif; ?>
265                         <?php endif; ?> 256                         <?php endif; ?>
266                          257 
267                         <?php if ($showDescription):?> 258                         <?php if ($showDescription):?>
268                             <div class="product description product-item-description"> 259                             <div class="product description product-item-description">
269                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 260                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
270                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 261                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
271                                    class="action more"><?php echo __('Learn More') ?></a> 262                                    class="action more"><?php echo __('Learn More') ?></a>
272                             </div> 263                             </div>
273                         <?php endif; ?> 264                         <?php endif; ?>
274                         <?php if($_category_config['product_price']): ?> 265                         <?php if($_category_config['product_price']): ?>
275                         <?php echo $block->getProductPrice($_product) ?> 266                         <?php echo $block->getProductPrice($_product) ?>
276                         <?php endif; ?> 267                         <?php endif; ?>
277                         <?php echo $block->getProductDetailsHtml($_product); ?> 268                         <?php echo $block->getProductDetailsHtml($_product); ?>
278                          269 
279                         <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 10 && $product_type != 11): ?> 270                         <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?>
280                         <div class="product-item-inner"> 271                         <div class="product-item-inner">
281                             <div class="product actions product-item-actions"> 272                             <div class="product actions product-item-actions">
282                                 <?php if ($block->getMode() == 'grid'): ?> 273                                 <?php if ($block->getMode() == 'grid'): ?>
283                                 <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> 274                                 <?php if($_category_config['addtowishlist'] && $product_type != 4): ?>
284                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 275                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
285                                     <a href="#" 276                                     <a href="#"
286                                        class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" 277                                        class="action towishlist actions-secondary"
287                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 278                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
288                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 279                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
289                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 280                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
290                                        data-action="add-to-wishlist" 281                                        data-action="add-to-wishlist"
291                                        role="button"> 282                                        role="button">
292                                         <span><?php echo __('Add to Wish List') ?></span> 283                                         <span><?php echo __('Add to Wish List') ?></span>
293                                     </a> 284                                     </a>
294                                 <?php endif; ?> 285                                 <?php endif; ?>
295                                 <?php endif; ?> 286                                 <?php endif; ?>
296                                 <?php endif; ?> 287                                 <?php endif; ?>
297                                 <div class="actions-primary"> 288                                 <div class="actions-primary">
298                                     <?php if ($_product->isSaleable()): ?> 289                                     <?php if ($_product->isSaleable()): ?>
299                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 290                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
300                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 291                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
301                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 292                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
302                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 293                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
303                                             <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> 294                                             <?php if($product_type == 10):?>
304                                                 <div class="qty-box"> 295                                                 <div class="qty-box">
305                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> 296                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
306                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo 
$block->getProductDefaultQty(
) * 1
 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
 297                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php 
echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
307                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> 298                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
308                                                 </div> 299                                                 </div>
309                                             <?php endif;?> 300                                             <?php endif;?>
310                                             <?php echo $block->getBlockHtml('formkey')?> 301                                             <?php echo $block->getBlockHtml('formkey')?>
311                                             <button type="submit" 302                                             <button type="submit"
312                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 303                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
313                                                     class="action tocart primary"> 304                                                     class="action tocart primary">
314                                                 <span><?php echo __('Add to Cart') ?></span> 305                                                 <span><?php echo __('Add to Cart') ?></span>
315                                             </button> 306                                             </button>
316                                         </form> 307                                         </form>
317                                     <?php else: ?> 308                                     <?php else: ?>
318                                         <?php if ($_product->getIsSalable()): ?> 309                                         <?php if ($_product->getIsSalable()): ?>
319                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 310                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
320                                         <?php else: ?> 311                                         <?php else: ?>
321                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 312                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
322                                         <?php endif; ?> 313                                         <?php endif; ?>
323                                     <?php endif; ?> 314                                     <?php endif; ?>
324                                 </div> 315                                 </div>
325                                 <?php if ($block->getMode() == 'grid'): ?> 316                                 <?php if ($block->getMode() == 'grid'): ?>
326                                 <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 317                                 <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
327                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 318                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
328                                     <a href="#" 319                                     <a href="#"
329                                        class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" 320                                        class="action towishlist actions-secondary"
330                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 321                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
331                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 322                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
332                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 323                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
333                                        data-action="add-to-wishlist" 324                                        data-action="add-to-wishlist"
334                                        role="button"> 325                                        role="button">
335                                         <span><?php echo __('Add to Wish List') ?></span> 326                                         <span><?php echo __('Add to Wish List') ?></span>
336                                     </a> 327                                     </a>
337                                 <?php endif; ?> 328                                 <?php endif; ?>
338                                 <?php endif; ?> 329                                 <?php endif; ?>
339                                 <?php endif; ?> 330                                 <?php endif; ?>
340                                 <?php if($_category_config['addtocompare']): ?> 331                                 <?php if($_category_config['addtocompare']): ?>
341                                 <?php 332                                 <?php
342                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 333                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
343                                 ?> 334                                 ?>
344                                 <a href="#" 335                                 <a href="#"
345                                    class="action tocompare actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" 336                                    class="action tocompare actions-secondary"
346                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 337                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
347                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 338                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
348                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 339                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
349                                    role="button"> 340                                    role="button">
350                                     <span><?php echo __('Add to Compare') ?></span> 341                                     <span><?php echo __('Add to Compare') ?></span>
351                                 </a> 342                                 </a>
352                                 <?php endif; ?> 343                                 <?php endif; ?>
353                             </div> 344                             </div>
354                         </div> 345                         </div>
355                         <?php endif; ?> 346                         <?php endif; ?>
356                     </div> 347                     </div>
357                 </div> 348                 </div>
358                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?> 349                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?>
359             <?php endforeach; ?> 350             <?php endforeach; ?>
360         </ol> 351         </ol>
361     </div> 352     </div>
362     <?php if (!$_dailydealhelper->isLoadedTimer()): ?> 353     <?php if (!$_dailydealhelper->isLoadedTimer()): ?>
363     <script type="text/javascript"> 354     <script type="text/javascript">
364     require([ 355     require([
365         'jquery'         356         'jquery'
366     ], function ($) { 357     ], function ($) {
367     // Timer for LEFT time for Dailydeal product 358     // Timer for LEFT time for Dailydeal product
368         var _second = 1000; 359         var _second = 1000;
369         var _minute = _second * 60; 360         var _minute = _second * 60;
370         var _hour = _minute * 60; 361         var _hour = _minute * 60;
371         var _day = _hour * 24; 362         var _day = _hour * 24;
372         var timer; 363         var timer;
373  364 
374         //Set date as magentodatetime  365         //Set date as magentodatetime
375         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>'); 366         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>');
376         var l_date = new Date(); 367         var l_date = new Date();
377         var offset_date = l_date - date; 368         var offset_date = l_date - date;
378  369 
379         function showRemaining()  370         function showRemaining()
380         { 371         {
381             $(".sw-dailydeal-wrapper").each(function(){ 372             $(".sw-dailydeal-wrapper").each(function(){
382                 var unique_id = $(this).attr("data-unique-id"); 373                 var unique_id = $(this).attr("data-unique-id");
383                 // get Value of dailydeal product 374                 // get Value of dailydeal product
384                 var cid='countdown_'+unique_id; 375                 var cid='countdown_'+unique_id;
385                 var daysid='countdown_days_'+unique_id; 376                 var daysid='countdown_days_'+unique_id;
386                 var hoursid='countdown_hours_'+unique_id; 377                 var hoursid='countdown_hours_'+unique_id;
387                 var minutesid='countdown_minutes_'+unique_id; 378                 var minutesid='countdown_minutes_'+unique_id;
388                 var secondsid='countdown_seconds_'+unique_id; 379                 var secondsid='countdown_seconds_'+unique_id;
389  380 
390                 var startdateid='fromdate_'+unique_id; 381                 var startdateid='fromdate_'+unique_id;
391                 var id='todate_'+unique_id; 382                 var id='todate_'+unique_id;
392  383 
393                 var enddate = new Date($('#'+id).val()); 384                 var enddate = new Date($('#'+id).val());
394                 var dealstartdate=new Date($('#'+startdateid).val()); 385                 var dealstartdate=new Date($('#'+startdateid).val());
395  386 
396                 var currentdate=new Date(); 387                 var currentdate=new Date();
397  388 
398                 //Get Difference between Two dates 389                 //Get Difference between Two dates
399                 var distance = enddate - (currentdate - offset_date); 390                 var distance = enddate - (currentdate - offset_date);
400  391 
401                 $('.sw-dailydeal-wrapper').show(); 392                 $('.sw-dailydeal-wrapper').show();
402  393 
403                 if (distance < 0) { 394                 if (distance < 0) {
404                    // clearInterval(timer); 395                    // clearInterval(timer);
405                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>"); 396                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");
406  397 
407                 } else if(dealstartdate > currentdate) { 398                 } else if(dealstartdate > currentdate) {
408                    $('.countdowncontainer_'+unique_id).hide(); 399                    $('.countdowncontainer_'+unique_id).hide();
409                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>"; 400                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
410                    $('#expired_'+unique_id).html(msg); 401                    $('#expired_'+unique_id).html(msg);
411                 } else { 402                 } else {
412                     var days = Math.floor(distance / _day); 403                     var days = Math.floor(distance / _day);
413                     var hours = Math.floor((distance % _day) / _hour); 404                     var hours = Math.floor((distance % _day) / _hour);
414                     var minutes = Math.floor((distance % _hour) / _minute); 405                     var minutes = Math.floor((distance % _hour) / _minute);
415                     var seconds = Math.floor((distance % _minute) / _second); 406                     var seconds = Math.floor((distance % _minute) / _second);
416  407 
417                     if(hours < 10) 408                     if(hours < 10)
418                         hours = "0" + hours; 409                         hours = "0" + hours;
419                     if(minutes < 10) 410                     if(minutes < 10)
420                         minutes = "0" + minutes; 411                         minutes = "0" + minutes;
421                     if(seconds < 10) 412                     if(seconds < 10)
422                         seconds = "0" + seconds; 413                         seconds = "0" + seconds;
423                     $('.countdowncontainer_'+unique_id).show(); 414                     $('.countdowncontainer_'+unique_id).show();
424                     $('#'+daysid).html(days); 415                     $('#'+daysid).html(days);
425                     $('#'+hoursid).html(hours); 416                     $('#'+hoursid).html(hours);
426                     $('#'+minutesid).html(minutes); 417                     $('#'+minutesid).html(minutes);
427                     $('#'+secondsid).html(seconds); 418                     $('#'+secondsid).html(seconds);
428                 } 419                 }
429             }); 420             });
430         } 421         }
431          422 
432         // Set Interval 423         // Set Interval
433         timer = setInterval(function()  424         timer = setInterval(function()
434         { 425         {
435             showRemaining(); 426             showRemaining();
436         }, 1000);  427         }, 1000);
437     });    428     });
438     </script> 429     </script>
439     <?php $_dailydealhelper->setLoadedTimer(); ?> 430     <?php $_dailydealhelper->setLoadedTimer(); ?>
440     <?php endif; ?> 431     <?php endif; ?>
441     <script type="text/javascript"> 432     <script type="text/javascript">
442         require([ 433         require([
443             'jquery' 434             'jquery'
444         ], function ($) { 435         ], function ($) {
445             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); 436             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n');
446             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); 437             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
447             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); 438             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n');
448             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); 439             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
449             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); 440             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n');
450             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); 441             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
451             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); 442             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n');
452             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); 443             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
453             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); 444             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n');
454             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); 445             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
455             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); 446             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n');
456             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); 447             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
457             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); 448             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n');
458             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); 449             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
459         }); 450         });
460     </script> 451     </script>
461     <?php if (!$block->isRedirectToCartEnabled()) : ?> 452     <?php if (!$block->isRedirectToCartEnabled()) : ?>
462         <script type="text/x-magento-init"> 453         <script type="text/x-magento-init">
463         { 454         {
464             "[data-role=tocart-form], .form.map.checkout": { 455             "[data-role=tocart-form], .form.map.checkout": {
465                 "catalogAddToCart": {} 456                 "catalogAddToCart": {}
466             } 457             }
467         } 458         }
468         </script> 459         </script>
469     <?php endif; ?> 460     <?php endif; ?>
470 <?php endif; ?> 461 <?php endif; ?>