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-checkout
Block
Cart
Coupon.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block\Cart
;
7
12
class
Coupon
extends
\Magento\Checkout\Block\Cart\AbstractCart
13
{
21
public
function
__construct
(
22
\
Magento
\Framework\View\Element\
Template
\
Context
$context,
23
\
Magento
\Customer\Model\
Session
$customerSession,
24
\
Magento
\Checkout\Model\
Session
$checkoutSession,
25
array
$data
= []
26
) {
27
parent::__construct($context, $customerSession, $checkoutSession,
$data
);
28
$this->_isScopePrivate =
true
;
29
}
30
35
public
function
getCouponCode
()
36
{
37
return
$this->
getQuote
()->getCouponCode();
38
}
39
}
Magento\Checkout\Block\Cart\Coupon\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, array $data=[])
Definition:
Coupon.php:21
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Checkout\Block\Cart\Coupon\getCouponCode
getCouponCode()
Definition:
Coupon.php:35
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Checkout\Block\Cart
Definition:
AbstractCartTest.php:7
Magento\Checkout\Model\Session
Definition:
Session.php:17
Magento\Checkout\Block\Cart\Coupon
Definition:
Coupon.php:12
Magento\Checkout\Block\Cart\AbstractCart\getQuote
getQuote()
Definition:
AbstractCart.php:106