Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/2.25.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Romaszkin committed Oct 19, 2021
2 parents 79b58a6 + da50dfa commit 858a465
Show file tree
Hide file tree
Showing 43 changed files with 917 additions and 239 deletions.
4 changes: 2 additions & 2 deletions Amasty_Gdpr/templates/settings.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ $settings = $block->getPrivacySettings();
<?php if (isset($setting['action'])): ?>
<form
method="post"
action="<?= $escaper->escapeHtmlAttr($setting['action']) ?>"
action="<?= $escaper->escapeUrl($setting['action']) ?>"
data-mage-init='{"validation":{}}'
>
<input
name="form_key"
type="hidden"
value="<?= $escaper->escapeHtmlAttr($block->getFormKey()) ?>"
value="<?= /** @noEscape */ $block->getFormKey() ?>"
/>
<input
name="order_increment_id"
Expand Down
5 changes: 4 additions & 1 deletion Amasty_Gdpr/web/template/checkout/gdpr-consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}
"
>
<!-- data-checkbox-code as fallback to previous gdpr versions -->
<input
type="checkbox"
value="1"
Expand All @@ -21,6 +22,8 @@
'name': name,
'id': checkbox_code + $parent.getUniqId(),
'data-checkbox-code': checkbox_code,
'data-gdpr-checkbox-code': checkbox_code,
'data-consent-id': consent_id,
'data-validate': $data.required ? '{required:true}' : null,
class: $data.required ? 'checkbox__field required-entry' : 'checkbox__field'
}"
Expand Down Expand Up @@ -60,5 +63,5 @@
hidden
name="am-gdpr-checkboxes-from"
data-bind="attr: {'value': metaInfo.where}"
>
/>
<!-- /ko -->
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ All notable changes to this project will be documented in this file.
### Updated
### Removed

