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
Item
Configure.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Checkout\Block\Cart\Item
;
7
16
class
Configure
extends
\Magento\Framework\View\Element\Template
17
{
23
protected
function
_prepareLayout
()
24
{
25
// Set custom submit url route for form - to submit updated options to cart
26
$block
= $this->
getLayout
()->getBlock(
'product.info'
);
27
if
(
$block
) {
28
$block
->setSubmitRouteData(
29
[
30
'route'
=>
'checkout/cart/updateItemOptions'
,
31
'params'
=> [
'id'
=> $this->
getRequest
()->getParam(
'id'
)],
32
]
33
);
34
}
35
36
return
parent::_prepareLayout();
37
}
38
}
Magento\Checkout\Block\Cart\Item
Definition:
Configure.php:6
Magento\Checkout\Block\Cart\Item\Configure
Definition:
Configure.php:16
$block
$block
Definition:
block.php:8
Magento\Framework\View\Element\AbstractBlock\getLayout
getLayout()
Definition:
AbstractBlock.php:295
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Checkout\Block\Cart\Item\Configure\_prepareLayout
_prepareLayout()
Definition:
Configure.php:23
Magento\Framework\View\Element\AbstractBlock\getRequest
getRequest()
Definition:
AbstractBlock.php:227