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
viewed
column
viewed_names_list.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
9
?>
10
<?php
14
?>
15
<?php
if
(($_products =
$block
->getRecentlyViewedProducts()) && $_products->getSize()): ?>
16
<div
class
=
"block widget block-viewed-products-names"
>
17
<div
class
=
"block-title"
>
18
<strong><?=
/* @escapeNotVerified */
__
(
'Recently Viewed'
) ?></strong>
19
</div>
20
<div
class
=
"block-content"
>
21
<?php
$suffix
=
$block
->getNameInLayout(); ?>
22
<ol
id
=
"widget-viewed-<?= /* @escapeNotVerified */ $suffix ?>"
class
=
"product-items product-items-names"
>
23
<?php
foreach
($_products as
$_product
): ?>
24
<li
class
=
"product-item"
>
25
<strong
class
=
"product-item-name"
>
26
<a href=
"<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>"
class
=
"product-item-link"
>
27
<?=
/* @escapeNotVerified */
$this->helper(
'Magento\Catalog\Helper\Output'
)->productAttribute(
$_product
,
$_product
->getName(),
'name'
) ?>
28
</a>
29
</strong>
30
</li>
31
<?php
endforeach
; ?>
32
</ol>
33
</div>
34
</div>
35
<?php
endif
; ?>
$suffix
$suffix
Definition:
name.phtml:27
__
__()
Definition:
__.php:13
endforeach
foreach( $_products as $_product)() ?>" class endforeach
Definition:
viewed_names_list.phtml:23
$_product
$_product
Definition:
summary.phtml:12
$block
$block
Definition:
block.php:8
endif
endif
Definition:
viewed_names_list.phtml:35