## [Released]
## [2.25.0] - 2021-10-19
### Fixed
- Filters position on category view (#83483)
### Updated
- Update requisition list button on product view (#83517)
- Update to Magento 2.4.3 (#81212)
## [2.24.1] - 2021-10-13
### Changed
- Frontools dependency removed
### Fixed
- Asterix position in required checkboxes (#80129)

## [Released]
## [2.24.0] - 2021-09-09
### Added
- column template variables for catalog grid styles (#81732)
Expand Down
16 changes: 7 additions & 9 deletions Magento_Catalog/templates/product/compare/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ $compareHelper = $this->helper(Magento\Catalog\Helper\Product\Compare::class);
</button>
</form>
<?php else: ?>
<?php if ($item->getIsSalable()): ?>
<?php if ($item->isAvailable()): ?>
<div class="stock available">
<?= $block->escapeHtml(__('In stock')) ?>
</div>
Expand Down Expand Up @@ -193,15 +193,13 @@ $compareHelper = $this->helper(Magento\Catalog\Helper\Product\Compare::class);
</table>
</div>
</div>
<?php if (!$block->isRedirectToCartEnabled()): ?>
<script type="text/x-magento-init">
{
"[data-role=tocart-form]": {
"catalogAddToCart": {}
}
<script type="text/x-magento-init">
{
"[data-role=tocart-form]": {
"catalogAddToCart": {}
}
</script>
<?php endif; ?>
}
</script>
<?php else: ?>
<div class="message">
<?= $block->escapeHtml(__('You have no items to compare.')) ?>
Expand Down
16 changes: 11 additions & 5 deletions Magento_Catalog/templates/product/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@ use Magento\Framework\App\Action\Action;
action="<?= $escaper->escapeUrl($postParams['action']) ?>"
method="post"
>
<?php $optionsData = $block->getData('viewModel')->getOptionsData($_product); ?>
<?php foreach ($optionsData as $optionItem): ?>
<input
type="hidden"
name="<?= $escaper->escapeHtml($optionItem['name']) ?>"
value="<?= $escaper->escapeHtml($optionItem['value']) ?>"
>
<?php endforeach; ?>
<input
type="hidden"
name="product"
Expand Down Expand Up @@ -501,17 +509,15 @@ use Magento\Framework\App\Action\Action;
</ul>
<?php endif; ?>

<?= $block->getToolbarHtml() ?>
<?= $block->getChildBlock('toolbar')->setIsBottom(true)->toHtml() ?>

<?php if (!$block->isRedirectToCartEnabled()): ?>
<script type="text/x-magento-init">
<script type="text/x-magento-init">
{
"[data-role=tocart-form], .form.map.checkout": {
"catalogAddToCart": {
"product_sku": "<?= $escaper->escapeJs($_product->getSku()) ?>"
}
}
}
</script>
<?php endif; ?>
</script>
<?php endif; ?>
2 changes: 1 addition & 1 deletion Magento_Catalog/templates/product/list/items.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ $sliderResponsiveConfig = '[
<?php endif; ?>
</div>
<?php else: ?>
<?php if ($_item->getIsSalable()): ?>
<?php if ($_item->isAvailable()): ?>
<div class="stock available">
<?= $block->escapeHtml(__('In stock')) ?>
</div>
Expand Down
3 changes: 0 additions & 3 deletions Magento_Catalog/templates/product/list/toolbar.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* @var $block \Magento\Catalog\Block\Product\ProductList\Toolbar
*/

// phpcs:disable Magento2.Security.IncludeFile.FoundIncludeFile
// phpcs:disable PSR2.Methods.FunctionCallSignature.SpaceBeforeOpenBracket
?>
<?php if ($block->getCollection()->getSize()): ?>
<?php
Expand All @@ -30,7 +28,6 @@
include($block->getTemplateFile('Magento_Catalog::product/list/toolbar/amount.phtml'));
include($block->getTemplateFile('Magento_Catalog::product/list/toolbar/limiter.phtml'));
?>

<?= $block->getPagerHtml() ?>
</div>
<?php endif ?>
4 changes: 2 additions & 2 deletions Magento_Catalog/web/template/product/addtocart-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
</button>
</if>

<ifnot args="isSalable($row())">
<if args="isAvailable($row()) === false">
<div class="stock unavailable">
<text args="$t('Availability')" />
<span translate="'Out of stock'" />
</div>
</ifnot>
</if>
</if>
12 changes: 9 additions & 3 deletions Magento_Checkout/templates/onepage/link.phtml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<?php
/**
* @var Magento\Checkout\Block\Onepage\Link $block
* @var Magento\Framework\Escaper $escaper
*/
?>
<?php if ($block->isPossibleOnepageCheckout()): ?>
<button
type="button"
data-role="proceed-to-checkout"
title="<?= $block->escapeHtmlAttr(__('Proceed to Checkout')) ?>"
title="<?= $escaper->escapeHtmlAttr(__('Proceed to Checkout')) ?>"
data-mage-init='{
"Magento_Checkout/js/proceed-to-checkout": {
"checkoutUrl":"<?= $block->escapeUrl($block->escapeUrl($block->getCheckoutUrl())) ?>"
"checkoutUrl":"<?= $escaper->escapeUrl($block->escapeUrl($block->getCheckoutUrl())) ?>"
}
}'
class="
Expand All @@ -17,6 +23,6 @@
"
<?= ($block->isDisabled()) ? 'disabled="disabled"' : ''; ?>
>
<?= $block->escapeHtml(__('Proceed to Checkout')) ?>
<?= $escaper->escapeHtml(__('Proceed to Checkout')) ?>
</button>
<?php endif; ?>
8 changes: 4 additions & 4 deletions Magento_Checkout/web/template/billing-address.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</label>
</div>

<render args="detailsTemplate"/>
<render args="detailsTemplate"></render>

<fieldset
class="fieldset"
Expand All @@ -66,12 +66,12 @@
<each
args="getRegion('billing-address-list')"
render=""
/>
></each>

<div data-bind="fadeVisible: isAddressFormVisible">
<render args="formTemplate"/>
<render args="formTemplate"></render>
</div>

<render args="actionsTemplate"/>
<render args="actionsTemplate"></render>
</fieldset>
</div>
Loading

1 comment on commit 858a465

@vercel
Copy link

@vercel vercel bot commented on 858a465 Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.