Skip to content

Commit e5376c1

Browse files
author
Korshenko, Olexii(okorshenko)
committed
Merge pull request #404 from magento-folks/checkout
[Folks] Checkout bug-fixes and improvements
2 parents 485c067 + 7d8a80d commit e5376c1

File tree

136 files changed

+602
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+602
-434
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Main/Formset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function _prepareForm()
4343

4444
/** @var \Magento\Framework\Data\Form $form */
4545
$form = $this->_formFactory->create();
46-
$fieldset = $form->addFieldset('set_name', ['legend' => __('Edit Set Name')]);
46+
$fieldset = $form->addFieldset('set_name', ['legend' => __('Edit Product Template Name')]);
4747
$fieldset->addField(
4848
'attribute_set_name',
4949
'text',

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Toolbar/Main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function _prepareLayout()
2727
'addButton',
2828
'Magento\Backend\Block\Widget\Button',
2929
[
30-
'label' => __('Add New Set'),
30+
'label' => __('Add Product Template'),
3131
'onclick' => 'setLocation(\'' . $this->getUrl('catalog/*/add') . '\')',
3232
'class' => 'add primary add-set'
3333
]

app/code/Magento/Catalog/Controller/Adminhtml/Product/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function execute()
3737
/** @var \Magento\Backend\Model\View\Result\Page $resultPage */
3838
$resultPage = $this->resultPageFactory->create();
3939
$resultPage->setActiveMenu('Magento_Catalog::catalog_products');
40-
$resultPage->getConfig()->getTitle()->set((__('Products')));
40+
$resultPage->getConfig()->getTitle()->prepend(__('Catalog'));
4141
return $resultPage;
4242
}
4343
}

app/code/Magento/Checkout/Block/Cart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function isWishlistActive()
144144
*/
145145
public function getCheckoutUrl()
146146
{
147-
return $this->getUrl('checkout/onepage', ['_secure' => true]);
147+
return $this->getUrl('checkout', ['_secure' => true]);
148148
}
149149

150150
/**

app/code/Magento/Checkout/Block/Cart/Sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getImageHtmlTemplate()
8888
*/
8989
public function getCheckoutUrl()
9090
{
91-
return $this->getUrl('checkout/onepage');
91+
return $this->getUrl('checkout');
9292
}
9393

9494
/**

app/code/Magento/Checkout/Block/Checkout/LayoutProcessor.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ public function process($jsLayout)
6363
if (isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
6464
['payment']['children']
6565
)) {
66+
if (!isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
67+
['payment']['children']['payments-list']['children'])) {
68+
$jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
69+
['payment']['children']['payments-list']['children'] = [];
70+
}
71+
6672
$jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
6773
['payment']['children']['payments-list']['children'] =
6874
array_merge_recursive(
@@ -111,6 +117,7 @@ private function processPaymentConfiguration(array &$configuration, array $eleme
111117
'component' => 'Magento_Checkout/js/view/billing-address',
112118
'displayArea' => 'billing-address-form-' . $paymentCode,
113119
'provider' => 'checkoutProvider',
120+
'deps' => 'checkoutProvider',
114121
'dataScopePrefix' => 'billingAddress' . $paymentCode,
115122
'sortOrder' => 1,
116123
'children' => [
@@ -162,7 +169,7 @@ private function processPaymentConfiguration(array &$configuration, array $eleme
162169
'telephone' => [
163170
'config' => [
164171
'tooltip' => [
165-
'description' => 'For delivery Questions',
172+
'description' => 'For delivery questions.',
166173
],
167174
],
168175
],

app/code/Magento/Checkout/Block/Onepage/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
*/
4646
public function getCheckoutUrl()
4747
{
48-
return $this->getUrl('checkout/onepage');
48+
return $this->getUrl('checkout');
4949
}
5050

5151
/**

app/code/Magento/Checkout/Controller/Onepage/Index.php renamed to app/code/Magento/Checkout/Controller/Index/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © 2015 Magento. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
7-
namespace Magento\Checkout\Controller\Onepage;
7+
namespace Magento\Checkout\Controller\Index;
88

99
class Index extends \Magento\Checkout\Controller\Onepage
1010
{

app/code/Magento/Checkout/Controller/Onepage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ protected function _expireAjax()
180180
{
181181
$quote = $this->getOnepage()->getQuote();
182182
if (!$quote->hasItems() || $quote->getHasError() || !$quote->validateMinimumAmount()) {
183-
return false;
183+
return true;
184184
}
185185
$action = $this->getRequest()->getActionName();
186186
if ($this->_objectManager->get('Magento\Checkout\Model\Session')->getCartWasUpdated(true)
187187
&&
188188
!in_array($action, ['index', 'progress'])
189189
) {
190-
return false;
190+
return true;
191191
}
192192

193193
return false;

0 commit comments

Comments
 (0)