Skip to content

Commit aa0a21c

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #22070: [Backport] Populate label elements for street address fields in checkout (by @amol2jcommerce) - #21819: [Backport] Remove all marketing get params on Varnish to minimize the cache objects (by @ihor-sviziev) Fixed GitHub Issues: - #10893: Street fields in checkout don't have a label that's readable by a screenreader (reported by @TomFranssen) has been fixed in #22070 by @amol2jcommerce in 2.2-develop branch Related commits: 1. 3e37244
2 parents 33f35ce + 5628d04 commit aa0a21c

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ protected function getMultilineFieldConfig($attributeCode, array $attributeConfi
274274
for ($lineIndex = 0; $lineIndex < (int)$attributeConfig['size']; $lineIndex++) {
275275
$isFirstLine = $lineIndex === 0;
276276
$line = [
277+
'label' => __("%1: Line %2", $attributeConfig['label'], $lineIndex + 1),
277278
'component' => 'Magento_Ui/js/form/element/abstract',
278279
'config' => [
279280
// customScope is used to group elements within a single form e.g. they can be validated separately

app/code/Magento/PageCache/etc/varnish4.vcl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@ sub vcl_recv {
9191
}
9292
}
9393

94-
# Remove Google gclid parameters to minimize the cache objects
95-
set req.url = regsuball(req.url,"\?gclid=[^&]+$",""); # strips when QS = "?gclid=AAA"
96-
set req.url = regsuball(req.url,"\?gclid=[^&]+&","?"); # strips when QS = "?gclid=AAA&foo=bar"
97-
set req.url = regsuball(req.url,"&gclid=[^&]+",""); # strips when QS = "?foo=bar&gclid=AAA" or QS = "?foo=bar&gclid=AAA&bar=baz"
94+
# Remove all marketing get parameters to minimize the cache objects
95+
if (req.url ~ "(\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|mc_[a-z]+|utm_[a-z]+)=") {
96+
set req.url = regsuball(req.url, "(gclid|cx|ie|cof|siteurl|zanpid|origin|mc_[a-z]+|utm_[a-z]+)=[-_A-z0-9+()%.]+&?", "");
97+
set req.url = regsub(req.url, "[?|&]+$", "");
98+
}
9899

99100
# Static files caching
100101
if (req.url ~ "^/(pub/)?(media|static)/") {

app/code/Magento/PageCache/etc/varnish5.vcl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ sub vcl_recv {
9292
}
9393
}
9494

95-
# Remove Google gclid parameters to minimize the cache objects
96-
set req.url = regsuball(req.url,"\?gclid=[^&]+$",""); # strips when QS = "?gclid=AAA"
97-
set req.url = regsuball(req.url,"\?gclid=[^&]+&","?"); # strips when QS = "?gclid=AAA&foo=bar"
98-
set req.url = regsuball(req.url,"&gclid=[^&]+",""); # strips when QS = "?foo=bar&gclid=AAA" or QS = "?foo=bar&gclid=AAA&bar=baz"
95+
# Remove all marketing get parameters to minimize the cache objects
96+
if (req.url ~ "(\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|mc_[a-z]+|utm_[a-z]+)=") {
97+
set req.url = regsuball(req.url, "(gclid|cx|ie|cof|siteurl|zanpid|origin|mc_[a-z]+|utm_[a-z]+)=[-_A-z0-9+()%.]+&?", "");
98+
set req.url = regsub(req.url, "[?|&]+$", "");
99+
}
99100

100101
# Static files caching
101102
if (req.url ~ "^/(pub/)?(media|static)/") {

app/code/Magento/Quote/Model/QuoteManagement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ protected function _prepareCustomerQuote($quote)
604604
* @param \Magento\Sales\Api\Data\OrderInterface $order
605605
* @param \Exception $e
606606
* @throws \Exception
607+
* @return void
607608
*/
608609
private function rollbackAddresses(
609610
QuoteEntity $quote,

app/design/frontend/Magento/blank/Magento_Customer/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165

166166
// Checkout address (create shipping address)
167167
.field.street {
168-
.field.additional {
168+
.field {
169169
.label {
170170
&:extend(.abs-visually-hidden all);
171171
}

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199

200200
// Checkout address (create shipping address)
201201
.field.street {
202-
.field.additional {
202+
.field {
203203
.label {
204204
&:extend(.abs-visually-hidden all);
205205
}

0 commit comments

Comments
 (0)