Produced by Araxis Merge on 2023-07-12 04:42:43 +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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v4.0.5/Theme Files/Porto Theme/app/code/Smartwave/Megamenu/view/frontend/templates/onepagecategory | products_area.phtml | 2023-02-02 09:07:22 +0000 |
| 2 | Porto v4.0.6/Theme Files/Porto Theme/app/code/Smartwave/Megamenu/view/frontend/templates/onepagecategory | products_area.phtml | 2023-02-02 09:07:22 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 678 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 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 | $menu_helper = $this->helper('Smartwave\Megamenu\Helper\Data'); | 22 | $menu_helper = $this->helper('Smartwave\Megamenu\Helper\Data'); | |||
| 23 | $review_model = $_portohelper->getModel('\Magento\Review\Model\Review'); | 23 | $review_model = $_portohelper->getModel('\Magento\Review\Model\Review'); | |||
| 24 | $_category_config = $_portohelper->getConfig('porto_settings/category'); | 24 | $_category_config = $_portohelper->getConfig('porto_settings/category'); | |||
| 25 | $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); | 25 | $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); | |||
| 26 | $_product_label_config = $_portohelper->getConfig('porto_settings/product_label'); | 26 | $_product_label_config = $_portohelper->getConfig('porto_settings/product_label'); | |||
| 27 | 27 | |||||
| 28 | $aspect_ratio = $this->getData("aspect_ratio"); | 28 | $aspect_ratio = $this->getData("aspect_ratio"); | |||
| 29 | if($aspect_ratio == null) { | 29 | if($aspect_ratio == null) { | |||
| 30 | $aspect_ratio = 1; | 30 | $aspect_ratio = 1; | |||
| 31 | } | 31 | } | |||
| 32 | $image_width = $this->getData("image_width"); | 32 | $image_width = $this->getData("image_width"); | |||
| 33 | if(!$image_width) { | 33 | if(!$image_width) { | |||
| 34 | $image_width = 300; | 34 | $image_width = 300; | |||
| 35 | } | 35 | } | |||
| 36 | $image_height = $this->getData("image_height"); | 36 | $image_height = $this->getData("image_height"); | |||
| 37 | if(!$image_height) { | 37 | if(!$image_height) { | |||
| 38 | $image_height = 300; | 38 | $image_height = 300; | |||
| 39 | } | 39 | } | |||
| 40 | 40 | |||||
| 41 | $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload'); | 41 | $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload'); | |||
| 42 | $category_id = $this->getData("category_id"); | 42 | $category_id = $this->getData("category_id"); | |||
| 43 | 43 | |||||
| 44 | $columns = $this->getData('columns'); | 44 | $columns = $this->getData('columns'); | |||
| 45 | 45 | |||||
| 46 | $product_type = $this->getData("product_type"); | 46 | $product_type = $this->getData("product_type"); | |||
| 47 | if($product_type == null) { | 47 | if($product_type == null) { | |||
| 48 | $product_type = $_category_grid_config['product_type']; | 48 | $product_type = $_category_grid_config['product_type']; | |||
| 49 | } | 49 | } | |||
| 50 | if($product_type == null) { | 50 | if($product_type == null) { | |||
| 51 | $product_type = 1; | 51 | $product_type = 1; | |||
| 52 | } | 52 | } | |||
| 53 | 53 | |||||
| 54 | $cat_model = $menu_helper->getCategoryModel($category_id); | 54 | $cat_model = $menu_helper->getCategoryModel($category_id); | |||
| 55 | ?> | 55 | ?> | |||
| 56 | <a href="<?php echo $cat_model->getUrl(); ?>" class="category-link"><?php echo __("See More"); ?></a> | 56 | <a href="<?php echo $cat_model->getUrl(); ?>" class="category-link"><?php echo __("See More"); ?></a> | |||
| 57 | <div class="onepagecategory-products" id="cat_prod_<?php echo $category_id; ?>"> | 57 | <div class="onepagecategory-products" id="cat_prod_<?php echo $category_id; ?>"> | |||
| 58 | <?php if (!$_productCollection->count()): ?> | 58 | <?php if (!$_productCollection->count()): ?> | |||
| 59 | <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> | 59 | <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> | |||
| 60 | <?php else: ?> | 60 | <?php else: ?> | |||
| 61 | <?php | 61 | <?php | |||
| 62 | $viewMode = 'grid'; | 62 | $viewMode = 'grid'; | |||
| 63 | $image = 'category_page_grid'; | 63 | $image = 'category_page_grid'; | |||
| 64 | $hover_image = 'category_page_grid-hover'; | 64 | $hover_image = 'category_page_grid-hover'; | |||
| 65 | $showDescription = false; | 65 | $showDescription = false; | |||
| 66 | $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; | 66 | $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; | |||
| 67 | ?> | 67 | ?> | |||
| 68 | <div class="products wpb_content_element wrapper <?php echo $viewMode; ?> 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; ?>"> | 68 | <div class="products wpb_content_element wrapper <?php echo $viewMode; ?> 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 | <?php $iterator = 1; ?> | 69 | <?php $iterator = 1; ?> | |||
| 70 | <div class="filterproducts products list items product-items owl-carousel"> | 70 | <div class="filterproducts products list items product-items owl-carousel"> | |||
| 71 | <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> | 71 | <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> | |||
| 72 | <?php foreach ($_productCollection as $_product): ?> | 72 | <?php foreach ($_productCollection as $_product): ?> | |||
| 73 | <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> | 73 | <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> | |||
| 74 | <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> | 74 | <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> | |||
| 75 | <?php // Product Image ?> | 75 | <?php // Product Image ?> | |||
| 76 | <div class="product photo product-item-photo"> | 76 | <div class="product photo product-item-photo"> | |||
| 77 | <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> | 77 | <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> | |||
| 78 | <?php | 78 | <?php | |||
| 79 | if($aspect_ratio) | 79 | if($aspect_ratio) | |||
| 80 | $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | 80 | $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | |||
| 81 | else | 81 | else | |||
| 82 | $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); | 82 | $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); | |||
| 83 | $productImageUrl = $productImage->getUrl(); | 83 | $productImageUrl = $productImage->getUrl(); | |||
| 84 | ?> | 84 | ?> | |||
| 85 | <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; ?>"/> | 85 | <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; ?>"/> | |||
| 86 | <?php if($_category_config['alternative_image']): ?> | 86 | <?php if($_category_config['alternative_image']): ?> | |||
| 87 | <?php | 87 | <?php | |||
| 88 | if($aspect_ratio) | 88 | if($aspect_ratio) | |||
| 89 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | 89 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | |||
| 90 | else | 90 | else | |||
| 91 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); | 91 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); | |||
| 92 | $productHoverImageUrl = $productHoverImage->getUrl(); | 92 | $productHoverImageUrl = $productHoverImage->getUrl(); | |||
| 93 | ?> | 93 | ?> | |||
| 94 | <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> | 94 | <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> | |||
| 95 | <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>"/> | 95 | <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>"/> | |||
| 96 | <?php endif; ?> | 96 | <?php endif; ?> | |||
| 97 | <?php endif; ?> | 97 | <?php endif; ?> | |||
| 98 | </a> | 98 | </a> | |||
| 99 | <?php | 99 | <?php | |||
| 100 | $product_label = ""; | 100 | $product_label = ""; | |||
| 101 | if($_product_label_config['sale_label']) { | 101 | if($_product_label_config['sale_label']) { | |||
| 102 | if ($percentage = $_portohelper->getPercentage($_product)) { | 102 | if ($percentage = $_portohelper->getPercentage($_product)) { | |||
| 103 | if($_product_label_config['sale_label_percent']) { | 103 | if($_product_label_config['sale_label_percent']) { | |||
| 104 | $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; | 104 | $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; | |||
| 105 | } else { | 105 | } else { | |||
| 106 | $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; | 106 | $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; | |||
| 107 | } | 107 | } | |||
| 108 | } | 108 | } | |||
| 109 | } | 109 | } | |||
| 110 | if($_product_label_config['new_label']) { | 110 | if($_product_label_config['new_label']) { | |||
| 111 | $now = date("Y-m-d"); | 111 | $now = date("Y-m-d"); | |||
| 112 | $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); | 112 | $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); | |||
| 113 | $newsTo= substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); | 113 | $newsTo= substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); | |||
| 114 | 114 | |||||
| 115 | if ($newsTo != '' || $newsFrom != ''){ | 115 | if ($newsTo != '' || $newsFrom != ''){ | |||
| 116 | if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { | 116 | if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { | |||
| 117 | $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; | 117 | $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; | |||
| 118 | } | 118 | } | |||
| 119 | } | 119 | } | |||
| 120 | } | 120 | } | |||
| 121 | if($product_label) | 121 | if($product_label) | |||
| 122 | echo '<div class="product-labels">'.$product_label.'</div>'; | 122 | echo '<div class="product-labels">'.$product_label.'</div>'; | |||
| 123 | ?> | 123 | ?> | |||
| 124 | <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?> | 124 | <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?> | |||
| 125 | <div class="product-item-inner"> | 125 | <div class="product-item-inner"> | |||
| 126 | <div class="product actions product-item-actions"> | 126 | <div class="product actions product-item-actions"> | |||
| 127 | <div class="actions-primary"> | 127 | <div class="actions-primary"> | |||
| 128 | <?php if ($_product->isSaleable()): ?> | 128 | <?php if ($_product->isSaleable()): ?> | |||
| 129 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | 129 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | |||
| 130 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | 130 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | |||
| 131 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | 131 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | |||
| 132 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | 132 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | |||
| 133 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | 133 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | |||
| 134 | <div class="qty-box"> | 134 | <div class="qty-box"> | |||
| 135 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | 135 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | |||
| 136 | <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())) ?>"/> | 136 | <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())) ?>"/> | |||
| 137 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | 137 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | |||
| 138 | </div> | 138 | </div> | |||
| 139 | <?php endif;?> | 139 | <?php endif;?> | |||
| 140 | <?php echo $block->getBlockHtml('formkey')?> | 140 | <?php echo $block->getBlockHtml('formkey')?> | |||
| 141 | <button type="submit" | 141 | <button type="submit" | |||
| 142 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | 142 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | |||
| 143 | class="action tocart primary"> | 143 | class="action tocart primary"> | |||
| 144 | <span><?php echo __('Add to Cart') ?></span> | 144 | <span><?php echo __('Add to Cart') ?></span> | |||
| 145 | </button> | 145 | </button> | |||
| 146 | </form> | 146 | </form> | |||
| 147 | <?php else: ?> | 147 | <?php else: ?> | |||
| 148 | <?php if ($_product->getIsSalable()): ?> | 148 | <?php if ($_product->getIsSalable()): ?> | |||
| 149 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | 149 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | |||
| 150 | <?php else: ?> | 150 | <?php else: ?> | |||
| 151 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | 151 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | |||
| 152 | <?php endif; ?> | 152 | <?php endif; ?> | |||
| 153 | <?php endif; ?> | 153 | <?php endif; ?> | |||
| 154 | </div> | 154 | </div> | |||
| 155 | <?php if ($block->getMode() == 'grid'): ?> | 155 | <?php if ($block->getMode() == 'grid'): ?> | |||
| 156 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | 156 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | |||
| 157 | <a href="#" | 157 | <a href="#" | |||
| 158 | class="action towishlist actions-secondary" | 158 | class="action towishlist actions-secondary" | |||
| 159 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 159 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 160 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 160 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 161 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | 161 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | |||
| 162 | data-action="add-to-wishlist" | 162 | data-action="add-to-wishlist" | |||
| 163 | role="button"> | 163 | role="button"> | |||
| 164 | <span><?php echo __('Add to Wish List') ?></span> | 164 | <span><?php echo __('Add to Wish List') ?></span> | |||
| 165 | </a> | 165 | </a> | |||
| 166 | <?php endif; ?> | 166 | <?php endif; ?> | |||
| 167 | <?php endif; ?> | 167 | <?php endif; ?> | |||
| 168 | <?php if($_category_config['addtocompare']): ?> | 168 | <?php if($_category_config['addtocompare']): ?> | |||
| 169 | <?php | 169 | <?php | |||
| 170 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | 170 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | |||
| 171 | ?> | 171 | ?> | |||
| 172 | <a href="#" | 172 | <a href="#" | |||
| 173 | class="action tocompare actions-secondary" | 173 | class="action tocompare actions-secondary" | |||
| 174 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 174 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 175 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 175 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 176 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | 176 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | |||
| 177 | role="button"> | 177 | role="button"> | |||
| 178 | <span><?php echo __('Add to Compare') ?></span> | 178 | <span><?php echo __('Add to Compare') ?></span> | |||
| 179 | </a> | 179 | </a> | |||
| 180 | <?php endif; ?> | 180 | <?php endif; ?> | |||
| 181 | </div> | 181 | </div> | |||
| 182 | </div> | 182 | </div> | |||
| 183 | <?php endif; ?> | 183 | <?php endif; ?> | |||
| 184 | </div> | 184 | </div> | |||
| 185 | <div class="product details product-item-details"> | 185 | <div class="product details product-item-details"> | |||
| 186 | <?php | 186 | <?php | |||
| 187 | $_productNameStripped = $block->stripTags($_product->getName(), null, true); | 187 | $_productNameStripped = $block->stripTags($_product->getName(), null, true); | |||
| 188 | ?> | 188 | ?> | |||
| 189 | <strong class="product name product-item-name"> | 189 | <strong class="product name product-item-name"> | |||
| 190 | <a class="product-item-link" | 190 | <a class="product-item-link" | |||
| 191 | href="<?php echo $_product->getProductUrl() ?>"> | 191 | href="<?php echo $_product->getProductUrl() ?>"> | |||
| 192 | <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> | 192 | <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> | |||
| 193 | </a> | 193 | </a> | |||
| 194 | </strong> | 194 | </strong> | |||
| 195 | <?php //$_category_config['rating_star'] = ""; //disabled at the moment ?> | 195 | <?php //$_category_config['rating_star'] = ""; //disabled at the moment ?> | |||
| 196 | <?php if($_category_config['rating_star']): ?> | 196 | <?php if($_category_config['rating_star']): ?> | |||
| 197 | <?php | 197 | <?php | |||
| 198 | $review_model->getEntitySummary($_product); | 198 | $review_model->getEntitySummary($_product); | |||
| 199 | $review_html = $block->getReviewsSummaryHtml($_product, $templateType); | 199 | $review_html = $block->getReviewsSummaryHtml($_product, $templateType); | |||
| 200 | ?> | 200 | ?> | |||
| 201 | <?php if($review_html): ?> | 201 | <?php if($review_html): ?> | |||
| 202 | <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> | 202 | <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> | |||
| 203 | <?php else: ?> | 203 | <?php else: ?> | |||
| 204 | <div class="product-reviews-summary short"> | 204 | <div class="product-reviews-summary short"> | |||
| 205 | <div class="rating-summary"> | 205 | <div class="rating-summary"> | |||
| 206 | <span class="label"><span>Rating:</span></span> | 206 | <span class="label"><span>Rating:</span></span> | |||
| 207 | <div class="rating-result" title="0%"> | 207 | <div class="rating-result" title="0%"> | |||
| 208 | <span style="width:0"><span>0%</span></span> | 208 | <span style="width:0"><span>0%</span></span> | |||
| 209 | </div> | 209 | </div> | |||
| 210 | </div> | 210 | </div> | |||
| 211 | </div> | 211 | </div> | |||
| 212 | <?php endif; ?> | 212 | <?php endif; ?> | |||
| 213 | <?php endif; ?> | 213 | <?php endif; ?> | |||
| 214 | 214 | |||||
| 215 | <?php if ($showDescription):?> | 215 | <?php if ($showDescription):?> | |||
| 216 | <div class="product description product-item-description"> | 216 | <div class="product description product-item-description"> | |||
| 217 | <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> | 217 | <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> | |||
| 218 | <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" | 218 | <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" | |||
| 219 | class="action more"><?php echo __('Learn More') ?></a> | 219 | class="action more"><?php echo __('Learn More') ?></a> | |||
| 220 | </div> | 220 | </div> | |||
| 221 | <?php endif; ?> | 221 | <?php endif; ?> | |||
| 222 | <?php if($_category_config['product_price']): ?> | 222 | <?php if($_category_config['product_price']): ?> | |||
| 223 | <?php echo $block->getProductPrice($_product) ?> | 223 | <?php echo $block->getProductPrice($_product) ?> | |||
| 224 | <?php endif; ?> | 224 | <?php endif; ?> | |||
| 225 | <?php echo $block->getProductDetailsHtml($_product); ?> | 225 | <?php echo $block->getProductDetailsHtml($_product); ?> | |||
| 226 | 226 | |||||
| 227 | <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?> | 227 | <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?> | |||
| 228 | <div class="product-item-inner"> | 228 | <div class="product-item-inner"> | |||
| 229 | <div class="product actions product-item-actions"> | 229 | <div class="product actions product-item-actions"> | |||
| 230 | <?php if ($block->getMode() == 'grid'): ?> | 230 | <?php if ($block->getMode() == 'grid'): ?> | |||
| 231 | <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> | 231 | <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> | |||
| 232 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | 232 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | |||
| 233 | <a href="#" | 233 | <a href="#" | |||
| 234 | class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | 234 | class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | |||
| 235 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 235 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 236 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 236 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 237 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | 237 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | |||
| 238 | data-action="add-to-wishlist" | 238 | data-action="add-to-wishlist" | |||
| 239 | role="button"> | 239 | role="button"> | |||
| 240 | <span><?php echo __('Add to Wish List') ?></span> | 240 | <span><?php echo __('Add to Wish List') ?></span> | |||
| 241 | </a> | 241 | </a> | |||
| 242 | <?php endif; ?> | 242 | <?php endif; ?> | |||
| 243 | <?php endif; ?> | 243 | <?php endif; ?> | |||
| 244 | <?php endif; ?> | 244 | <?php endif; ?> | |||
| 245 | <div class="actions-primary"> | 245 | <div class="actions-primary"> | |||
| 246 | <?php if ($_product->isSaleable()): ?> | 246 | <?php if ($_product->isSaleable()): ?> | |||
| 247 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | 247 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | |||
| 248 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | 248 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | |||
| 249 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | 249 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | |||
| 250 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | 250 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | |||
| 251 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | 251 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | |||
| 252 | <div class="qty-box"> | 252 | <div class="qty-box"> | |||
| 253 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | 253 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | |||
| 254 | <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())) ?>"/> | 254 | <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())) ?>"/> | |||
| 255 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | 255 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | |||
| 256 | </div> | 256 | </div> | |||
| 257 | <?php endif;?> | 257 | <?php endif;?> | |||
| 258 | <?php echo $block->getBlockHtml('formkey')?> | 258 | <?php echo $block->getBlockHtml('formkey')?> | |||
| 259 | <button type="submit" | 259 | <button type="submit" | |||
| 260 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | 260 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | |||
| 261 | class="action tocart primary"> | 261 | class="action tocart primary"> | |||
| 262 | <span><?php echo __('Add to Cart') ?></span> | 262 | <span><?php echo __('Add to Cart') ?></span> | |||
| 263 | </button> | 263 | </button> | |||
| 264 | </form> | 264 | </form> | |||
| 265 | <?php else: ?> | 265 | <?php else: ?> | |||
| 266 | <?php if ($_product->getIsSalable()): ?> | 266 | <?php if ($_product->getIsSalable()): ?> | |||
| 267 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | 267 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | |||
| 268 | <?php else: ?> | 268 | <?php else: ?> | |||
| 269 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | 269 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | |||
| 270 | <?php endif; ?> | 270 | <?php endif; ?> | |||
| 271 | <?php endif; ?> | 271 | <?php endif; ?> | |||
| 272 | </div> | 272 | </div> | |||
| 273 | <?php if ($block->getMode() == 'grid'): ?> | 273 | <?php if ($block->getMode() == 'grid'): ?> | |||
| 274 | <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> | 274 | <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> | |||
| 275 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | 275 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | |||
| 276 | <a href="#" | 276 | <a href="#" | |||
| 277 | 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 <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | |||
| 278 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 278 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 279 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 279 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 280 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | 280 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | |||
| 281 | data-action="add-to-wishlist" | 281 | data-action="add-to-wishlist" | |||
| 282 | role="button"> | 282 | role="button"> | |||
| 283 | <span><?php echo __('Add to Wish List') ?></span> | 283 | <span><?php echo __('Add to Wish List') ?></span> | |||
| 284 | </a> | 284 | </a> | |||
| 285 | <?php endif; ?> | 285 | <?php endif; ?> | |||
| 286 | <?php endif; ?> | 286 | <?php endif; ?> | |||
| 287 | <?php endif; ?> | 287 | <?php endif; ?> | |||
| 288 | <?php if($_category_config['addtocompare']): ?> | 288 | <?php if($_category_config['addtocompare']): ?> | |||
| 289 | <?php | 289 | <?php | |||
| 290 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | 290 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | |||
| 291 | ?> | 291 | ?> | |||
| 292 | <a href="#" | 292 | <a href="#" | |||
| 293 | class="action tocompare actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | 293 | class="action tocompare actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | |||
| 294 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 294 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 295 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 295 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 296 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | 296 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | |||
| 297 | role="button"> | 297 | role="button"> | |||
| 298 | <span><?php echo __('Add to Compare') ?></span> | 298 | <span><?php echo __('Add to Compare') ?></span> | |||
| 299 | </a> | 299 | </a> | |||
| 300 | <?php endif; ?> | 300 | <?php endif; ?> | |||
| 301 | </div> | 301 | </div> | |||
| 302 | </div> | 302 | </div> | |||
| 303 | <?php endif; ?> | 303 | <?php endif; ?> | |||
| 304 | </div> | 304 | </div> | |||
| 305 | </div> | 305 | </div> | |||
| 306 | <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> | 306 | <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> | |||
| 307 | <?php endforeach; ?> | 307 | <?php endforeach; ?> | |||
| 308 | </div> | 308 | </div> | |||
| 309 | </div> | 309 | </div> | |||
| 310 | <?php if (!$block->isRedirectToCartEnabled()) : ?> | 310 | <?php if (!$block->isRedirectToCartEnabled()) : ?> | |||
| 311 | <script type="text/x-magento-init"> | 311 | <script type="text/x-magento-init"> | |||
| 312 | { | 312 | { | |||
| 313 | "[data-role=tocart-form], .form.map.checkout": { | 313 | "[data-role=tocart-form], .form.map.checkout": { | |||
| 314 | "catalogAddToCart": {} | 314 | "catalogAddToCart": {} | |||
| 315 | } | 315 | } | |||
| 316 | } | 316 | } | |||
| 317 | </script> | 317 | </script> | |||
| 318 | <?php endif; ?> | 318 | <?php endif; ?> | |||
| 319 | <script type="text/javascript"> | 319 | <script type="text/javascript"> | |||
| 320 | require([ | 320 | require([ | |||
| 321 | 'jquery', | 321 | 'jquery', | |||
| 322 | 'owl.carousel/owl.carousel.min' | 322 | 'owl.carousel/owl.carousel.min' | |||
| 323 | ], function ($) { | 323 | ], function ($) { | |||
| 324 | $("#cat_prod_<?php echo $category_id; ?> .owl-carousel").owlCarousel({ | 324 | $("#cat_prod_<?php echo $category_id; ?> .owl-carousel").owlCarousel({ | |||
| 325 | autoplay: true, | 325 | autoplay: true, | |||
| 326 | autoplayTimeout: 5000, | 326 | autoplayTimeout: 5000, | |||
| 327 | autoplayHoverPause: true, | 327 | autoplayHoverPause: true, | |||
| 328 | loop: true, | 328 | loop: true, | |||
| 329 | navRewind: true, | 329 | navRewind: true, | |||
| 330 | margin: 10, | 330 | margin: 10, | |||
| 331 | nav: false, | 331 | nav: false, | |||
| 332 | dots: false, | 332 | dots: false, | |||
| 333 | lazyLoad: true, | 333 | lazyLoad: true, | |||
| 334 | responsive: <?php echo $columns; ?> | 334 | responsive: <?php echo $columns; ?> | |||
| 335 | }); | 335 | }); | |||
| 336 | }); | 336 | }); | |||
| 337 | </script> | 337 | </script> | |||
| 338 | <?php endif; ?> | 338 | <?php endif; ?> | |||
| 339 | </div> | 339 | </div> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.