Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-reports
view
frontend
templates
widget
compared
column
compared_names_list.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
9
?>
10
<?php
if
($_products =
$block
->getRecentlyComparedProducts()): ?>
11
<div
class
=
"block widget block-compared-products-names"
>
12
<div
class
=
"block-title"
>
13
<strong><?=
/* @escapeNotVerified */
__
(
'Recently Compared'
) ?></span></strong>
14
</div>
15
<div
class
=
"block-content"
>
16
<?php
$suffix
=
$block
->getNameInLayout(); ?>
17
<ol
id
=
"widget-compared-<?= /* @escapeNotVerified */ $suffix ?>"
class
=
"product-items product-items-names"
>
18
<?php
$i
= 0;
foreach
($_products as
$_product
): ?>
19
<li
class
=
"product-item"
>
20
<strong
class
=
"product-item-name"
>
21
<a href=
"<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>"
class
=
"product-item-link"
>
22
<?=
/* @escapeNotVerified */
$this->helper(
'Magento\Catalog\Helper\Output'
)->productAttribute(
$_product
,
$_product
->getName(),
'name'
) ?>
23
</a>
24
</strong>
25
</li>
26
<?php
endforeach
; ?>
27
</ol>
28
</div>
29
</div>
30
<?php
endif
; ?>
$suffix
$suffix
Definition:
name.phtml:27
__
__()
Definition:
__.php:13
$_product
$_product
Definition:
summary.phtml:12
$block
$block
Definition:
block.php:8
$i
$i
Definition:
compared_names_list.phtml:18
endforeach
foreach( $_products as $_product)() ?>" class endforeach
Definition:
compared_names_list.phtml:18
endif
endif
Definition:
compared_names_list.phtml:30