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-wishlist
Block
Share
Email
Items.php
Go to the documentation of this file.
1
<?php
12
namespace
Magento\Wishlist\Block\Share\Email
;
13
18
class
Items
extends
\Magento\Wishlist\Block\AbstractBlock
19
{
23
protected
$_template
=
'Magento_Wishlist::email/items.phtml'
;
24
32
public
function
getProductUrl
(
$product
, $additional = [])
33
{
34
$additional[
'_scope_to_url'
] =
true
;
35
return
parent::getProductUrl(
$product
, $additional);
36
}
37
45
public
function
getAddToCartUrl
(
$product
, $additional = [])
46
{
47
$additional[
'nocookie'
] = 1;
48
$additional[
'_scope_to_url'
] =
true
;
49
return
parent::getAddToCartUrl(
$product
, $additional);
50
}
51
58
public
function
hasDescription
(
$item
)
59
{
60
$hasDescription = parent::hasDescription(
$item
);
61
if
($hasDescription) {
62
return
$item
->getDescription() !== $this->_wishlistHelper->defaultCommentString();
63
}
64
return
$hasDescription;
65
}
66
}
Magento\Wishlist\Block\Share\Email\Items\getProductUrl
getProductUrl($product, $additional=[])
Definition:
Items.php:32
Magento\Wishlist\Block\Share\Email
Definition:
Items.php:12
Magento\Wishlist\Block\Share\Email\Items\hasDescription
hasDescription($item)
Definition:
Items.php:58
$item
$item
Definition:
partial_invoice.php:27
Magento\Wishlist\Block\Share\Email\Items
Definition:
Items.php:18
Magento\Wishlist\Block\Share\Email\Items\getAddToCartUrl
getAddToCartUrl($product, $additional=[])
Definition:
Items.php:45
Magento\Wishlist\Block\AbstractBlock
Definition:
AbstractBlock.php:17
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Wishlist\Block\Share\Email\Items\$_template
$_template
Definition:
Items.php:23